use of external configuration
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
server:
|
||||
port: 0
|
||||
|
||||
spring:
|
||||
config:
|
||||
import: optional:configserver:http://localhost:8888
|
@@ -1,5 +0,0 @@
|
||||
spring:
|
||||
application:
|
||||
name: timezone-service
|
||||
config:
|
||||
import: optional:configserver:http://config-service.web:8080
|
15
src/main/resources/bootstrap.yml
Normal file
15
src/main/resources/bootstrap.yml
Normal 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
|
Reference in New Issue
Block a user