Remove a redundant setUseSuffixPatternMatch(false)

Closes gh-4656
This commit is contained in:
Johnny Lim 2015-12-02 11:58:53 +09:00 committed by Andy Wilkinson
parent 4260b0c765
commit a4baacc549

View File

@ -80,7 +80,6 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping {
CorsConfiguration corsConfiguration) {
this.endpoints = new HashSet<MvcEndpoint>(endpoints);
this.corsConfiguration = corsConfiguration;
setUseSuffixPatternMatch(false);
// By default the static resource handler mapping is LOWEST_PRECEDENCE - 1
// and the RequestMappingHandlerMapping is 0 (we ideally want to be before both)
setOrder(-100);