在学习SpringCloud的时候,刚接触监控信息,添加了相应的依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
``
在application.yml文件中也写了info信息:`
info:
app:
name: good.by.com
在查看页面的时候却出不来:
各种搜索了一波,在这篇博客中得到了解决:https://blog.csdn.net/m0_49349350/article/details/120977943
解决办法:在application.yml文件中添加以下配置信息即可:
management:
endpoints:
web:
exposure:
include: "*"