We have upgraded Spring Boot from 1.2.4 to 1.5.8, which automatically upgraded Hibernate from 4.3.10 to 5.0.12. We are facing some Hibernate issues and we would like to use this version of Spring Boot but downgrade Hibernate back to 4.3.10.
Is spring Boot 1.5.8 compatible with Hibernate 4.3.10?
Yes it is according to the official documentation here.
Just make sure you override the (inherited from spring-boot-depencies) version of hibernate in your pom:
<properties>
<hibernate.version>4.3.10.Final</hibernate.version>
</properties>
I found this at https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes
Hibernate 4.3 will not be supported past Spring Boot 1.4. Please raise an issue if you find a bug that prevents you from upgrading.
Related
I have spring boot project version 2.7.0.
I use the dependency-check and it reports CVE-2022-22976.
Do you know how I can solve it?
Spring security version is 5.7.1 while spring starter security version is 2.7.0.
It's a false positive that will be automatically suppressed with the upcoming release 7.1.1: https://github.com/jeremylong/DependencyCheck/issues/4563
Currently, the Spring Boot starter for Spring Security is mistaken with Spring Security itself.
Until then you'll need to suppress it manually with something like
<suppress base="true">
<notes><![CDATA[
FP per issue #4563
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework\.boot/spring-boot-starter-security#.*$</packageUrl>
<cpe>cpe:/a:vmware:spring_security</cpe>
</suppress>
There is a vulnerability (https://nvd.nist.gov/vuln/detail/CVE-2021-22047) discovered in spring-data-rest-webmvc which is only fixed in versions 3.4.14 and 3.5.6. Spring Boot 2.3.12 uses the version 3.3.9. Migrating to spring boot 2.4.x or above is not an option for us.
We would like to use spring-data-rest-webmvc:3.4.14, but we are not sure if it's compatible with spring boot 2.3.x.
Can we use them together?
Spring Data Rest version 3.4 and up use Spring Framework version 5.3.x.
Spring Boot 2.3 is build with Spring Framework 5.2.x.
Will it work, probably, but there are no garanties that it will keep working or work at all. Most like it will fail with some NoSuchMethodError or ClassNotFOundExceptions or other exotic expetions one gets when mixing modules/jars from different versions of a framework.
I have a existing spring boot project developed in Spring boot 1.3.0 RELEASE. I want to use resilience4j retry and circuitbreaker functionality.
I find resilience4j used in spring boot 2.0+ versions mostly.
Can I use resilience4j with Spring boot 1.3.0 release version and go into production as there is less support for spring boot legacy versions I feel correct me if I am wrong?
Any guide if I can accommodate resilience4j in spring boot 1.3.0 release for retry and circuitbreaker will help.
Note: It's not possible to upgrade Spring boot version which is 1.3.0 Release in this case
Thanks in advance
You can use
<dependency>
<groupId>io.github.resilience4j</groupId>
<artifactId>resilience4j-spring-boot</artifactId>
<version>1.3.1</version>
</dependency>
i'm using spring version 3.0.5 and hibernate-core version 3.6.3.final, hiberanate-commons-annotations-3.2.0.final and hibernate-jpa-2.0-api-1.0.0.final.jar and i want to know which version is compatible ?
I can"t modify the versions of spring and hibernate at the moment. For technical problems hibernate4 not support HibernateTemplate and spring version great than 3.0.x not support HibernateDaoSupport too.
So I want the spring batch version that is compatible with these two versios.
Thanks.
use spring-batch-2.1.9.RELEASE it is compatible with spring-core 3.0.x.
From 2.2.0 spring-Batch needs spring-core 3.2.0
I run spring boot 1.3.3.RELEASE, I have run into this issue that are solved in spring 4.3 https://jira.spring.io/browse/SPR-14114
When does spring boot support spring 4.3 ? Can I upgrade my spring-core dependency in current version of spring boot that I have.
When does spring boot support spring 4.3 ?
Spring Boot 1.4 will use Spring Framework 4.3 by default.
Can I upgrade my spring-core dependency in current version of spring boot that I have.
Yes. Spring Boot 1.3.x uses Spring Framework 4.2.x by default but it is compatible with Spring Framework 4.3.x. Assuming that you are using Maven and spring-boot-starter-parent as your pom's parent, you can use the spring.version property to control the version of Spring Framework that's used. For example:
<properties>
<spring.version>4.3.0.RC1</spring.version>
</properties>