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

问题描述 投票:0回答:1

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

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

spring-aop spring-cloud-config
1个回答
0
投票

你有没有把Spring Cloud Config服务器属性放在bootstrap.propertiesbootstrap.yml

© www.soinside.com 2019 - 2024. All rights reserved.