Fixes Spring Cloud Gateway configuration

This commit is contained in:
Markus Günther
2021-02-05 21:40:38 +01:00
parent 6e72c0e649
commit 847a5a34d5
15 changed files with 109 additions and 115 deletions

View File

@@ -78,7 +78,7 @@
<!-- Spring Cloud -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@@ -1,12 +1,15 @@
server:
contextPath: /api
port: 8089
servlet:
context-path: /api
management:
security:
enabled: false
spring:
application:
name: gtd-es-command-side
kafka:
bootstrapServers: localhost:9092
consumer:
@@ -29,6 +32,7 @@ eureka:
enabled: true
serviceUrl:
defaultZone: ${EUREKA_CLIENT_SERVICEURL_DEFAULTZONE:http://localhost:8761/eureka/}
register-with-eureka: true
instance:
appname: gtd-es-command-side
preferIpAddress: true

View File

@@ -1,3 +1,9 @@
spring:
application:
name: gtd-es-command-side
cloud:
discovery:
enabled: true
client:
health-indicator:
enabled: true