diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java index b887aba20bf..8f089189933 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java @@ -62,15 +62,15 @@ public class WebMvcProperties { */ private boolean throwExceptionIfNoHandlerFound = false; - private final Async async = new Async(); - - private final View view = new View(); - /** * Maps file extensions to media types for content negotiation, e.g. yml->text/yaml. */ private Map mediaTypes = new LinkedHashMap(); + private final Async async = new Async(); + + private final View view = new View(); + public DefaultMessageCodesResolver.Format getMessageCodesResolverFormat() { return this.messageCodesResolverFormat; } @@ -113,14 +113,6 @@ public class WebMvcProperties { this.throwExceptionIfNoHandlerFound = throwExceptionIfNoHandlerFound; } - public Async getAsync() { - return this.async; - } - - public View getView() { - return this.view; - } - public Map getMediaTypes() { return this.mediaTypes; } @@ -129,6 +121,14 @@ public class WebMvcProperties { this.mediaTypes = mediaTypes; } + public Async getAsync() { + return this.async; + } + + public View getView() { + return this.view; + } + public static class Async { /**