Where do gradle unit tests for Google app engine expect persistence.xml?

后端 未结 1 954
梦谈多话
梦谈多话 2021-01-07 15:49

I have created a Google app engine project using an maven archetype project with the Datanucleus JPA provider, essentially following the Google app engine documentation.

1条回答
  •  抹茶落季
    2021-01-07 16:39

    Just because the file is placed in a directory doesn't automatically mean it's in the CLASSPATH.

    Place the META-INF folder containing persistence.xml in /src/main/resources.

    0 讨论(0)
提交回复
热议问题