shiro

报错:

org.apache.shiro.UnavailableSecurityManagerException: 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.
这里报错是尝试不增加shiroFilter造成的
<filter>
        <filter-name>shiroFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
        <filter-name>shiroFilter</filter-name>
        <url-pattern>/*</url-pattern>
</filter-mapping>

 资料:

http://jinnianshilongnian.iteye.com/blog/2049092

posted @ 2017-02-08 09:56  yangfei969  阅读(120)  评论(0编辑  收藏  举报