赞
踩
mybatis版本和mybatis-spring版本需要对应,否则有可能会出现异常
org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout
SqlSession was not registered for synchronization because synchronization is not active
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis</artifactId>
- <version>3.4.6</version>
- </dependency>
- <!-- mybatis/spring包 -->
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis-spring</artifactId>
- <version>1.3.2</version>
- </dependency>
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis</artifactId>
- <version>3.2.8</version>
- </dependency>
- <!-- mybatis/spring包 -->
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis-spring</artifactId>
- <version>1.2.2</version>
- </dependency>
转载于:https://blog.51cto.com/jtech/2337730
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。