Spring Boot 2 - Actuator Metrics Endpoint not working

前端 未结 12 1361
迷失自我
迷失自我 2020-12-08 00:35

In my Spring Boot App (2.0.0.M7) application.properties I set

management.endpoint.metrics.enabled=true

However, when i hit

         


        
12条回答
  •  独厮守ぢ
    2020-12-08 01:20

    Had the same issue upgrading from Spring Boot 1.5.15 to 2.1.4

    Needed to modify the original dependency for the Spring Boot actuator in my pom.xml from:

    
        org.springframework.boot
        spring-boot-actuator
    
    

    to:

    
        org.springframework.boot
        spring-boot-starter-actuator
    
    

    notice the addition of the word starter in the artifactId.

提交回复
热议问题