From cd877d31029865e707d1ca55c65c4ed452cebd84 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Mon, 4 Jan 2021 22:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90validator=E3=80=91=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=99=A8=E7=9A=84=E9=A1=BA=E5=BA=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../validator/starter/resolver/MethodArgumentResolver.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel-d-validator/validator-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/validator/starter/resolver/MethodArgumentResolver.java b/kernel-d-validator/validator-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/validator/starter/resolver/MethodArgumentResolver.java index 7d5346a2c..36ca3628f 100644 --- a/kernel-d-validator/validator-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/validator/starter/resolver/MethodArgumentResolver.java +++ b/kernel-d-validator/validator-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/validator/starter/resolver/MethodArgumentResolver.java @@ -2,6 +2,8 @@ package cn.stylefeng.roses.kernel.validator.starter.resolver; import cn.stylefeng.roses.kernel.validator.starter.web.GunsValidator; import cn.stylefeng.roses.kernel.validator.starter.web.ValidatorRequestResponseBodyMethodProcessor; +import org.springframework.boot.autoconfigure.AutoConfigureBefore; +import org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.method.support.HandlerMethodArgumentResolver; @@ -20,6 +22,7 @@ import java.util.Objects; * @date 2020/8/21 21:09 */ @Configuration +@AutoConfigureBefore(ValidationAutoConfiguration.class) public class MethodArgumentResolver { @Resource