Skip to content

Commit

Permalink
Add Eureka client support
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhicheng-Liu committed Mar 6, 2019
1 parent fd12341 commit 57a09fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@
<version>0.6-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
<version>1.4.6.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
Expand Down
12 changes: 11 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#####################################################################################
# SPRING-CORE
#####################################################################################
spring.application.name=EGA accession service
spring.application.name=ega-accession-service
# Bean jmx domain when using multiple applications with tomcat.
spring.jmx.default-domain=ega-accession
endpoints.jmx.domain=ega-accession
Expand Down Expand Up @@ -96,3 +96,13 @@ accessioning.monotonic.array.nextBlockInterval=0
accessioning.monotonic.sample.blockSize=1000
accessioning.monotonic.sample.blockStartValue=0
accessioning.monotonic.sample.nextBlockInterval=0

#####################################################################################
# Local Eureka
#####################################################################################
eureka.name=accessionService
eureka.port=8761
eureka.vipAddress=
eureka.serviceUrls=
eureka.client.serviceUrl.defaultZone=
eureka.instance.preferIpAddress=true
5 changes: 4 additions & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ accessioning.monotonic.array.nextBlockInterval=0

accessioning.monotonic.sample.blockSize=1000
accessioning.monotonic.sample.blockStartValue=0
accessioning.monotonic.sample.nextBlockInterval=0
accessioning.monotonic.sample.nextBlockInterval=0

# disable eureka for test
eureka.client.enabled=false

0 comments on commit 57a09fc

Please sign in to comment.