101

微服务之配置服务器切换profile | Aoho's Blog

 6 years ago
source link: http://blueskykong.com/2017/11/16/profile/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
最近遇到Spring-boot的多个profile切换问题,需求是这样的:微服务中引入了Spring Cloud Config,服务启动的时候,从Config Server中读取该实例对应的配置信息。本地开发环境可能使用的profile是default,到了集成测试环境就需要切换到jenkins,到了预发布环境又变成了prod。多个profile需要之间可以切换。 这边设置的时候还走了点弯路,先是

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK