Affects: Spring WebFlux 5.2.4.RELEASE Spring Boot:2.2.5.RELEASE
We are trying to provide a custom LocaleContextResolver
in WebFlux but it appears the only way of doing this is by extending from DelegatingWebFluxConfiguration
. If we do so, the application gets the wrong ObjectMapper on the context (I have the spring.jackson.serialization
properties on my YML file). As soon as I delete my DelegatingWebFluxConfiguration
, the app gets the correct the ObjectMapper.
I tried finding another way of providing my LocaleContextResolver
but it does not seem there is one.
Comment From: snicoll
Providing a DelegatingWebFluxConfiguration
switches off Spring Boot's auto-configuration, which you can see in the auto-configuration report. Have you tried to expose a bean of type LocaleContextResolver
named localeContextResolver
?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.