采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
![![
项目提示unmapped Spring configuration后添加Spring Application Context后出现报错
index权限为“authc”
在AuthRealm里面好像我的springboot版本问题,有些代码显示报错,例如CollectionUtils.isNotEmpty(),我这里写的是
老师你好,关于shiro里的securityManager问题已经解决,但还是没能实现拦截,输入/index会直接进入index。
没明白,index设置啥权限了
老师可以麻烦看一下嘛
你的index设置什么权限了,希望做什么拦截
断点后显示的错误是
你在return index那里加一个断点,看一下exception是什么异常,你目前这个看不出具体异常来
老师您好,报错的是 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
那应该是通用配置的类出问题了,你检查一下shiro里做Configuration里的securityManager及相关的类是否有问题,包括导入类的路径
没有具体报错,但是在login页面登陆成功后会跳转到/loginUser(上图页面),无法实现拦截。
你好,提示的什么错误
老师您好,可以看下上文回复嘛?
登录后可查看更多问答,登录/注册
源于企业真实Java项目,涉及大量高级技巧,覆盖权限管理开发技术
2.2k 6
1.8k 22
1.1k 20
936 18