Integration eureka and SBA in the same project - spring-boot

I plan to integrate eureka and Spring Boot Admin in the same project.
When I use spring boot version 2.1.14.RELEASE, spring boot admin version 2.1.6 and spring cloud version Greenwich.SR5 it works fine.
But when I use spring boot version 2.3.0.RELEASE, spring boot admin version 2.2.3 and spring cloud version Hoxton.SR4 the browser console got some error.
Here is the demo code.
demo.zip

If you have the below property in your application.properties file:
server.servlet.context-path
Try adding this too:
eureka.instance.metadata-map.management.context-path: ${server.servlet.context-path}/actuator

Related

parentSpanId not propagated in spring boot 2.6.x and spring cloud 2021.0.4

I have upgraded my project to spring boot 2.6.11 and spring cloud 2021.0.4. After that, the parentId disappeared from the log.
I am using logback to logging purpose. So there is a way to display it?
I added a logging pattern but it didn't change anything:
logging.pattern.level=%5p [${spring.application.name:-},%X{X-B3-TraceId:-},%X{X-B3-SpanId:-},%X{X-Span-Export:-}]

Spring Boot Parent and Spring Cloud starter gateway version issue

I am forced to use/mention Spring cloud gateway version because my organization uses nexus repo.
I am using spring boot parent version 2.5.12, could you please let me know which version of spring
cloud starter gateway should I use. I have tried 3.x.x version for gateway but no use.
You can refer to Spring Boot and Spring Cloud Compatibility Matrix in the below
Check for Release train Spring Boot compatibility in the below
https://spring.io/projects/spring-cloud
See compatible version between Spring Cloud (Spring Cloud Gateway) with Spring Boot at here. https://spring.io/blog/2022/05/27/spring-cloud-2021-0-3-is-available-compatible-with-spring-boot-2-7-0
https://github.com/spring-cloud/spring-cloud-release/wiki
Choose correct versions pair for you.
For example: Spring Cloud Gateway 3.1.3 (belong to Spring Cloud 2021.0.3 Release Train) works with Spring Boot 2.6.x and Spring Boot 2.7.x

spring cloud 2020.0.4 and spring-kafka:2.6.6 compatibility

I am using spring cloud 2020.0.2 and spring-kafka:2.6.6 with spring boot 2.5.8. This works fine.
But when I upgrade spring cloud to 2020.0.4 then spring kafka throws following error.
MessageHandling exception, Missing header kafka_acknowledgement.
Can anyone please help me if spring cloud 2020.0.2 and spring-kafka:2.6.6 is compatible?
Thank you
2020.0.x switched to Spring Boot 2.5 in 2020.0.3 (see https://spring.io/projects/spring-cloud).
Boot 2.5.x uses Spring for Apache Kafka 2.7.x.

Does Spring Cloud Hoxton.SR3 compatible with Spring Boot 2.3.11?

I would like to know Spring Cloud Hoxton.SR3 is compatible with Spring Boot 2.3.11 ?
The Spring Cloud project page contains a version compatibility table. Spring Cloud Hoxton is compatible with Spring Boot 2.2.x and, as of SR5, Spring Boot 2.3.x. In short, Spring Cloud Hoxton.SR3 is not compatible with Spring Boot 2.3.11.

Spring Boot Admin Server 2.X backwards compatible with 1.3.3

Most of our microservices still use Spring Boot 1.3.5 and are monitored with Spring Boot Admin 1.3.3. I have recently started upgrading some of these microservices to Spring Boot 2.0.0 and we are successfully monitoring them with Spring Boot 2.0.2, however I can't get Spring Boot 2.0.2 to monitor 1.3.5 Spring Boot applications. The application registers on SBA, but SBA returns a 404 error when trying to access any info tab (which I guess comes from the change on the endpoints on SBA 2.X.X).
In the SBA reference guide it is stated that it is possible to monitor 1.5.X applications (https://codecentric.github.io/spring-boot-admin/current/#monitoring-spring-boot-1.5.x). I've tried this method with no luck, so my question is, is it possible to monitor Spring Boot 1.3.5 applications with SBA 2.X.X? am I missing something?.

Resources