Eclipse does not recognize content of persistence.xml

前端 未结 27 1743
野趣味
野趣味 2021-01-30 20:44

Im getting the following error in eclipse:

The persistence.xml file does not have recognized content.

My persistence.xml file works great in my application but e

27条回答
  •  借酒劲吻你
    2021-01-30 21:10

    enter image description hereNo Need to change andthing in your xml file and no need to add xml in src folder. Put your persistance.xml file in META-INF folder and then put META-INF src/main/resource folder. Try following approach: Right click on project> Java Build path > Source Tab > ProjectName/src/main/resource > set Included(All) and Excluded(None). then clean and build your project. It will work for you. Tried this approach on RAD 7 & 8..5 & Eclipse.

提交回复
热议问题