According to this post, by having the spring-boot-actuator
dependency in pom.xml
, I could benefits from the actuator
endpoints. However, I observed it breaks my existing my spring application (It is not a spring-boot application).
I added the following to my dependency in pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
Thats it. I did not make any changes to application yet.
I started the container using maven-t7-plugin
.
Now my application endpoint http://localhost:8010/mycontext/foo
is returning 404. I commented out the above dependency
in pom.xml
.
Now my application returns 200 OK
for the above request.
Kindly help troubleshoot me as what is going wrong. I could not find any obvious reasons.
Thanks