严重: 异常将上下文初始化事件发送到类的侦听器实例

来源:1-3 (补充)项目源码导入,配置,运行,入坑,出坑-1

慕勒2181478

2019-06-30

严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘shiroFilter’ defined in class path resource [shiro.xml]: Cannot resolve reference to bean ‘securityManager’ while setting bean property ‘securityManager’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘securityManager’ defined in class path resource [shiro.xml]: Cannot resolve reference to bean ‘authRealm’ while setting bean property ‘realm’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘authRealm’ defined in class path resource [shiro.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.online.college.web.auth.AuthRealm]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:

写回答

2回答

祁聪

2019-07-01

如果还有问题,可以加我qq

0
0

祁聪

2019-07-01

是不是ocService没有加到编译环境中,提示 authRealm 没有注入成功,

或者shiro.xml中 authRealm package的路径错了? 

0
0

Java SSM快速开发仿慕课网在线教育平台

学习整合微信公众平台开发、新浪SAE云平台、七牛云、分布式部署等等

1074 学习 · 449 问题

查看课程