ElasticsearchAutoConfiguration not available in spring boot autoconfigure 2.7.6 - spring-boot

I am working on spring-boot upgrade from 2.2.2.Release to 2.7.6. I am noticing org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration is not available in spring-boot-autoconfigure:2.7.6. Is there any substitute for ElasticsearchAutoConfiguration class which is introduced in 2.7.6 version.
I checked the spring boot project source code but didn't find the ElasticsearchAutoConfiguration class present in latest version

It looks like the org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration class was removed in favor of ElasticsearchDataAutoConfiguration in the same package in b780e52 since Spring Boot 2.3.0.
See also https://github.com/spring-projects/spring-boot/issues/19668.

Related

Is spring-data-rest-webmvc:3.4.x compatible with Spring Boot 2.3.x?

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.

Compatibility of camel.springboot and spring-boot

How can I find out which spring-boot versions are supported by a given camel.springboot version? Neither camel-spring-boot-dependencies nor camel-spring-boot-bom contains any spring versions.
The org.apache.camel.springboot:spring-boot pom file references a specific Spring Boot version. For example, 3.10.0 references Spring Boot 2.4.5, 3.9.0 references Spring Boot 2.4.4, and 3.8.0 references Spring Boot 2.4.2.

How do I find out if a component is compatible with the current version of Spring

For a given spring version how do I find out which if the latest version of a component is supported or not,For example-if we are using spring boot (v1.5.8.RELEASE) ,how do I know if that spring version supports the latest version of a component say netty-all (4.1.63.Final) or the spring boot version does not support it and needs a spring version upgrade
I guess you put the version into your POM and run your tests. Then you'll see.

Backward compatibility of Springboot 2.3.4

I am using spring boot 2.0.4 for a project, and need to upgrade the mongo driver to version 4.1.
I understand that springboot 2.3.4 upgrades (here) MongoDB to version 4.1, but it doesn't clearly says if it is MongoDB version or MongoDriver.
Seems like springboot v2.3.4 is not backward compatible and my project starts failing build for missing class ChannelAwareMessageListener.
Trying to find the class path for this class, and how can I make it backward compatible with minimum changes. Otherwise, I would have to exclude the Mongo driver from Springboot mongo starter and add it as a separate dependency, which defeats the spring boot dependency version management goal.

Need to override the spring boot version used by jhipster

I am using jhipster version 3.0.6 which uses spring boot version 2.1.9 release.
I need to override this spring boot version to 2.3.3 Release.
Is there any way to do it? I added below property in my project's pom xml , inside the properties section.
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
But looks like, this is ignored and 'spring boot version 2.1.9 release' is being used which is configured in jhipster.
is there any way to override this spring boot version?

Resources