问题表现
Error creating bean with name 'sqlSessionFactory'
Invocation of init method failed;
nested exception is java.lang.InstantiationException:
org.mybatis.spring.transaction.SpringManagedTransactionFactory
解决办法
将
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.0.1</version>
</dependency>
修改为:
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.0.0</version>
</dependency>