spring 整合 shiro现在SecurityUtil.getSubject()时抛出如下异常

但是登陆都没问题。配置是按照网上的配置一步一步做的。
2016-7-6 18:41:07 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
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.

你可以把代码贴出来看下一下,或者看一下这个系列:http://blog.csdn.net/column/details/14461.html