L
L
LearnJava
Search…
Spring问题
错误日志
1
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
2
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy
3
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:121)
4
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
5
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1502)
6
... 13 more
Copied!
解决方案
maven中引入Spring jdbc的包
1
<dependency>
2
<groupId>org.springframework</groupId>
3
<artifactId>spring-jdbc</artifactId>
4
<version>4.1.4.RELEASE</version>
5
</dependency>
Copied!
Copy link