springMvc整合shiro的时候提示shiroFilter创建错误,

secondfirstlife 2016-08-31 11:16:01
警告: Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.MethodInvokingFactoryBean#1' defined in file [F:\mavenWorkPlace\ssmproject\mmsproject\target\classes\spring\springconfig-shiro.xml]: Cannot resolve reference to bean 'shiroFilter' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanInitializationException: SecurityManager property must be set.
只报了这个错误,配置文件什么的我检查了好多遍了,没有问题
...全文
727 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复 1
SecurityManager property must be set. securityManager属性必须注入。在shiroFilter的bean里加上这个属性。
Swen程序员 2016-09-28
  • 打赏
  • 举报
回复
你使用了注解开发?
aaadyyyyyy 2016-09-28
  • 打赏
  • 举报
回复
是不是版本问题啊
hp448950328 2016-09-28
  • 打赏
  • 举报
回复
朋友 你的问题解决了吗?我也遇到了
小灯光环 2016-09-28
  • 打赏
  • 举报
回复
参考一下我的这篇blog,有源码:http://blog.csdn.net/wlwlwlwl015/article/details/48518003

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧