Initialize default Locale and Timezone with Spring configuration

前端 未结 4 2123
抹茶落季
抹茶落季 2020-12-30 05:36

I\'m loading application settings such as JDBC connection info from a properties file using PropertyPlaceholderConfigurer. I\'d like to also have other settings

4条回答
  •  不知归路
    2020-12-30 06:07

    How about standalone spring boot application? The java application looks like:

    @SpringBootApplication
    @EnableScheduling
    @EnableConfigurationProperties(TaskProperty.class)
    public class JobApplication {
    
    /*  @Autowired
        private TaskProperty taskProperty;
    */  
        public static void main(String[] args) {
            SpringApplication.run(JobApplication.class, args);
        }
    } 
    

提交回复
热议问题