From 2f35983fa1d39dfd8ec558f90bd2cf9a87e339c6 Mon Sep 17 00:00:00 2001 From: lifenow Date: Wed, 11 Nov 2020 14:36:25 +0800 Subject: [PATCH] =?UTF-8?q?:arrow=5Fup:=20Upgrading=20dependencies.=20?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=20mybatis-plus=203.4.1=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=B8=BB=E4=BD=93=E9=85=8D=E7=BD=AE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20https://gitee.com/log4j/pig/issues/I24QAB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/config/WebMvcConfiguration.java | 8 ----- .../SqlFilterArgumentResolverTest.java | 36 ------------------- pig-common/pig-common-mybatis/pom.xml | 16 +++++++++ .../mybatis/MybatisAutoConfiguration.java | 29 +++++++++++---- .../resolver}/SqlFilterArgumentResolver.java | 2 +- 5 files changed, 40 insertions(+), 51 deletions(-) delete mode 100644 pig-common/pig-common-core/src/test/java/com/pig4cloud/pig/common/core/mybatis/SqlFilterArgumentResolverTest.java rename pig-common/{pig-common-core/src/main/java/com/pig4cloud/pig/common/core/mybatis => pig-common-mybatis/src/main/java/com/pig4cloud/pig/common/mybatis/resolver}/SqlFilterArgumentResolver.java (98%) diff --git a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/WebMvcConfiguration.java b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/WebMvcConfiguration.java index 73b0db59..ed3c2491 100644 --- a/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/WebMvcConfiguration.java +++ b/pig-common/pig-common-core/src/main/java/com/pig4cloud/pig/common/core/config/WebMvcConfiguration.java @@ -17,16 +17,13 @@ package com.pig4cloud.pig.common.core.config; import cn.hutool.core.date.DatePattern; -import com.pig4cloud.pig.common.core.mybatis.SqlFilterArgumentResolver; import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; import org.springframework.context.annotation.Configuration; import org.springframework.format.FormatterRegistry; import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar; -import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import java.time.format.DateTimeFormatter; -import java.util.List; import static org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type.SERVLET; @@ -40,11 +37,6 @@ import static org.springframework.boot.autoconfigure.condition.ConditionalOnWebA @ConditionalOnWebApplication(type = SERVLET) public class WebMvcConfiguration implements WebMvcConfigurer { - @Override - public void addArgumentResolvers(List argumentResolvers) { - argumentResolvers.add(new SqlFilterArgumentResolver()); - } - /** * 增加GET请求参数中时间类型转换 {@link com.pig4cloud.pig.common.core.jackson.PigJavaTimeModule} *