我正在将应用程序从 Spring Boot 迁移到 Spring Boot 2。以前我们必须在单个应用程序中使用 Spring Boot 管理服务器和客户端(即应用程序同时是服务器和客户端)。这很奇怪,但至少现在我们必须继续以同样的方式使用它。
起初我决定使用一个演示项目让它工作: https ://github.com/dmitrysenkovich/spring_boot_admin_2_not_working
但是,我收到一个错误:
ApplicationRegistrator: Failed to register application as Application(name=spring-boot-admin-sample-servlet, managementUrl=http://localhost:8080/actuator, healthUrl=http://localhost:8080/actuator/health, serviceUrl=http://localhost:8080/actuator/admin) at spring-boot-admin ([http://localhost:8080/instances]): 404 null. Further attempts are logged on DEBUG level
Spring Boot 版本是 2.0.4.RELEASE,Spring Boot Admin Client/Server 是 2.0.2。
希望有人可以使它工作。先感谢您!