Hibernate H2 database relative path
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an H2 database file calls "test.db". The file is located in my application directory: "myApp/resources/test.db". I'm not able to get this works for me.So, what's the correct way to refere to a relative path. Here is the configuration of my hibernate.cfg.xml. <property name="connection.driver_class">org.h2.Driver</property> <property name="connection.url">jdbc:h2:file:/test</property> <property name="connection.username">test</property> <property name="connection.password">1234</property> <!-- SQL dialect --> <property name="dialect"