摘要:
子项目继承了父项目子类的application.yml中增加如下 spring: profiles: include: common #引用公共配置 就可以把父项目中的application-common.yml加载进去。如果需要引用多个可以用 逗号点开 如 spring: profiles: in 阅读全文
摘要:
两种方法 第一种 @Component public class SpringContext implements ApplicationContextAware{ private static ApplicationContext applicationContext; @Override pub 阅读全文