From 74f0e42c98d536bc2e234dfe33411f0cf83c8cbe Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 19 Jul 2019 15:43:20 +0100 Subject: [PATCH] Make it clearer when there will be no auto-configured MessageSource Closes gh-17485 --- .../src/main/asciidoc/spring-boot-features.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index c5c919cf930..f538ebe8278 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -2015,7 +2015,8 @@ 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. `messages.properties` by default). If your resource bundle contains only language-specific properties files, you are required to add the -default. +default. If no properties file is found that matches any of the configured base names, +there will be no auto-configured `MessageSource`. 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: