很明显是shiro权限问题;

这里我使用系统内部定时器调用service 但是其中有一段代码是调用的shiro 获取subject,问题就出来这里。

此方法根本没有走http shiro路径,调用subject方法就会报错误。就如:shiro你不走我凭什么拿我的东西o SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadCo

o SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadCo

加一个try catch即可

相关文章:

  • 2021-07-12
  • 2021-06-17
  • 2021-06-02
  • 2021-11-07
  • 2021-04-15
  • 2021-11-10
  • 2021-04-04
猜你喜欢
  • 2020-03-17
  • 2021-05-14
  • 2021-09-28
  • 2021-05-31
  • 2021-08-18
  • 2021-11-15
  • 2021-07-07
  • 2022-01-03
相关资源
相似解决方案