import spring-dao.xml后Spring容器出問(wèn)題,不能創(chuàng)建realm的bean
嚴(yán)重: 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這里出問(wèn)題了?
2019-01-24
是不是spring-dao.xml這個(gè)配置文件寫(xiě)錯(cuò)了。
2018-09-26
我也是這個(gè)錯(cuò)誤,解決不了...
2018-08-21
我的錯(cuò)誤跟你一樣的
我的這樣解決不了
2018-07-22
解決了,果然看報(bào)錯(cuò)還是有用的,沒(méi)JDBC,肯定是沒(méi)加進(jìn)去
一看artifacts,果然沒(méi)加,要把這兩個(gè)put into /WEB-INF/lib里面去(感覺(jué)是老問(wèn)題了,為什么我這里不會(huì)自動(dòng)添加呢?)