2023-09-21 18:08:54 +08:00
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2023 looly(loolly@aliyun.com)
|
|
|
|
|
# Hutool is licensed under Mulan PSL v2.
|
|
|
|
|
# You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
|
|
|
# You may obtain a copy of Mulan PSL v2 at:
|
|
|
|
|
# https://license.coscl.org.cn/MulanPSL2
|
|
|
|
|
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
|
|
|
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
|
|
|
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
|
|
|
# See the Mulan PSL v2 for more details.
|
|
|
|
|
#
|
|
|
|
|
|
2021-01-20 17:10:45 +08:00
|
|
|
|
# suppress inspection "Annotator" for whole file
|
|
|
|
|
#===================================================================
|
|
|
|
|
# 数据库配置文件样例
|
|
|
|
|
# DsFactory默认读取的配置文件是config/db.setting
|
|
|
|
|
# db.setting的配置包括两部分:基本连接信息和连接池配置信息。
|
|
|
|
|
# 基本连接信息所有连接池都支持,连接池配置信息根据不同的连接池,连接池配置是根据连接池相应的配置项移植而来
|
|
|
|
|
#===================================================================
|
|
|
|
|
|
|
|
|
|
## 打印SQL的配置
|
|
|
|
|
# 是否在日志中显示执行的SQL,默认false
|
|
|
|
|
showSql = true
|
|
|
|
|
# 是否格式化显示的SQL,默认false
|
|
|
|
|
formatSql = true
|
|
|
|
|
# 是否显示SQL参数,默认false
|
|
|
|
|
showParams = true
|
|
|
|
|
# 打印SQL的日志等级,默认debug
|
|
|
|
|
sqlLevel = debug
|
|
|
|
|
|
|
|
|
|
# 默认数据源
|
|
|
|
|
url = jdbc:sqlite:test.db
|
|
|
|
|
remarks = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 测试数据源
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[test]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:sqlite:test.db
|
|
|
|
|
remarks = true
|
2024-06-18 20:22:11 +08:00
|
|
|
|
driver = org.sqlite.JDBC
|
2021-01-20 17:10:45 +08:00
|
|
|
|
|
|
|
|
|
# 测试用HSQLDB数据库
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[hsqldb]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:hsqldb:mem:mem_hutool
|
|
|
|
|
user = SA
|
|
|
|
|
pass =
|
|
|
|
|
remarks = true
|
|
|
|
|
|
|
|
|
|
# 测试用HSQLDB数据库
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[h2]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:h2:mem:h2_hutool
|
|
|
|
|
user = sa
|
|
|
|
|
pass =
|
|
|
|
|
remarks = true
|
|
|
|
|
|
|
|
|
|
# 测试用HSQLDB数据库
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[derby]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:derby:.derby/test_db;create=true
|
|
|
|
|
remarks = true
|
|
|
|
|
|
|
|
|
|
# 测试用Oracle数据库
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[orcl]
|
2024-03-28 16:08:17 +08:00
|
|
|
|
url = jdbc:oracle:thin:@//localhost:1521/XEPDB1
|
|
|
|
|
user = system
|
2021-01-20 17:10:45 +08:00
|
|
|
|
pass = 123456
|
|
|
|
|
remarks = true
|
|
|
|
|
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[mysql]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:mysql://looly.centos8:3306/hutool_test?useSSL=false
|
|
|
|
|
user = root
|
|
|
|
|
pass = 123456
|
|
|
|
|
remarks = true
|
|
|
|
|
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[postgre]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:postgresql://looly.centos:5432/test_hutool
|
|
|
|
|
user = postgres
|
|
|
|
|
pass = 123456
|
|
|
|
|
remarks = true
|
|
|
|
|
|
2022-04-30 21:08:28 +08:00
|
|
|
|
[sqlserver]
|
2021-01-20 17:10:45 +08:00
|
|
|
|
url = jdbc:sqlserver://looly.database.chinacloudapi.cn:1433;database=test;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.chinacloudapi.cn;loginTimeout=30;
|
|
|
|
|
user = looly@looly
|
|
|
|
|
pass = 123
|
2021-07-19 17:21:02 +08:00
|
|
|
|
remarks = true
|
2024-02-26 15:34:36 +08:00
|
|
|
|
|
2024-05-06 15:52:18 +08:00
|
|
|
|
# 测试用达梦8数据库
|
2024-04-29 14:32:30 +08:00
|
|
|
|
# 测试环境使用docker启动,见:https://eco.dameng.com/document/dm/zh-cn/start/dm-install-docker.html
|
2024-02-26 15:34:36 +08:00
|
|
|
|
[dm]
|
2024-04-29 14:32:30 +08:00
|
|
|
|
url = jdbc:dm://localhost:5236
|
2024-02-26 15:34:36 +08:00
|
|
|
|
user = SYSDBA
|
2024-04-29 14:32:30 +08:00
|
|
|
|
pass = SYSDBA001
|
2024-02-26 15:34:36 +08:00
|
|
|
|
remarks = true
|
2024-05-06 15:52:18 +08:00
|
|
|
|
|
|
|
|
|
# OceanBase
|
|
|
|
|
# 测试环境使用docker启动,见:https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000217958
|
|
|
|
|
[ob]
|
|
|
|
|
url = jdbc:oceanbase://localhost:2881/test
|
|
|
|
|
user = root
|
|
|
|
|
pass = 123456
|
|
|
|
|
remarks = true
|