From 32bfe334c0be11152b1789ddcc2d54b26daf342b Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 21 十月 2021 18:41:56 +0800 Subject: [PATCH] update 整理删除无用注释 保证代码整洁 --- ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java | 48 ++++++++++++++---------------------------------- 1 files changed, 14 insertions(+), 34 deletions(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java index 57388ec..db81b74 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java @@ -18,13 +18,12 @@ import java.util.List; /** - * mybatis-plus閰嶇疆绫� + * mybatis-plus閰嶇疆绫�(涓嬫柟娉ㄩ噴鏈夋彃浠朵粙缁�) * * @author Lion Li */ @EnableTransactionManagement(proxyTargetClass = true) @Configuration -// 鎸囧畾瑕佹壂鎻忕殑Mapper绫荤殑鍖呯殑璺緞 @MapperScan("${mybatis-plus.mapperPackage}") public class MybatisPlusConfig { @@ -35,14 +34,11 @@ interceptor.addInnerInterceptor(paginationInnerInterceptor()); // 涔愯閿佹彃浠� interceptor.addInnerInterceptor(optimisticLockerInnerInterceptor()); - // 闃绘柇鎻掍欢 -// interceptor.addInnerInterceptor(blockAttackInnerInterceptor()); return interceptor; } /** * 鍒嗛〉鎻掍欢锛岃嚜鍔ㄨ瘑鍒暟鎹簱绫诲瀷 - * https://baomidou.com/guide/interceptor-pagination.html */ public PaginationInnerInterceptor paginationInnerInterceptor() { PaginationInnerInterceptor paginationInnerInterceptor = new PaginationInnerInterceptor(); @@ -55,41 +51,13 @@ /** * 涔愯閿佹彃浠� - * https://baomidou.com/guide/interceptor-optimistic-locker.html */ public OptimisticLockerInnerInterceptor optimisticLockerInnerInterceptor() { return new OptimisticLockerInnerInterceptor(); } /** - * 濡傛灉鏄鍏ㄨ〃鐨勫垹闄ゆ垨鏇存柊鎿嶄綔锛屽氨浼氱粓姝㈣鎿嶄綔 - * https://baomidou.com/guide/interceptor-block-attack.html - */ -// public BlockAttackInnerInterceptor blockAttackInnerInterceptor() { -// return new BlockAttackInnerInterceptor(); -// } - - /** - * sql鎬ц兘瑙勮寖鎻掍欢(鍨冨溇SQL鎷︽埅) - * 濡傛湁闇�瑕佸彲浠ュ惎鐢� - */ -// public IllegalSQLInnerInterceptor illegalSQLInnerInterceptor() { -// return new IllegalSQLInnerInterceptor(); -// } - - - /** - * 鑷畾涔変富閿瓥鐣� - * https://baomidou.com/guide/id-generator.html - */ -// @Bean -// public IdentifierGenerator idGenerator() { -// return new CustomIdGenerator(); -// } - - /** * 鍏冨璞″瓧娈靛~鍏呮帶鍒跺櫒 - * https://baomidou.com/guide/auto-fill-metainfo.html */ @Bean public MetaObjectHandler metaObjectHandler() { @@ -98,7 +66,6 @@ /** * sql娉ㄥ叆鍣ㄩ厤缃� - * https://baomidou.com/guide/sql-injector.html */ @Bean public ISqlInjector sqlInjector() { @@ -113,6 +80,19 @@ } /** + * PaginationInnerInterceptor 鍒嗛〉鎻掍欢锛岃嚜鍔ㄨ瘑鍒暟鎹簱绫诲瀷 + * https://baomidou.com/guide/interceptor-pagination.html + * OptimisticLockerInnerInterceptor 涔愯閿佹彃浠� + * https://baomidou.com/guide/interceptor-optimistic-locker.html + * MetaObjectHandler 鍏冨璞″瓧娈靛~鍏呮帶鍒跺櫒 + * https://baomidou.com/guide/auto-fill-metainfo.html + * ISqlInjector sql娉ㄥ叆鍣� + * https://baomidou.com/guide/sql-injector.html + * BlockAttackInnerInterceptor 濡傛灉鏄鍏ㄨ〃鐨勫垹闄ゆ垨鏇存柊鎿嶄綔锛屽氨浼氱粓姝㈣鎿嶄綔 + * https://baomidou.com/guide/interceptor-block-attack.html + * IllegalSQLInnerInterceptor sql鎬ц兘瑙勮寖鎻掍欢(鍨冨溇SQL鎷︽埅) + * IdentifierGenerator 鑷畾涔変富閿瓥鐣� + * https://baomidou.com/guide/id-generator.html * TenantLineInnerInterceptor 澶氱鎴锋彃浠� * https://baomidou.com/guide/interceptor-tenant-line.html * DynamicTableNameInnerInterceptor 鍔ㄦ�佽〃鍚嶆彃浠� -- Gitblit v1.9.3