gradle构建工程
spring-boot-admin-server
build.gradle
compile group: 'de.codecentric', name: 'spring-boot-admin-starter-server', version: '2.0.0'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.0.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-webflux', version: '2.0.2.RELEASE'
compile group: 'org.jolokia', name: 'jolokia-core', version: '1.5.0'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.0.2.RELEASE'
application.yml
eureka:
instance:
preferIpAddress: true
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
service-url:
defaultZone: ${EUREKA_SE