Polishing
This commit is contained in:
@@ -126,17 +126,14 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
|
||||
mapping.setCorsConfigurations(getCorsConfigurations());
|
||||
|
||||
PathMatchConfigurer configurer = getPathMatchConfigurer();
|
||||
|
||||
Boolean useTrailingSlashMatch = configurer.isUseTrailingSlashMatch();
|
||||
if (useTrailingSlashMatch != null) {
|
||||
mapping.setUseTrailingSlashMatch(useTrailingSlashMatch);
|
||||
}
|
||||
|
||||
Boolean useCaseSensitiveMatch = configurer.isUseCaseSensitiveMatch();
|
||||
if (useCaseSensitiveMatch != null) {
|
||||
mapping.setUseCaseSensitiveMatch(useCaseSensitiveMatch);
|
||||
}
|
||||
|
||||
Map<String, Predicate<Class<?>>> pathPrefixes = configurer.getPathPrefixes();
|
||||
if (pathPrefixes != null) {
|
||||
mapping.setPathPrefixes(pathPrefixes);
|
||||
@@ -331,6 +328,10 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
|
||||
return initializer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a {@link FormattingConversionService} for use with annotated controllers.
|
||||
* <p>See {@link #addFormatters} as an alternative to overriding this method.
|
||||
*/
|
||||
@Bean
|
||||
public FormattingConversionService webFluxConversionService() {
|
||||
FormattingConversionService service = new DefaultFormattingConversionService();
|
||||
@@ -339,7 +340,9 @@ public class WebFluxConfigurationSupport implements ApplicationContextAware {
|
||||
}
|
||||
|
||||
/**
|
||||
* Override to add custom {@link Converter}s and {@link Formatter Formatter}s.
|
||||
* Override this method to add custom {@link Converter} and/or {@link Formatter}
|
||||
* delegates to the common {@link FormattingConversionService}.
|
||||
* @see #webFluxConversionService()
|
||||
*/
|
||||
protected void addFormatters(FormatterRegistry registry) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user