paste the code first. Anyone who has used shiro should be able to see what I am doing here. Now the problem comes
.@Bean("shiroFilter")
public ShiroFilterFactoryBean shiroFilter(SecurityManager securityManager,UserService userService){
ShiroFilterFactoryBean factoryBean = new ShiroFilterFactoryBean();
Map<String,Filter> filterMap = new LinkedHashMap<>();
filterMap.put("jwt",createJWTFiter(userService));
factoryBean.setFilters(filterMap);
factoryBean.setSecurityManager(securityManager);
Map<String, String> filterChainDefinitionMap = new LinkedHashMap<>();
filterChainDefinitionMap.put("/resources/**","anon");
filterChainDefinitionMap.put("/static/**", "anon");
filterChainDefinitionMap.put("/**", "jwt");
factoryBean.setFilterChainDefinitionMap(filterChainDefinitionMap);
}
here I have configured my own filter, called jwt, and opened the resources of the static file under resoucres (actually, it doesn"t matter if I don"t need to open resources, anyway, the result is the same). After I allow the project, in theory, access to the resources under static should be accessible, but it is blocked
.The information returned by