shimh-develop / blog-vue-springboot

基于Vue+SpringBoot构建的博客项目
1.93k stars 552 forks source link

UserControllerTest单元测试报异常 #6

Open seppelhuang opened 5 years ago

seppelhuang commented 5 years ago

nHandler - 服务器内部错误 , uri: /users/create , caused by: 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. at org.apache.shiro.SecurityUtils.getSecurityManager(SecurityUtils.java:123) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.subject.Subject$Builder.(Subject.java:626) ~[shiro-core-1.4.0.jar:1.4.0] at org.apache.shiro.SecurityUtils.getSubject(SecurityUtils.java:56) ~[shiro-core-1.4.0.jar:1.4.0]