Skip to content

Commit

Permalink
修复登录两次的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
lcg0124 authored and lcg0124 committed Jul 4, 2018
1 parent 0ed92e8 commit b8090ae
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public class ShiroConfig {
@Value("${server.session-timeout}")
private int tomcatTimeout;

// @Autowired
// CacheManager cacheManager;

@Bean
public static LifecycleBeanPostProcessor getLifecycleBeanPostProcessor() {
return new LifecycleBeanPostProcessor();
Expand All @@ -76,6 +73,7 @@ ShiroFilterFactoryBean shiroFilterFactoryBean(SecurityManager securityManager) {
shiroFilterFactoryBean.setSuccessUrl("/index");
shiroFilterFactoryBean.setUnauthorizedUrl("/403");
LinkedHashMap<String, String> filterChainDefinitionMap = new LinkedHashMap<>();
filterChainDefinitionMap.put("/login","anon");
filterChainDefinitionMap.put("/css/**", "anon");
filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/fonts/**", "anon");
Expand Down

0 comments on commit b8090ae

Please sign in to comment.