Apollo 统一配置中心

1、本地配置

  1)注解配置

  @SpringBootApplication
  @EnableScheduling
  //@EnableTyphonConf(filenames = "application")
  @Slf4j
  @ServletComponentScan(basePackages = "cn.org.*.*.filter")
  public class Application {
  }
  2)属性配置
  META-INF/app.properties
  app.id = APP_76016F104DD7423BB98D1E56B133CB29
  apollo.autoUpdateInjectedSpringProperties=false
  
  3)所需环境变量配置在application.yaml当中

posted @ 2020-08-04 14:20  菜鸟骑士  阅读(370)  评论(0)    收藏  举报