use of external configuration

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-14 22:52:08 +02:00
parent a62974e4b3
commit 76ea7b062a
3 changed files with 9 additions and 37 deletions

View File

@@ -88,6 +88,10 @@
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.6.0</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>

View File

@@ -1,7 +1,6 @@
server:
port: 0
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka
spring:
config:
import: optional:configserver:http://localhost:8888

View File

@@ -1,36 +1,5 @@
info:
application:
name: ${spring.application.name}
version: '@project.version@'
spring-cloud-version: '@spring-cloud.version@'
spring-boot-version: '@project.parent.version@'
server:
port: ${PORT:8080}
shutdown: graceful
error:
include-message: on_param
include-stacktrace: on_param
spring:
application:
name: timezone-service
management:
endpoint:
health:
probes:
enabled: true
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://eureka-service.web:8761/eureka
instance:
instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}
springdoc:
swagger-ui:
path: /swagger-ui.html
config:
import: optional:configserver:http://config-service.web:8080