Add fixedlocaleresolver based on application property
If the user sets spring.mvc.locale and doesn't provide a @Bean of type LocaleResolver then a FixedLocaleResolver will be provided. Fixes gh-697, fixes gh-669
This commit is contained in:
committed by
Dave Syer
parent
00b85e8c42
commit
f78f836fc0
@@ -67,6 +67,7 @@ content into your application; rather pick only the properties that you need.
|
||||
# SPRING MVC ({sc-spring-boot-autoconfigure}/web/HttpMapperProperties.{sc-ext}[HttpMapperProperties])
|
||||
http.mappers.json-pretty-print=false # pretty print JSON
|
||||
http.mappers.json-sort-keys=false # sort keys
|
||||
spring.mvc.locale= # set fixed locale, e.g. en_UK
|
||||
spring.view.prefix= # MVC view prefix
|
||||
spring.view.suffix= # ... and suffix
|
||||
spring.resources.cache-period= # cache timeouts in headers sent to browser
|
||||
|
||||
Reference in New Issue
Block a user