Search code examples
spring-bootspring-boot-admin

Spring Boot Admin Server 2.0 with Spring Boot Version 1.5 not working


We have Spring Boot Application (Application 1 , which runs on Spring Boot 1.5 and Java 1.8 , and we are trying to use dependency Spring Boot Admin Client 2.0). Now we have another application (Application 2 , which is on Spring Boot 2.0 , Java 1.8 and Spring Boot Admin Server 2.0 .) We need to set up communication between both of them. We tried tweaking few things but the client fails to register with server. (Application 1 fails to get register with Application 2). Any help would be appreciated . We cannot upgrade to Spring Boot 2.0 for our spring client (Application 1) but wanted to use new Spring Boot Admin server to display stats.


Solution

  • Spring Admin Server 2.x is compatible with Spring boot 2.x application and not with spring boot 1.x application. The main reason in that from Spring boot 1.x and 2.x the actuator module is significantly changed, starting from security concern to how those endpoint are exposed even in the path. The my advice is use a Spring Boot Admin Server 1.x for Spring Boot 1.x application because.

    Update

    However it is possible force the usage of spring boot admin 2 with legacy Spring boot 1.5 how described on Monitoring Spring Boot 1.5.x section of the official spring boot admin documentation