数据库连接

This commit is contained in:
liuyang
2025-11-12 16:48:19 +08:00
parent 1940d893c8
commit f494a91aec
11 changed files with 178 additions and 13 deletions

View File

@@ -6,10 +6,10 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:highgo://127.0.0.1:5866/highgo?useUnicode=true&characterEncoding=utf8&currentSchema=ks_db4&stringtype=unspecified
url: jdbc:highgo://192.168.0.13:5866/highgo?useUnicode=true&characterEncoding=utf8&currentSchema=shz&stringtype=unspecified
#username: syssso
username: sysdba
password: ZKR2024@comzkr
password: SHZ2025@comzkr
# 从库数据源
slave:
@@ -65,11 +65,11 @@ spring:
# 地址
host: 127.0.0.1
# 端口默认为6379
port: 5379
port: 6379
# 数据库索引
database: 5
database: 0
# 密码
password: ZKR2024@@.com
password: SHZ2025@@.com
# 连接超时时间
timeout: 10s
lettuce:
@@ -93,4 +93,4 @@ easy-es:
db-config:
refresh-policy: immediate
username: elastic
password: zkr2024@@.com
password: shz2025@@.com

View File

@@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:highgo://124.243.245.42:5866/highgo?useUnicode=true&characterEncoding=utf8&currentSchema=ks_db4&stringtype=unspecified
url: jdbc:highgo://124.243.245.42:5866/highgo?useUnicode=true&characterEncoding=utf8&currentSchema=shz&stringtype=unspecified
username: sysdba
password: ZKR2024@comzkr
# 从库数据源

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<!-- 日志存放路径 -->
<property name="log.path" value="/home/lapuda/logs" />
<property name="log.path" value="./logs" />
<!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />