Class SpringConfig

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.EnvironmentAware

    @Configuration
    public class SpringConfig
    extends java.lang.Object
    implements org.springframework.context.EnvironmentAware
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.context.MessageSource configureMessageSource()
      Create a resource bundle for your messages ("messages.properties").
      This file goes in src/main/resources because you want it to appear at the root of the classpath on deployment.
      void setEnvironment​(org.springframework.core.env.Environment environment)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringConfig

        public SpringConfig()
    • Method Detail

      • configureMessageSource

        @Bean(name="messageSource")
        public org.springframework.context.MessageSource configureMessageSource()
        Create a resource bundle for your messages ("messages.properties").
        This file goes in src/main/resources because you want it to appear at the root of the classpath on deployment.
        Returns:
        message source
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        Specified by:
        setEnvironment in interface org.springframework.context.EnvironmentAware