项目中用了apache的shiro,spring的mvc.整个项目非常正常。
后来因业务需求加上了quartz,结果在quartz中保存数据时,出现如下异常
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.
具体表现在quartz启动后,调用相关方法取得数据,然后调用save的时候就报错,未检查出问题,但是在去掉quartz后,整个项目一切正常。
所以,我想请问一下,在quartz中是否还有针对shiro的处理。