Answer the question
In order to leave comments, you need to log in
Maven and legacy dependencies. How to set the correct version?
Hello.
At work, there is a large long-term service based on Java 11 and Spring Boot 2.1
. In the next revision, it was necessary to start going to other services that had not previously been integrated into.
I chose between RestTemplate and WebClient the latter in view of its relevance.
To locally raise a working project is another task - to collect all the databases and systems where it already goes and wait until network access is issued.
To speed up the development, I created my own new local project, tested and transferred the new code to the working project of the service.
And here a surprise came out during compilation - some functions of the following classes were marked as non-existent:
Answer the question
In order to leave comments, you need to log in
Try excluding updated modules from spring dependencies.
More or less like this:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</exclusion>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
</exclusion>
</exclusions>
</dependency>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question