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 Details

    • MessageSourceProperties

      public MessageSourceProperties()
  • Method Details

    • getBasename

      public List<String> getBasename()
    • setBasename

      public void setBasename(List<String> basename)
    • getEncoding

      public Charset getEncoding()
    • setEncoding

      public void setEncoding(Charset encoding)
    • getCacheDuration

      public Duration getCacheDuration()
    • setCacheDuration

      public void setCacheDuration(Duration cacheDuration)
    • 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

      public List<Resource> getCommonMessages()
    • setCommonMessages

      public void setCommonMessages(List<Resource> commonMessages)