摘要: 利用@PropertySource注解加载@Configuration@ComponentScan(basePackages="*")@PropertySource({"classpath:config.properties"})//@Import(DataSourceConfig.class)public class DefaultAppConfig { @Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { re 阅读全文
posted @ 2014-01-26 11:01 王 庆 阅读(465) 评论(0) 推荐(0) 编辑