追踪到ThreadContext.getSecurityManager()为null
因此在Shiro配置类增加ThreadContext.bind(securityManager),问题解决
问题总结:
web-stat-filter设置为false可以解决报错,但是就失去druid监控功能了,这个报错应该是Druid监控拦截和Shiro拦截的顺序问题,稀里糊涂解决了。如果有高手评论区可以解答一下报错的真正原因
追踪到ThreadContext.getSecurityManager()为null
因此在Shiro配置类增加ThreadContext.bind(securityManager),问题解决
问题总结:
web-stat-filter设置为false可以解决报错,但是就失去druid监控功能了,这个报错应该是Druid监控拦截和Shiro拦截的顺序问题,稀里糊涂解决了。如果有高手评论区可以解答一下报错的真正原因