Sorry for asking that. I'm not an English speaker, and Stackoverflow is the only website I have access to at my work
I need to use Spring Cloud Sleuth in a project currently in spring boot 2, but who will pass to spring boot 3 in a month?
I was reading the Spring Cloud Sleuth documentation and noticed that:
Spring Cloud Sleuth will not work with Spring Boot 3.x onward. The
last major version of Spring Boot that Sleuth will support is 2.x.
https://docs.spring.io/spring-cloud-sleuth/docs/current-SNAPSHOT/reference/html/index.html
Does this mean that the library is not currently compatible with Spring Boot 3 and there is no plan to make it work, or is work being done to make it compatible?
"My coworkers nor I am familiar with the meaning of "onward" in this context. The word does not translate well in my language."
Spring Cloud Sleuth is not planned to work with Spring Boot 3. You must migrate to Micrometer Tracing. Here you can find a link to the migration guide https://github.com/micrometer-metrics/tracing/wiki/Spring-Cloud-Sleuth-3.1-Migration-Guide
Related
I'm using Spring Boot 2.6 and Spring Cloud Sleuth 3.1.4
Whenever I run the app I'm getting this:
Your project setup is incompatible with our requirements due to following reasons:
- Spring Boot [2.6.0] is not compatible with this Spring Cloud release train
Action:
Consider applying the following actions:
- Change Spring Boot version to one of the following versions [2.4.x, 2.5.x] .
You can find the latest Spring Boot versions here [https://spring.io/projects/spring-boot#learn].
If you want to learn more about the Spring Cloud Release train compatibility, you can visit this page [https://spring.io/projects/spring-cloud#overview] and check the [Release Trains] section.
If you want to disable this check, just set the property [spring.cloud.compatibility-verifier.enabled=false]
According to release train 2021.0.x should be compatible with Spring boot 2.6 and sleuth 3.1.4 is a part of it.
Am I missing something here?
In the compatibility matrix, as listed here: https://spring.io/projects/spring-cloud, under 'Release Train' section, this should work.
But, I would recommend you to lower the spring cloud version to 3.1.3 to begin with. If you still get the same error, try with version 3.1.0. as in my project I had no problems using spring-cloud-starter-sleuth 3.1.0 with Spring Boot 2.6.x.
Best regards,
Filip
EDIT: With spring sleuth 3.1.4 you should use spring-cloud-dependencies of version 2021.0.4. Maybe here you got the problem.
I'm trying to build an Gateway API using the new Spring Boot Starter Parent 2.4.2 but, for some reason, looks like the spring-cloud-starter-netflix-zuul isn't supported anymore and doesn't work with the new version! Is there any substitute?
From Spring blog:
Zuul 1 and Archaius 1 have both been superseded by later versions that are not backward compatible.
The following Spring Cloud Netflix modules and corresponding starters will be placed into maintenance mode:
spring-cloud-netflix-archaius
spring-cloud-netflix-hystrix-contract
spring-cloud-netflix-hystrix-dashboard
spring-cloud-netflix-hystrix-stream
spring-cloud-netflix-hystrix
spring-cloud-netflix-ribbon
spring-cloud-netflix-turbine-stream
spring-cloud-netflix-turbine
spring-cloud-netflix-zuul
Replacements
We recommend the following as replacements for the functionality provided by these modules.
Current
Replacement
Hystrix
Resilience4j
Hystrix Dashboard / Turbine
Micrometer + Monitoring System
Ribbon
Spring Cloud Loadbalancer
Zuul 1
Spring Cloud Gateway
Archaius 1
Spring Boot external config + Spring Cloud Config
So you'd need to migrate to Spring Cloud Gateway.
Currently I'm upgrading from Spring Boot 1.5 to Spring Boot 2.1.5.
I know the migration guide https://www.thymeleaf.org/doc/articles/thymeleaf3migration.html
But I have some huge Tenant based template in template wrapping mechanism which is strongly relying on IResourceResolver.
As I see here https://github.com/thymeleaf/thymeleaf/issues/419 this topic was refactored completely.
How can I use Spring Boot 2 with the old thymeleaf 2?
We plan a complete frontend rework in a few months, than I would not use thymeleaf anymore. But I have to upgrade to spring boot 2 because auf some spring security topics.
I am a beginner to Spring and I would like to set up a full stack RestFul project using Maven, ReactJS. I am stuck with where should I begin with since I browse Spring website and they provide both Spring and Spring boot.
Could someone tell me how can I set up an easy example using Spring + Maven + ReactJS.
I appreciate a lot.
Spring boot is Spring + High Productivity Boost. You can fork and (or) check out this excellent Spring boot + ReactJs webapp example from github and follow the tutorial here. If you want to learn more about the various features of spring boot, see its section on spring io website
Is the way to use cassandra 3.x with Spring boot?
I was trying to use new version of spring-data-cassandra 1.5.0 while cassandra driver 3.0 is supported, but Spring boot change the dependency to 2.1.9.
I also tried to use spring-data-cassandra 1.5.0 without Spring boot, but there is not a reference documentation i i have got some errors.
I've spent whole day for trying to make it works, but there are no effects.
Maybe someone have some samples or information that can help me to run cassandra cluster on Spring boot :)