java h2路径_java-H2数据库存储在哪里?

Where are the Database Files Stored?

When using database URLs like jdbc:h2:~/test, the database is stored

in the user directory. For Windows, this is usually C:\Documents and

Settings\ or C:\Users\. If the base directory is

not set (as in jdbc:h2:test), the database files are stored in the

directory where the application is started (the current working

directory). When using the H2 Console application from the start menu,

this is /bin. The base directory can be set in

the database URL. A fixed or relative path can be used. When using the

URL jdbc:h2:file:data/sample, the database is stored in the directory

data (relative to the current working directory). The directory is

created automatically if it does not yet exist. It is also possible to

use the fully qualified directory name (and for Windows, drive name).

Example: jdbc:h2:file:C:/data/test

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值