Eclipse does not recognize content of persistence.xml

前端 未结 27 1737
野趣味
野趣味 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 20:44

    Hard to say since hard to reproduce (your persistence.xml is perfectly valid) but maybe try to:

    • Clean the project (both an "Project > Clean" and a Maven clean)
    • Force Eclipse to validate the XML file again (right-click, and select Validate XML file).

提交回复
热议问题