mock 中使用@Transactional注解测试失效问题,只需要引入这个就好了
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
mock 中使用@Transactional注解测试失效问题,只需要引入这个就好了
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>