Apache Derby Embedded Mode Deployment

我只是一个虾纸丫 提交于 2019-12-06 13:35:35

You can locate the database data files inside your web-app. For example in "WEB-INF/data/" (and the Derby driver file in "WEB-INF/lib/" of course).

So, you can embbed the database pre-configured (with a "relative-path" JDBC url) in the WAR file you give to your client. He won't have to install manually a Derby DB.

Note : you'll have to be careful when you'll provide an update of the application (to not erase the DB).

The debt database will be on documens netbeans of you haven't changed it to make it work just take the derby database fille and paste it in the dist file now move the the dist file to a new location like your desktop for example hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!