Class MessageSourceProperties
java.lang.Object
org.springframework.boot.autoconfigure.context.MessageSourceProperties
Configuration properties for Message Source.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll, Kedar Joshi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
void
setAlwaysUseMessageFormat
(boolean alwaysUseMessageFormat) void
setBasename
(String basename) void
setCacheDuration
(Duration cacheDuration) 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)
-