Browse Source

开启mybatis plus事务管理器

NorthLan 7 years ago
parent
commit
9e6f5bb2a5

+ 2 - 0
zen-orm/src/main/kotlin/com/gxzc/zen/orm/config/MybatisPlusConfig.kt

@@ -6,12 +6,14 @@ import org.mybatis.spring.annotation.MapperScan
 import org.springframework.context.annotation.Bean
 import org.springframework.context.annotation.Configuration
 import org.springframework.context.annotation.Profile
+import org.springframework.transaction.annotation.EnableTransactionManagement
 
 /**
  *
  * @author NorthLan at 2018/1/30
  */
 @Configuration
+@EnableTransactionManagement
 @MapperScan("com.gxzc.zen.api.*.mapper")
 class MybatisPlusConfig {