Spring Boot supports localized messages so that your application can cater to users
of different language preferences. By default, Spring Boot looks for the presence of
a messages resource bundle at the root of the classpath.
![]() | Note |
|---|---|
The auto-configuration applies when the default properties file for the configured
resource bundle is available (i.e. |
The basename of the resource bundle as well as several other attributes can be configured
using the spring.messages namespace, as shown in the following example:
spring.messages.basename=messages,config.i18n.messages spring.messages.fallback-to-system-locale=false
![]() | Tip |
|---|---|
|
See
MessageSourceProperties for more supported options.