add configuration server

This commit is contained in:
DOHA
2017-01-25 16:36:18 +02:00
parent 3793b32dee
commit 6b23f7f7cf
15 changed files with 165 additions and 9 deletions
@@ -8,8 +8,8 @@
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>spring-cloud-rest</name>
<description>Demo project for Spring Boot</description>
<name>spring-cloud-rest-client-2</name>
<description>Client Service for book reviews</description>
<parent>
<groupId>org.springframework.boot</groupId>
@@ -26,6 +26,10 @@
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
@@ -1,7 +1,7 @@
#### cloud
spring.application.name=spring-cloud-eureka-client
server.port=0
eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://system:systemPass@localhost:8761/eureka}
eureka.client.serviceUrl.defaultZone=http://system:systemPass@localhost:8761/eureka
eureka.instance.preferIpAddress=true
#### persistence