@PropertiesSource注解读取配置文件中的数据

task.properties配置文件: corn=0/1 * * * * ? demo.url=http://www.baidu.com name=job 读取方式:1 加载配置文件:@PropertySource(value = "classpath:task.properties") 读取: 注册bean: @Bean public static PropertySourcesPlaceho
相关文章
相关标签/搜索