org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFa
2018-03-01 22:06
597 查看
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
原因 : 可能是缺少相关依赖
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.0.2.RELEASE</version>
</dependency>
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
原因 : 可能是缺少相关依赖
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.0.2.RELEASE</version>
</dependency>
相关文章推荐
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContex
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'homeurl' def
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManage
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name解决方案
- 解决org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localSessi
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- 解决org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchContro
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fetchControl
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springfr
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'u' defined i
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SystControl'
- 解决org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.spring
- ssh搭建 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessio
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'g': Injectio
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 't
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemLogAsp