Encountered the following problems in learning Eureka
Solution:
import dependencies
<!--Eureka-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
<version>1.4.7.RELEASE</version>
</dependency>
<!--actuaor 完善监控信息-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
Add in service provider application.yml
management:
endpoints:
web:
exposure:
include: "*"
info:
env:
enabled: true