未卜先知
2018-07-22 12:28
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/spring.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 [spring/spring.xml]: Cannot resolve reference to bean 'realm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.core.JdbcTemplate] for bean with name 'jdbcTemplate' defined in class path resource [spring/spring-dao.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.core.JdbcTemplate
似乎是jdbc这里出问题了?
是不是spring-dao.xml这个配置文件写错了。
<bean class="com.alibaba.druid.pool.DruidDataSource" id="dataSource">
我也是这个错误,解决不了...
我的错误跟你一样的
我的这样解决不了
解决了,果然看报错还是有用的,没JDBC,肯定是没加进去
一看artifacts,果然没加,要把这两个put into /WEB-INF/lib里面去(感觉是老问题了,为什么我这里不会自动添加呢?)
Shiro安全框架入门
48040 学习 · 332 问题
相似问题