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

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

解决方法

    @Resource
    org.apache.shiro.mgt.SecurityManager securityManager;

    @Before
    public void setUp() throws Exception {
        ThreadContext.bind(securityManager);
        SecurityUtils.getSubject();
    }

  

相关文章:

  • 2021-08-22
  • 2021-04-11
  • 2021-09-13
  • 2021-12-08
  • 2021-05-09
  • 2022-12-23
  • 2021-08-26
  • 2021-04-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
  • 2021-07-03
  • 2021-07-23
相关资源
相似解决方案