问题
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