官方链接与文档 写道
https://spring.io/guides/gs/centralized-configuration/
Spring cloud config Server基于Spring boot构建,
- 建议下载使用官方的Eclipse ( sts-3.7.2.RELEASE)
- 下载config server sample 的源码,并导入到eclipse工程中,gs-centralized-configuration-complete\configuration-service
- 修改配置文件
- 启动程序
配置文件 maven文件:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>configuration-service</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spr