java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass

前端 未结 4 1156
余生分开走
余生分开走 2021-01-23 06:43

I am new to JPA & hibernate, when I try this tutorial . I added the following provider in my persistence.xml,

org.hibernate.ejb.HibernatePer         


        
4条回答
  •  无人及你
    2021-01-23 07:18

    Use the following dependencies...

    
        org.hibernate
        hibernate-entitymanager
        4.3.6.Final
    
    
        org.hibernate
        hibernate-core
        3.6.4.Final
    
    
        org.hibernate
        hibernate-annotations
        3.5.5-Final
    
    
        org.hibernate.common
        hibernate-commons-annotations
        4.0.4.Final
    
    
        org.slf4j
        slf4j-api
        1.7.7
    
    

提交回复
热议问题