javax.persistence.PersistenceException - JPA+Hibernate

后端 未结 3 893
北恋
北恋 2020-12-06 04:17

I am new to JPA, when I tried to run the following code, it showing error as \"cvc-elt.1: Cannot find the declaration of element \'persistence\'.\"

3条回答
  •  独厮守ぢ
    2020-12-06 04:36

    you are missing the element in your xml... check the xsd you posted and make your persistence.xml comply to the schema. See this link for a simple example

提交回复
热议问题