JokerMasks

导航

No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.配置文件找不到shiro安全配置

首先查询web.xml是否配置shiroFilter的拦截,如果配置了,查看shiroFilter与struts2拦截的顺序,是否是struts2在前面

struts2的拦截器不能用在shiroFilter拦截器的前面,如果实在前面的时候就拦截不到,需要将shiroFilter放到前面就可以了.

 

posted on 2017-10-09 09:18  JokerMasks  阅读(3489)  评论(0)    收藏  举报