BAEL-1174: A Quick Guide to Spring Cloud Consul

This commit is contained in:
Jose Carvajal
2017-11-30 11:55:49 +01:00
parent f47a60c5de
commit b14dfbe4f0
14 changed files with 319 additions and 1 deletions
@@ -0,0 +1,14 @@
spring:
application:
name: myApp
cloud:
consul:
host: localhost
port: 8500
discovery:
healthCheckPath: /my-health-check
healthCheckInterval: 20s
enabled: true
instanceId: ${spring.application.name}:${random.value}
server:
port: 0
@@ -0,0 +1,9 @@
spring:
application:
name: myApp
cloud:
consul:
host: localhost
port: 8500
config:
enabled: true