Where to put persistence.xml in library jar using maven?

前端 未结 4 1322
无人及你
无人及你 2020-12-24 11:45

At work we have an entity library which is used by several clients for the library (several servlets, a desktop application, etc.). The entity library consists of JPA-Annota

4条回答
  •  [愿得一人]
    2020-12-24 12:18

    As @Dave mentions above src/main/resources is the place. When it comes to persistence.xml it should be placed in the META-INF folder. So to conclude: src/main/resources/META-INF/persistence.xml.

提交回复
热议问题