Persistence.xml where to put in eclipse project

前端 未结 3 541
独厮守ぢ
独厮守ぢ 2020-12-31 11:13

Simple question...
I have a few projects in Eclipse enviroment
MainApp(Enterprise Application Project) which \"includes\"

  1. WebController (EJB Projec
3条回答
  •  别那么骄傲
    2020-12-31 11:51

    For JPA project or even for normal Java project, you just need to create META-INF folder under the src and add the persistence.xml there. That's all. now at the time of application loading in the jvm it will automatically be fetched.

    project structure

提交回复
热议问题