Error after upgrade to spring boot 3.4.2

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

No idea what you did there, but it seems you messed up your application dependencies. Either way, this is a Hibernate ORM forum, not a Spring forum, so please ask that questions in Spring forums.