File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
java/guru/sfg/beer/inventory/service/config Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 3
3
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
4
4
xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
5
<modelVersion >4.0.0</modelVersion >
6
-
6
+
7
7
<parent >
8
8
<groupId >guru.springframework</groupId >
9
9
<artifactId >mssc-brewery-bom</artifactId >
10
10
<version >1.0-SNAPSHOT</version >
11
11
</parent >
12
12
13
- <groupId >guru.springframework</groupId >
14
13
<artifactId >mssc-beer-inventory-service</artifactId >
15
14
<version >0.0.1-SNAPSHOT</version >
16
15
<name >mssc-beer-inventory-service</name >
32
31
<artifactId >ehcache</artifactId >
33
32
</dependency >
34
33
34
+
35
+ <dependency >
36
+ <groupId >org.springframework.cloud</groupId >
37
+ <artifactId >spring-cloud-starter-netflix-eureka-client</artifactId >
38
+ </dependency >
39
+
35
40
</dependencies >
36
41
37
42
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ spring.application.name =beer-inventory-service
2
+
1
3
logging.level.guru =debug
2
- server.port =8083
4
+ server.port =8082
3
5
4
6
spring.artemis.user =artemis
5
7
spring.artemis.password =simetraehcapa
You can’t perform that action at this time.
0 commit comments