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

前端 未结 4 1323
无人及你
无人及你 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:13

    XML configuration files almost always belong in src/main/resources, in a package hierarchy (just like Java source files). Those files will be copied into the artifact in the same hierarchy.

提交回复
热议问题