标签: java hibernate swing sqlite
如何在hibernate.cfg.xml中将sqlite数据库的路径设置为相对路径
<property name="hibernate.connection.url">jdbc:sqlite:/relative path/socomer.db</property>
答案 0 :(得分:0)
使用点设置相对路径:
<property name="hibernate.connection.url">jdbc:sqlite:./path/socomer.db</property>