Running a Spring Boot Application with fixed locale
问题 I am working on a server application without a user frontend. To ensure that all parts of the application will generate only English message I would like to ensure that the application will use only a specific locale. After reading the docs and some googling I came to the conclusion that I have to do the following: Setting the locale programmatically in the main method via Locale.setDefault(Locale.ENGLISH) ; Provide a bean instance of FixedLocaleResolver as locale resolver for the application