use of external configuration

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-14 23:18:52 +02:00
parent 76ea7b062a
commit 3d39800a92
5 changed files with 19 additions and 12 deletions

View File

@@ -1,6 +0,0 @@
server:
port: 0
spring:
config:
import: optional:configserver:http://localhost:8888

View File

@@ -1,5 +0,0 @@
spring:
application:
name: timezone-service
config:
import: optional:configserver:http://config-service.web:8080

View File

@@ -0,0 +1,15 @@
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://localhost:8761/eureka
spring:
application:
name: timezone-service
cloud:
config:
discovery:
enabled: true
serviceId: config-service