6 个解决方案
#1
应该是配置文件有误
#2
是的,基本出的错都是 Error creating bean with name '***' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception isXXXXXXX。
自己没看出来,请问怎么解决?
自己没看出来,请问怎么解决?
#3
贴一下你的applicationContext.xml我瞧瞧,web.xml中设置加载applicationContext.xml文件了吧!
#4
我说的配置文件有误是指: Field or property 'driver' cannot be found on object of type 'java.util.Properties
创建 datasource时加载的依赖无法满足。你从dao层往 前的注入环肯定会报错了
创建 datasource时加载的依赖无法满足。你从dao层往 前的注入环肯定会报错了
#5
嗯,我是在配置中和MySQL没有连上,把'$'符号写成了'#';还有一个原因是:已经使用了注解加入bean,还在配置文件中重复配置bean。我回复的比较慢,请见谅!
非常的谢谢您!
#6
2018-01-15 22:10:55,163 ERROR - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"
我的报这个错,哪位大神帮忙下
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"
我的报这个错,哪位大神帮忙下
#1
应该是配置文件有误
#2
是的,基本出的错都是 Error creating bean with name '***' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception isXXXXXXX。
自己没看出来,请问怎么解决?
自己没看出来,请问怎么解决?
#3
贴一下你的applicationContext.xml我瞧瞧,web.xml中设置加载applicationContext.xml文件了吧!
#4
我说的配置文件有误是指: Field or property 'driver' cannot be found on object of type 'java.util.Properties
创建 datasource时加载的依赖无法满足。你从dao层往 前的注入环肯定会报错了
创建 datasource时加载的依赖无法满足。你从dao层往 前的注入环肯定会报错了
#5
嗯,我是在配置中和MySQL没有连上,把'$'符号写成了'#';还有一个原因是:已经使用了注解加入bean,还在配置文件中重复配置bean。我回复的比较慢,请见谅!
非常的谢谢您!
#6
2018-01-15 22:10:55,163 ERROR - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"
我的报这个错,哪位大神帮忙下
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource [spring-mybatis.xml]: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'driverClassName' in string value "${driverClassName}"
我的报这个错,哪位大神帮忙下