List of usage examples for org.apache.shiro.spring.web.config DefaultShiroFilterChainDefinition addPathDefinition
public void addPathDefinition(String antPath, String definition)
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; }