严重: 异常将上下文初始化事件发送到类的侦听器实例
来源: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
00 -
祁聪
2019-07-01
是不是ocService没有加到编译环境中,提示 authRealm 没有注入成功,
或者shiro.xml中 authRealm package的路径错了?
00
相似问题