开发者

tomcat sqlite jdbc on server connection problem

开发者 https://www.devze.com 2023-01-31 15:03 出处:网络
Hii want to upload my wicket project into the tomcat server. But in project i \'ve connected to db file like this :

Hi i want to upload my wicket project into the tomcat server.

But in project i 've connected to db file like this :

connection=DriverManager.getConnection("jdbc:sqlite:C:\Users\myPC\gr27hbs.db");

I'll make war file but server doesn't have db file.So i must put my db file into projects folder.But this t开发者_JS百科ime there is a problem in connection string there is a parameter which is illustrated with my pc user name.

Where should i put the db file , and how will tomcat knows where the database file is?

0

精彩评论

暂无评论...
验证码 换一张
取 消