解决org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
springboot 定时任务因为需要在登陆情况下获取用户信息,所以直接获取用户信息时报错的
参考连接:https://blog.csdn.net/f1370335844/article/details/96845039