Skip to content

Commit 74f0e42

Browse files
committed
Make it clearer when there will be no auto-configured MessageSource
Closes gh-17485
1 parent 8eb6886 commit 74f0e42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,8 @@ a `messages` resource bundle at the root of the classpath.
20152015
NOTE: The auto-configuration applies when the default properties file for the configured
20162016
resource bundle is available (i.e. `messages.properties` by default). If your resource
20172017
bundle contains only language-specific properties files, you are required to add the
2018-
default.
2018+
default. If no properties file is found that matches any of the configured base names,
2019+
there will be no auto-configured `MessageSource`.
20192020

20202021
The basename of the resource bundle as well as several other attributes can be configured
20212022
using the `spring.messages` namespace, as shown in the following example:

0 commit comments

Comments
 (0)