Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate.HibernateTransactionManager] for bean with name ‘transactionManager’ defined in URL ….; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManager
If you are getting exception like below:
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate.HibernateTransactionManager] for bean with name 'transactionManager' defined in URL ....; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate.HibernateTransactionManager |
Just add below dependency and you are done!
<!-- Object-to-Relation-Mapping (ORM) integration with Hibernate, JPA, and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx) Define this if you need ORM (org.springframework.orm.*) --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>${org.springframework.version}</version> </dependency> |
Leave a Reply