@PropertySource @ImportSource
@ConfigurationProperties默认读取的是全局配置文件(工程创建成功后自带application.properties文件),所以如果我们需要导入其他的.properties文件 就得在配置类上使用这个注解把自己的.properties文件导入@ImportSource用来导入spring的配置文件,例如xxx.xml 我们可以在xxx.xml中配置好很多bean 然后再配置类上使用@ImportSource来加载xml中的bean把他们放到容器中例子:我们使用dubbo+zk的时



