Spring integrates mybatis
Error message
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.SqlSessionFactoryBean#0' defined in class path resource [application.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
Missing jar package
Add the following jar package
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>4.2.5.RELEASE</version> </dependency>
Similar Posts:
- Spring cloud consumer feign injection error [How to Solve]
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘configurationPropertiesBeans’ defined in class path resource
- Error creating bean with name ‘com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration’
- How to Solve the login error of Spring + Shiro CacheManager
- mybatis: Property ‘configuration’ and ‘configLocation’ can not specified with together
- Springcloud: gateway module startup error
- Factory method ‘eurekaClient’ threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient!
- Pom.xml add dependency error [How to Solve]
- Springboot startup error start bean ‘eurekaautoserviceregistration’ NullPointerException
- [Solved] Cause: java.lang.ClassNotFoundException: Cannot find class: xxxx