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

前端 未结 4 1158
余生分开走
余生分开走 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:25

    Check your version of Hibernate, you need hibernate-core 3.6.0 or higher to use the method addAnnotatedClass of org.hibernate.cfg.Configuration

提交回复
热议问题