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

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

Introduction

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

Prototype

public void addPathDefinition(String antPath, String definition) 

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;
}