[Solved] Shiro integrated springboot static resources are intercepted and cannot be accessed

If this rule is used to integrate springboot in shiro, static resources under static will also be intercepted:filterMap.put("/**", "perms[user:root]");
So how to solve it?
First go to my static directory structure:
Insert picture description here
Next, I need to release these resources .

filterMap.put("/bootstrap/**","anon");
filterMap.put("/markdown/**","anon");
filterMap.put("/MyStyle/**","anon");
filterMap.put("/**", "perms[user:root]");

Just add the above filtering rules!
It means: all resources under bootstrap/markdown/MyStyle are set to anon: you can access without authentication (login)!

Guess you like

Origin blog.csdn.net/Pzzzz_wwy/article/details/106375943