How to tell eclipse to ignore: “No persistence.xml file found in project”

前端 未结 7 1824
情话喂你
情话喂你 2021-02-05 02:13

For my projects Necessity i regroup all the persistence.xml entries in one core project which i bind as maven dependency wherever i need.

The problem is that the eclipse

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 03:10

    Window->Preferences->Java Persistence-> JPA-> Errors/warnings-> Project
    

    Then change it from error to whatever you like(warning/info/ignore). You could also choose configure project specific settings if you don't want it to affect other projects

提交回复
热议问题