1、pom.xml中加入依赖

    <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>

2、启动项目后不显示如下相关的日志,则有可能是版本问题,最高版不一定是好事

项目监控插件:spring-boot-starter-actuator 使用问题

3、有以上日志却访问报404

 

解决方案1:在属性配置文件中加入以下配置  management.security.enabled=false

解决方案2:如果在application.propertites中配置过context-path,先去掉(原因未知),访问localhost:8080/dump  就正常了

项目监控插件:spring-boot-starter-actuator 使用问题

4、上面这个监控插件相当于java 监视与管理控制台

  cmd -> jconsole 

项目监控插件:spring-boot-starter-actuator 使用问题项目监控插件:spring-boot-starter-actuator 使用问题

相关文章:

  • 2021-12-26
  • 2022-01-08
  • 2021-11-30
  • 2022-12-23
  • 2021-08-30
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2021-08-14
  • 2021-10-27
相关资源
相似解决方案