Can we include persistence.xml file in our own user define .jar file in jpa. If yes, then please guide me how can we add the persistence.xml file in folder structure?
Yes you can, persistence.xml goes in
META-INF/persistence.xml
if you are packaging it inside a *.jar, or
WEB-INF/classes/META-INF/persistence.xml
if you are packaging it inside a *.war
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.