1. 增加了apollo 配置中心使用的 demo

2. 调整了apollo starter的pom, 增加了对于mvc starter的依赖
This commit is contained in:
Administrator
2020-10-29 10:47:42 +08:00
parent b9a0dd86f4
commit 4518c665f9
12 changed files with 177 additions and 10 deletions

View File

@ -14,7 +14,6 @@
<packaging>jar</packaging>
<name>eureka-example</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -26,4 +25,13 @@
<artifactId>mall-ebtp-cloud-eureka-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,8 @@
server:
port: 8082
max-http-header-size: 1000000
# 胜智云eureka 统一配置 (以下内容已在starter中配置好如无必要无需定义)
# eureka.client.service-url.defaultZone=http://192.168.40.17:12093/eureka/,http://192.168.40.17:18126/eureka/,http://192.168.40.17:28641/eureka/
# eureka.instance.prefer-ip-address=true
# eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port}

View File

@ -1,12 +1,5 @@
server:
port: 8082
max-http-header-size: 1000000
spring:
application:
name: eureka-example
# 胜智云eureka 统一配置 (以下内容已在starter中配置好如无必要无需定义)
# eureka.client.service-url.defaultZone=http://192.168.40.17:12093/eureka/,http://192.168.40.17:18126/eureka/,http://192.168.40.17:28641/eureka/
# eureka.instance.prefer-ip-address=true
# eureka.instance.instance-id=${spring.cloud.client.ip-address}:${server.port}
profiles:
active: dev