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

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

    In addition:

    I've faced the same problem and I came to this page after googling for an answer and none of these answers helped me, so in case that somebody passes through the same problem:

    I had an ArrayList and when I wanted to add an item to the arraylist, the NoSuchMethodException encountered. The problem was that the ArrayList had to be an Array.

提交回复
热议问题