diff options
author | Vitaly Takmazov | 2023-01-14 15:42:03 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-14 15:42:03 +0300 |
commit | 23a41aebadbe13e8992856c6be84ce6d01de0175 (patch) | |
tree | 28ccc1446a8d4c1b9141454ea74703e65a9bff22 /src/main/java/com/juick/config/WebConfig.java | |
parent | 834fef2a7794d769144c7c087a8b1fa0a2a9bb21 (diff) |
Configure test coverage reports
Diffstat (limited to 'src/main/java/com/juick/config/WebConfig.java')
-rw-r--r-- | src/main/java/com/juick/config/WebConfig.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/juick/config/WebConfig.java b/src/main/java/com/juick/config/WebConfig.java index 136faea9..2040afd6 100644 --- a/src/main/java/com/juick/config/WebConfig.java +++ b/src/main/java/com/juick/config/WebConfig.java @@ -35,6 +35,7 @@ import org.springframework.format.FormatterRegistry; import org.springframework.http.CacheControl; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; +import org.springframework.validation.beanvalidation.MethodValidationPostProcessor; import org.springframework.web.method.support.HandlerMethodArgumentResolver; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @@ -66,6 +67,10 @@ public class WebConfig implements WebMvcConfigurer { public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) { resolvers.add(visitorArgumentResolver()); } + @Bean + public MethodValidationPostProcessor methodValidationPostProcessor() { + return new MethodValidationPostProcessor(); + } @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { try { |