Facing issue while upgrading from Spring Boot 1.x to Spring Boot 2.x - spring-boot

I have an already existing SpringBoot 1.x application which is using Java 7.I want to upgrade spring boot version from 1.x to 2.x.
For up gradation I have upgraded java version from 1.7 to 1.8 in maven pom.xml.
In existing application I am using apache log4j(org.apache.log4j.*) for logging purpose.Getting compilation error for log4j after up gradation.
Thanks in advance.

As of Spring Boot 1.4, the log4j (1.x) starter module is no longer available:
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes#deprecations-from-spring-boot-13
You can either switch to log4j2 (which still has a starter module) or you'll have to manually provide the log4j dependencies 1.x in your POM.

Related

can we use springboot 3 with apache camel?

I resolve some fixes vulnerabilites in a java application and we have a critical issue https://nvd.nist.gov/vuln/detail/cve-2016-1000027 the point here is the current version of springboot is 2.7.2 and migrate version for use springboot 3.0.0 the camel 3 context not load, Does anyone know if spring boot 3 is compatible with any version of camel3?
Camel 4 will support Spring Boot 3. Until then, I'd recommend upgrading to the latest Spring Boot 2.7.x release.

Spring-Boot 1.5.10.release compatibility with apache-kafka-2.3.0 client

My project is built with Spring boot 1.5.10.release. We want to migrate to Apache Kafka® 2.3.0 from Apache Kafka 1.0.x.
We are currently using Spring-kafka 1.3.9.release and want to migrate to spring-kafka-2.3.0. Can we do this without changing the Spring boot version of 1.5.10.release?
I went through the Compatibility matrix but I don't see any relevant answer to my question
https://spring.io/projects/spring-kafka
No, you can't do that. Spring Kafka 2.x, as well Spring Boot 2.x, is based on Spring Framework 5.x and Java 8. You can't mix so critical versions in Spring Boot 1.5.x.
It is really better to rely on the Spring Boot dependencies management. That way you can be sure that all the artifacts brought by Spring Boot are tested together.

Spring Tool Suite 3.9.1, does not allow choosing Apache Camel

In the New Spring Starter Dependencies, for Version 2.0.1, (STS 3.9.1), Apache Camel is not available to including as a dependency. Is this not supported or am I missing any configuration?
Figured out that Camel currently supports Spring Boot 1.5, and not Spring Boot 2.0.. as per the release notes here

What are spring-boot supported versions for log4j?

Can I know about what are the spring-boot supported versions for log4j. Because I use spring-boot version 1.5.9. It is already support for log4j2 and I want to know what is the latest version that support for log4j.
All latest versions of Spring Boot supports log4j2.
Current version of Spring Boot 2.0.0 supports log4j2 version 2.10.0. You can verify other dependency versions from here.

apache camel 2.9.1 works with spring 3.1.x and Spring 4.x

Hi Currently I am using camel-2.9.1 with default underlying dependency spring 3.0.5. This is working fine in production. Now I have to use some feature of Spring 3.1.x or Spring 4.x.
Will camel-2.9.1 works if I replace underlying spring jars to 3.1.x or Spring 4.x.
Since it is already in production i don't want to upgrade camel jars.
Will same camel-jars of 2.9.1 works with Spring 3.1.x or spring 4.x

Resources