1、微服务信息
本质其实就是actuator的info信息配置
2、添加actuator的依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
3、application.yml配置
info:
app.name: mldn-microcloud
company.name: www.zemel.cn
build.artifactId: $project.artifactId$
build.version: $project.version$
eureka:
client:
serviceUrl:
defaultZone: http://eurekaserver-7001.com:7001/eureka/
instance:
instanceId: dept-8001.com
prefer-ip-address: true #访问地址显示
4、启动访问