Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring-boot 2.0.0 M1 - Actuator not working

I have a Spring-boot project that uses spring-boot actuator to provide application statistics and metrics.

The actuator functionality is being provided by adding "spring-boot-starter-actuator" to the project.

At this point, security is disable, so the project does not import spring-security.

Using spring-boot 1.5.x, all actuator Endpoints (automatic provided, as the /info, as well as my specific defined endpoints), are working correctly.

After updating to Spring-boot 2.0.0 M1, the actuator endpoints are no longer exposed. Invoking the /info endpoint returns the following error:

{"timestamp":1496948526890,"status":404,"error":"Not Found","message":"No 
message available","path":"/info"}

A note regarding Tomcat: i'm redefining the tomcat.version property, in order to use version 9.

  • When using spring-boot 1.5.x, tomcat.version=9.0.0.M9
  • When using spring-boot 2.0.0.M1, tomcat.version=9.0.0.M21
like image 643
VSOS Avatar asked Dec 01 '22 11:12

VSOS


1 Answers

And it's moved again. Right now, the URL are living under /actuator, for example: /actuator/health.

See https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-ready-endpoints

like image 172
Erik Pragt Avatar answered Dec 05 '22 10:12

Erik Pragt