问题:Error creating bean with name ‘sqlSessionFactory‘ defined in class path resource [applicationContext-dao.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
原因:确实jdbc jar包
解决:导入相应jar包
时间: 2024-10-07 04:33:39