This is question.

The spring boot uses messages as the default basename value for the message.

spring.messages.basename=messages

Failed to get message property using getMergedProperties(Locale locale) in ReloadableResourceBundleMessageSource.

Looking at the ReloadableResourceBundleMessageSource class caused by importing resources from the refreshProperties function to the resourceLoader.

refreshProperties()

Resource resource = this.resourceLoader.getResource(filename + PROPERTIES_SUFFIX);

The resource could not be found because the resource path was /messages.properties. So I set the basename including classpath:/.

Why is the default value messages?. Is this value only a property for ResourceBundleMessageSource?.

Comment From: wilkinsona

Spring Boot uses spring.messages.basename to configure the base names of the ResourceBundleMessageSource that it auto-configures. The property is not used anywhere else. The default values is messages as this complies with the requirements of java.util.ResourceBundle which ResourceBundleMessageSource uses to load the message sources.

If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.