Facing the below error while upgrading from Sprinboot 3.2.12 to 3.4.0
Spring framework version upgraded from 6.1.15 to 6.2.1
NoSuchMethod ‘java.util.LinkedHashSet org.springframework.util.CollectionUtils.newLinkedHashSet(int)’
How can this be resolved?
checked the dependency tree and verified that all spring versions are compatible
Farha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
make sure spring-boot-starter is in sync with the newly added dependencies.
try using dependencymanagement in pom.xml to make sure version is consistent.
1