简体   繁体   中英

Can I have a JPA Project Jar inside a WebAPP lib directory?

I want to create a JPA project common for two websites projects that I will create. If I use the jar exported from the jpa project as a library in the web1 and web2. Can I still have the JPA functionality?

Eclipse Workspace
|_JPA Project
|_Web1 Project
|__WEB-INF
|___lib
|____JPA.jar
|_Web2 Project
|__WEB-INF
|___lib
|____JPA.jar

只要您在JPA项目的META-INF文件夹中有persistence.xml文件,它就可以正常运行

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM