When I am using webflux, the MessageSourceAccessor.getDefaultLocale() obtained by MessageSourceAccessor.getMessage() is always null. If I am using webflux, I should obtain it in the reactor context instead of the localeContextHolder or inheritableLocaleContextHolder. Because I want to return different languages based on the Accept Language in the request header, rather than based on the server operating system language Locale.getDefault()

Comment From: marcusdacoregio

Hi @yangwenliang123,

Since MessageSourceAcessor is a Spring Framework class, it would be better to open an issue on their issue tracker. If you still think that this is a Spring Security issue we can reopen this.