摘要:
利用@PropertySource注解加载@Configuration@ComponentScan(basePackages="*")@PropertySource({"classpath:config.properties"})//@Import(DataSourceConfig.class)public class DefaultAppConfig { @Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { re 阅读全文