java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext

前端 未结 6 1235
傲寒
傲寒 2021-02-19 06:02

I am developing Spring MVC Hibernate Integration example. In this example I\'m using Spring 4.1.9.RELEASE and Hibernate 5.1.0.Final. If I

6条回答
  •  梦如初夏
    2021-02-19 07:03

    You can use the following setup as well for Spring 4 + Hibernate 5:

    spring setup:

    
        
        
    
    
    
        
    
    

    pom.xml setup:

    
      1.7
      4.3.2.RELEASE
    
    
    
        
            org.springframework
            spring-context
            ${org.springframework-version}
        
    
        
            org.springframework
            spring-webmvc
            ${org.springframework-version}
        
        
            org.springframework
            spring-orm
            ${org.springframework-version}
            jar
            compile
        
    
    
    
        org.hibernate
        hibernate-core
        5.2.2.Final
    
    

    Tried and tested.

提交回复
热议问题