I have a maven Spring Boot web application with quite a few (transitive) dependencies.
There are .jar
files in the WEB-INF/lib
folder inside the built .war
.
For example:
hibernate-jpa-2.1-api-1.0.0.Final.jar
javax.persistence-2.1.0.jar
Both of these contain a class called javax/persistence/JoinColumn.class
(with different file sizes).
At runtime, which "version" is going to be referenced when I use it in the code?
Can this type of dependency cause problems later?