解决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.
The springboot timing task needs to obtain user information when logging in, so the
reference link for reporting errors when obtaining user information directly : https://blog.csdn.net/f1370335844/article/details/96845039