Class MessageSourceProperties
java.lang.Object
org.springframework.boot.autoconfigure.context.MessageSourceProperties
@ConfigurationProperties(prefix="spring.messages")
public class MessageSourceProperties
extends Object
Configuration properties for Message Source.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll, Kedar Joshi, Misagh Moayyed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
void
setAlwaysUseMessageFormat
(boolean alwaysUseMessageFormat) void
setBasename
(List<String> basename) void
setCacheDuration
(Duration cacheDuration) void
setCommonMessages
(List<Resource> commonMessages) void
setEncoding
(Charset encoding) void
setFallbackToSystemLocale
(boolean fallbackToSystemLocale) void
setUseCodeAsDefaultMessage
(boolean useCodeAsDefaultMessage)
-
Constructor Details
-
MessageSourceProperties
public MessageSourceProperties()
-
-
Method Details
-
getBasename
-
setBasename
-
getEncoding
-
setEncoding
-
getCacheDuration
-
setCacheDuration
-
isFallbackToSystemLocale
public boolean isFallbackToSystemLocale() -
setFallbackToSystemLocale
public void setFallbackToSystemLocale(boolean fallbackToSystemLocale) -
isAlwaysUseMessageFormat
public boolean isAlwaysUseMessageFormat() -
setAlwaysUseMessageFormat
public void setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat) -
isUseCodeAsDefaultMessage
public boolean isUseCodeAsDefaultMessage() -
setUseCodeAsDefaultMessage
public void setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage) -
getCommonMessages
-
setCommonMessages
-