SpringBoot configuration Shiro, after customizing Filter, setting anon is still not open

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

.

clipboard.png

The information returned by

is shown in the figure. What to do? try to solve the problem

.
Jan.20,2022

you have to ask yourself


you can debug to see how the program works and whether it works as expected.

Menu