use of external configuration
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
4
pom.xml
4
pom.xml
@@ -88,6 +88,10 @@
|
|||||||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||||||
<version>2.6.0</version>
|
<version>2.6.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-config</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
server:
|
server:
|
||||||
port: 0
|
port: 0
|
||||||
|
|
||||||
eureka:
|
spring:
|
||||||
client:
|
config:
|
||||||
service-url:
|
import: optional:configserver:http://localhost:8888
|
||||||
defaultZone: http://localhost:8761/eureka
|
|
||||||
|
@@ -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:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: timezone-service
|
name: timezone-service
|
||||||
|
config:
|
||||||
management:
|
import: optional:configserver:http://config-service.web:8080
|
||||||
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
|
|
||||||
|
Reference in New Issue
Block a user