//测试权限认证访问http://localhost:8080/myController/userLogin?name=zhangsan&pwd=123报错org.apache.shiro.UnavailableSecurityManagerException:NoSecurityManager accessible tothe calling code, either bound totheorg.apache.shiro.util.ThreadContext or as a vm staticsingleton. This is an invalid application configuration.
at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:123)~[shiro-core-1.9.0.jar:1.9.0]
at org.apache.shiro.subject.Subject$Builder.<init>(Subject.java:626)~[shiro-core-1.9.0.jar:1.9.0]
at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:56)~[shiro-core-1.9.0.jar:1.9.0]
at com.lotus.shiro.controller.FirstController.controll(FirstController.java:26)~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498)~[na:1.8.0_131]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)~[spring-web-5.3.31.jar:5.3.31]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)~[spring-web-5.3.31.jar:5.3.31]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)~[spring-webmvc-5.3.31.jar:5.3.31]
at org.springframework.web.servlet.mvc.method.annotation