|
@@ -1,22 +0,0 @@
|
|
|
-package cn.com.ty.lift.system.config;
|
|
|
-
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.context.annotation.Profile;
|
|
|
-import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
-
|
|
|
-//Spring boot方式
|
|
|
-@EnableTransactionManagement
|
|
|
-@Configuration
|
|
|
-public class MybatisPlusConfig {
|
|
|
-
|
|
|
- /**
|
|
|
- * SQL执行效率插件
|
|
|
- */
|
|
|
- @Bean
|
|
|
- @Profile({"dev","test"})// 设置 dev test 环境开启
|
|
|
- public PerformanceInterceptor performanceInterceptor() {
|
|
|
- return new PerformanceInterceptor();
|
|
|
- }
|
|
|
-}
|