connect embedded derby database with struts application

自闭症网瘾萝莉.ら 提交于 2020-01-25 02:21:14

问题


i have an embedded derby database "end_user" and i want to pre-populate the table "user" with a few records before accessing it via a struts2 application. For this, i need to set the url of the database, but i don't know what url to set. the struts application is deployed as a war in apache-tomcat/webapps.

I have currently tried this:

jdbc:derby:1527/

But this does not seem to help in any way. I even tried hardcoding the path of the db i created (ie. C:\apache-tomcat\end_user) and even that did not help

what to do?

来源:https://stackoverflow.com/questions/18613866/connect-embedded-derby-database-with-struts-application

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