@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=MessageSourceConfiguration.class) public @interface MessageSourceBasenames
MessageSource.
This annotation should be placed on the @SpringBootApplication class.
In the following example, messages will be loaded from the main com/company/demo/messages.properties bundle
and from the additional com/company/demo/othermessages.properties bundle.
package com.company.demo;
@SpringBootApplication
@MessageSourceBasenames({"com/company/demo/othermessages"})
public class DemoApplication { }
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
value |