@ -50,7 +50,7 @@ public class AcceptHeaderLocaleContextResolver implements LocaleContextResolver
@@ -50,7 +50,7 @@ public class AcceptHeaderLocaleContextResolver implements LocaleContextResolver
@ -34,12 +36,14 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@@ -34,12 +36,14 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@ -47,6 +51,7 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@@ -47,6 +51,7 @@ public class PathPatternComparator implements Comparator<PathPattern> {
elseif(o2==null){
return-1;
}
// exact matches get sorted first
if(o1.getPatternString().equals(path)){
return(o2.getPatternString().equals(path))?0:-1;
@ -54,6 +59,7 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@@ -54,6 +59,7 @@ public class PathPatternComparator implements Comparator<PathPattern> {
elseif(o2.getPatternString().equals(path)){
return+1;
}
// compare pattern specificity
intresult=o1.compareTo(o2);
// if equal specificity, sort using pattern string
@ -63,4 +69,4 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@@ -63,4 +69,4 @@ public class PathPatternComparator implements Comparator<PathPattern> {
@ -112,11 +112,13 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
@@ -112,11 +112,13 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
@ -209,11 +211,13 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
@@ -209,11 +211,13 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
@ -205,6 +205,9 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed
@@ -205,6 +205,9 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed
logger.trace("Invoking ResourceResolverChain for URL pattern \""+result.getPattern()+"\"");
}
ResourceWebHandlerhandler=result.getHandler();
if(handler==null){
thrownewIllegalStateException("No handler for URL pattern \""+result.getPattern()+"\"");
@ -200,8 +201,7 @@ public class ViewResolutionResultHandler extends HandlerResultHandlerSupport
@@ -200,8 +201,7 @@ public class ViewResolutionResultHandler extends HandlerResultHandlerSupport
@ -188,8 +189,7 @@ public class FreeMarkerView extends AbstractUrlBasedView {
@@ -188,8 +189,7 @@ public class FreeMarkerView extends AbstractUrlBasedView {