Skip to content

Commit 2c52a6d

Browse files
author
angump
committed
Added Eureka client
1 parent aa48cdf commit 2c52a6d

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
6+
77
<parent>
88
<groupId>guru.springframework</groupId>
99
<artifactId>mssc-brewery-bom</artifactId>
1010
<version>1.0-SNAPSHOT</version>
1111
</parent>
1212

13-
<groupId>guru.springframework</groupId>
1413
<artifactId>mssc-beer-inventory-service</artifactId>
1514
<version>0.0.1-SNAPSHOT</version>
1615
<name>mssc-beer-inventory-service</name>
@@ -32,6 +31,12 @@
3231
<artifactId>ehcache</artifactId>
3332
</dependency>
3433

34+
35+
<dependency>
36+
<groupId>org.springframework.cloud</groupId>
37+
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
38+
</dependency>
39+
3540
</dependencies>
3641

3742

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package guru.sfg.beer.inventory.service.config;
2+
3+
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
4+
import org.springframework.context.annotation.Configuration;
5+
import org.springframework.context.annotation.Profile;
6+
7+
@Profile("local-discovery")
8+
@EnableDiscoveryClient
9+
@Configuration
10+
public class LocalDiscovery {
11+
12+
}

src/main/resources/application.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
spring.application.name=beer-inventory-service
2+
13
logging.level.guru=debug
2-
server.port=8083
4+
server.port=8082
35

46
spring.artemis.user=artemis
57
spring.artemis.password=simetraehcapa

0 commit comments

Comments
 (0)