Provide config properties for configuring WebFlux's locale resolution
Previously, the locale context resolver used with WebFlux could only be configured by provided a custom LocaleContextResolver bean. By constrast, when using Spring MVC, the spring.mvc.locale and spring.mvc.locale-resolver properties could be used to configure the locale and the resolver (fixed or Accept header) respectively. This commit introduces spring.web.locale and spring.web.locale-resolver properties and deprecates their spring.mvc equivalents. The new properties can be used to configure locale resolution with either Spring MVC or WebFlux. Closes gh-23449
This commit is contained in:
@@ -72,7 +72,7 @@ public class DocumentConfigurationProperties extends DefaultTask {
|
||||
.addSection("mail").withKeyPrefixes("spring.mail", "spring.sendgrid").addSection("cache")
|
||||
.withKeyPrefixes("spring.cache").addSection("server").withKeyPrefixes("server").addSection("web")
|
||||
.withKeyPrefixes("spring.hateoas", "spring.http", "spring.servlet", "spring.jersey", "spring.mvc",
|
||||
"spring.resources", "spring.webflux")
|
||||
"spring.resources", "spring.web", "spring.webflux")
|
||||
.addSection("json").withKeyPrefixes("spring.jackson", "spring.gson").addSection("rsocket")
|
||||
.withKeyPrefixes("spring.rsocket").addSection("templating")
|
||||
.withKeyPrefixes("spring.freemarker", "spring.groovy", "spring.mustache", "spring.thymeleaf")
|
||||
|
||||
Reference in New Issue
Block a user