摘要:
子项目继承了父项目子类的application.yml中增加如下 spring: profiles: include: common #引用公共配置 就可以把父项目中的application-common.yml加载进去。如果需要引用多个可以用 逗号点开 如 spring: profiles: in 阅读全文
posted @ 2020-08-07 17:14
火羽
阅读(766)
评论(0)
推荐(0)
摘要:
两种方法 第一种 @Component public class SpringContext implements ApplicationContextAware{ private static ApplicationContext applicationContext; @Override pub 阅读全文
posted @ 2020-08-07 17:11
火羽
阅读(1273)
评论(0)
推荐(0)
浙公网安备 33010602011771号