在上下文启动之前获取Spring Cloud Config Server

时间:2018-03-06 16:38:52

标签: spring-aop spring-cloud-config

我有一个使用AOP规则的Spring Boot应用程序。这些规则取决于application properties

现在我必须使用Spring Cloud Config Server这个应用程序。但问题是 - 在我的应用程序从配置服务器获取配置之前,AOP规则要求属性 。在解决AOP规则之前,有没有办法从服务器获取属性?

1 个答案:

答案 0 :(得分:0)

您是否在Spring Cloud Configbootstrap.properties中添加了bootstrap.yml服务器资源?