@PropertySources和@ImportReSources注解

修改默认加载的配置文件,加载指定的配置文件。

@PropertySources

格式:@PropertySources(value={"classpath:xxx.xxx"})

@ImportReSources

格式:@ImportResources(locations={"xxx.xxx"})

原文地址:https://www.cnblogs.com/lh-cml/p/11028901.html