失效链接处理 |
微服务接入config配置中心 PDF 下载
本站整理下载:
相关截图:
主要内容:
1 前言 1.1 目的 本文档是中台赋能中心后端微服务项目集成 config 配置中心手册,提供了接入 config 配置中心详细步骤以及部分配置规范。 1.2 读者对象 运维人员、开发人员 1.3 资源环境准备 参考本文档之前默认您已经完成以下步骤: springcloud 注册中心 eureka 需要整合 config 的微服务项目 2 搭建配置中心项目 参考项目模板:config-server-m aster.rar 2.1 创建 maven 项目 略.....
2.2 添加 pom.xml 依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-server</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> 2.3 启动类注解 @SpringBootApplication @EnableConfigServer @EnableEurekaClient public class ConfigCenterApplication { public static void main(String[] args) { SpringApplication.run(ConfigCenterApplication.class, args); } }
|