根据这篇文章,通过spring-boot-actuator
依赖 in ,我可以从端点中pom.xml
受益。actuator
但是,我观察到它破坏了我现有的 spring 应用程序(它不是 spring-boot 应用程序)。
我在 pom.xml 中将以下内容添加到我的依赖项中
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
<version>1.2.5.RELEASE</version>
</dependency>
而已。我还没有对应用程序进行任何更改。我使用maven-t7-plugin
. 现在我的应用程序端点http://localhost:8010/mycontext/foo
返回 404。我dependency
在pom.xml
. 现在我的应用程序返回200 OK
上述请求。
请帮助我解决问题所在。我找不到任何明显的原因。
谢谢