大概的问题就是,正常运行项目是没有问题的

使用测试类是,加载不了shiro的securityManager,主要导致不是很清楚,望告知,

解决方法

    @Resource
org.apache.shiro.mgt.SecurityManager securityManager; @Before
public void setUp() throws Exception {
ThreadContext.bind(securityManager);
SecurityUtils.getSubject();
}

  

05-27 05:48