6

I would like to add Spring Boot actuator metrics to my existing Spring MVC 5 application (I cannot convert to Spring Boot). There are a couple of answered questions on SO (Spring Boot Actuator without Spring Boot) but they are for using Spring Boot Actuator 1.x. Spring Boot Actuator 2.x has been re-architected and so these instructions are no longer valid. Has anyone integrated Spring Boot Actuator 2.x with a standard Spring MVC 5 app?

Piers Geyman
  • 479
  • 3
  • 19
  • check similar question [here](https://stackoverflow.com/questions/29953157/spring-boot-actuator-without-spring-boot) Hope it helps – codereal Jun 15 '18 at 07:13
  • 1
    If you look at my post you will see that I already referenced that link and said that it is only for Spring Boot Actuator 1.x – Piers Geyman Jun 15 '18 at 13:08
  • @PiersGeyman I also want to use "Spring Boot 2 Actuator" module without Spring Boot, any workarounds which worked for you? Thanks – nikhil Mar 09 '20 at 08:35

1 Answers1

0

Unfortunately you cannot include Spring Boot Actuator without requiring Spring Boot. Spring Boot is a Maven dependency of the Spring Boot Actuator project (the name also suggests that spring boot is required).

You can check out the actual dependency of spring-boot in the pom of spring-boot-actuator.

Boaz Berman
  • 230
  • 4
  • 13
  • I think the first actuator was also depending on spring boot but it still could be used in old spring applications, so I don't think your answer is 100% correct. (https://github.com/spring-projects/spring-boot/blob/1.5.x/spring-boot-actuator/pom.xml) – Vadim Kirilchuk Jun 01 '18 at 02:15
  • `spring-boot` was also a dependency in version 1.x but the actuator could still be used. – Druckles Feb 07 '19 at 11:08