I have upgrade to spring boot 3.4.2, now I getting below error while application start up.
APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.scanPackages(LocalSessionFactoryBuilder.java:365)
The following method did not exist:
'void org.springframework.orm.hibernate5.LocalSessionFactoryBuilder.addAttributeConverter(java.lang.Class)'
The calling method’s class, org.springframework.orm.hibernate5.LocalSessionFactoryBuilder, was loaded from the following location:
jar:file:/C:/Users/xxxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.class
The called method’s class, org.springframework.orm.hibernate5.LocalSessionFactoryBuilder, is available from the following locations:
jar:file:/C:/Users/xxxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar!/org/springframework/orm/hibernate5/LocalSessionFactoryBuilder.class
The called method’s class hierarchy was loaded from the following locations:
org.springframework.orm.hibernate5.LocalSessionFactoryBuilder: file:/C:/Users/xxxx/.m2/repository/org/springframework/spring-orm/6.2.2/spring-orm-6.2.2.jar
org.hibernate.cfg.Configuration: file:/C:/Users/xxxx/.m2/repository/org/hibernate/orm/hibernate-core/6.6.5.Final/hibernate-core-6.6.5.Final.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.orm.hibernate5.LocalSessionFactoryBuilder