Example usage for org.apache.shiro.spring.web.config DefaultShiroFilterChainDefinition DefaultShiroFilterChainDefinition

List of usage examples for org.apache.shiro.spring.web.config DefaultShiroFilterChainDefinition DefaultShiroFilterChainDefinition

Introduction

In this page you can find the example usage for org.apache.shiro.spring.web.config DefaultShiroFilterChainDefinition DefaultShiroFilterChainDefinition.

Prototype

DefaultShiroFilterChainDefinition

Source Link

Usage

From source file:com.smile.core.shiro.configuration.ShiroConfiguration.java

License:Apache License

@Bean
public ShiroFilterChainDefinition shiroFilterChainDefinition() {
    DefaultShiroFilterChainDefinition chainDefinition = new DefaultShiroFilterChainDefinition();
    chainDefinition.addPathDefinition("/login", "authc");
    chainDefinition.addPathDefinition("/logout", "logout");
    chainDefinition.addPathDefinition("/css/**", "anon");
    chainDefinition.addPathDefinition("/fonts/**", "anon");
    chainDefinition.addPathDefinition("/framework/**", "anon");
    chainDefinition.addPathDefinition("/img/**", "anon");
    chainDefinition.addPathDefinition("/js/**", "anon");
    chainDefinition.addPathDefinition("/favicon.ico", "anon");
    chainDefinition.addPathDefinition("/wavelab/** ", "anon");
    chainDefinition.addPathDefinition("/** ", "user");
    return chainDefinition;
}