InstantiationException:mybatis.spring.transaction.SpringManagedTransactionFactory

版权声明:欢迎大家观看。希望对大家有所帮助。如需转载,请注明出处。谢谢。博主QQ:337081267.欢迎拍砖! https://blog.csdn.net/pyfysf/article/details/81181510

问题表现

 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>
阅读更多

扫码向博主提问

pyfysf

非学,无以致疑;非问,无以广识
  • 擅长领域:
  • android
  • java
去开通我的Chat快问
换一批

没有更多推荐了,返回首页