如何在hibernate.cfg.xml中将sqlite数据库的路径设置为相对路径
<property name="hibernate.connection.url">jdbc:sqlite:/relative path/socomer.db</property>
使用点设置相对路径:
<property name="hibernate.connection.url">jdbc:sqlite:./path/socomer.db</property>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.