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

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

    It look like the Hibernate Annotation jar is wrong. It is not compatible with the jar version. So that is why it showing the "java.lang.NoSuchMethodError"

    Could you please tell me the which jar version are you currently working , please specify the version ? Then only we have to easily address this.

    Which Hibernate version are you currently working ?

    Which Annotation version are you currently working ?

    please specify the version. Thanks.

提交回复
热议问题