Class SettingsConfig


  • @Configuration
    public class SettingsConfig
    extends Object
    Beans declaration for making the settings available via the Spring Environment and placeholder substitution.
    Author:
    poirigui
    • Constructor Detail

      • SettingsConfig

        public SettingsConfig()
    • Method Detail

      • propertySourcesPlaceholderConfigurer

        @Bean
        public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer​(@Qualifier("settingsPropertySources")
                                                                                                                                    org.springframework.core.env.PropertySources ps)
        Allow for substitution placeholders with values from the settings.
      • baseCodeConfigurer

        @Bean
        public static BaseCodeConfigurer baseCodeConfigurer​(@Qualifier("settingsPropertySources")
                                                            org.springframework.core.env.PropertySources ps)
      • conversionService

        @Bean
        public org.springframework.core.convert.ConversionService conversionService()
        The default Spring conversion service has limited support for Java 8 types.

        This might be resolved in Spring 4+, in which case we could remove this declaration.