【validator】更新校验器的顺序问题

pull/3/head
fengshuonan 2021-01-04 22:03:53 +08:00
parent 3982a9af98
commit cd877d3102
1 changed files with 3 additions and 0 deletions

View File

@ -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.GunsValidator;
import cn.stylefeng.roses.kernel.validator.starter.web.ValidatorRequestResponseBodyMethodProcessor; 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.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.method.support.HandlerMethodArgumentResolver;
@ -20,6 +22,7 @@ import java.util.Objects;
* @date 2020/8/21 21:09 * @date 2020/8/21 21:09
*/ */
@Configuration @Configuration
@AutoConfigureBefore(ValidationAutoConfiguration.class)
public class MethodArgumentResolver { public class MethodArgumentResolver {
@Resource @Resource