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

1、pom.xml中加入依赖

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

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

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

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

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

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

  cmd -> jconsole 

扫描二维码关注公众号,回复: 4841951 查看本文章

猜你喜欢

转载自blog.csdn.net/jiejiaohupo/article/details/86140310