很明显是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-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-02-21
猜你喜欢
  • 2021-07-26
  • 2022-02-24
  • 2022-02-14
  • 2021-05-14
  • 2022-12-23
  • 2022-03-02
  • 2021-10-03
相关资源
相似解决方案