|
|
|
@ -31,6 +31,7 @@ import org.springframework.validation.DefaultMessageCodesResolver;
|
|
|
|
|
* @author Phillip Webb
|
|
|
|
|
* @author Sébastien Deleuze
|
|
|
|
|
* @author Stephane Nicoll
|
|
|
|
|
* @author Eddú Meléndez
|
|
|
|
|
* @since 1.1
|
|
|
|
|
*/
|
|
|
|
|
@ConfigurationProperties("spring.mvc")
|
|
|
|
@ -77,6 +78,11 @@ public class WebMvcProperties {
|
|
|
|
|
*/
|
|
|
|
|
private Map<String, MediaType> mediaTypes = new LinkedHashMap<String, MediaType>();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Path that pattern used for static resources.
|
|
|
|
|
*/
|
|
|
|
|
private String staticPathPattern = "/**";
|
|
|
|
|
|
|
|
|
|
private final Async async = new Async();
|
|
|
|
|
|
|
|
|
|
private final View view = new View();
|
|
|
|
@ -147,6 +153,14 @@ public class WebMvcProperties {
|
|
|
|
|
this.dispatchTraceRequest = dispatchTraceRequest;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getStaticPathPattern() {
|
|
|
|
|
return this.staticPathPattern;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setStaticPathPattern(String staticPathPattern) {
|
|
|
|
|
this.staticPathPattern = staticPathPattern;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Async getAsync() {
|
|
|
|
|
return this.async;
|
|
|
|
|
}
|
|
|
|
|