This commit is contained in:
yxh 2023-02-27 21:56:55 +08:00
commit 3619056514

View File

@ -31,13 +31,13 @@ database:
Path: "resource/log/sql" Path: "resource/log/sql"
default: default:
link: "mysql:gfast3:gfast333@tcp(192.168.0.212:3306)/gfast-v32?charset=utf8mb4&parseTime=true&loc=Local" link: "mysql:gfast3:gfast333@tcp(localhost:3306)/gfast-v32?charset=utf8mb4&parseTime=true&loc=Local"
debug: true debug: true
charset: "utf8mb4" #数据库编码 charset: "utf8mb4" #数据库编码
dryRun: false #空跑 dryRun: false #空跑
maxIdle: 10 #连接池最大闲置的连接数 maxIdle: 10 #连接池最大闲置的连接数
maxOpen: 10 #连接池最大打开的连接数 maxOpen: 10 #连接池最大打开的连接数
maxLifetime: 30 #(单位秒)连接对象可重复使用的时间长度 maxLifetime: "30s" #(单位秒)连接对象可重复使用的时间长度
gfToken: gfToken:
cacheKey: "gfToken:" cacheKey: "gfToken:"
@ -49,13 +49,19 @@ gfToken:
excludePaths: excludePaths:
- "/api/v1/system/login" - "/api/v1/system/login"
# Redis 配置示例 # Redis 配置示例
redis: redis:
# 单实例配置 # 单实例配置
default: default:
address: 127.0.0.1:6379 address: 127.0.0.1:6379
db: 1 db: 1
idleTimeout: 600 idleTimeout: "60s" #连接最大空闲时间使用时间字符串例如30s/1m/1d
maxConnLifetime: "90s" #连接最长存活时间使用时间字符串例如30s/1m/1d
waitTimeout: "60s" #等待连接池连接的超时时间使用时间字符串例如30s/1m/1d
dialTimeout: "30s" #TCP连接的超时时间使用时间字符串例如30s/1m/1d
readTimeout: "30s" #TCP的Read操作超时时间使用时间字符串例如30s/1m/1d
writeTimeout: "30s" #TCP的Write操作超时时间使用时间字符串例如30s/1m/1d
maxActive: 100 maxActive: 100
system: system:
@ -75,7 +81,7 @@ casbin:
gfcli: gfcli:
gen: gen:
dao: dao:
- link: "mysql:gfast3:gfast333@tcp(192.168.0.212:3306)/gfast-v32" - link: "mysql:gfast3:gfast333@tcp(localhost:3306)/gfast-v32"
tables: "tools_gen_table,tools_gen_table_column" tables: "tools_gen_table,tools_gen_table_column"
removePrefix: "gf_" removePrefix: "gf_"
descriptionTag: true descriptionTag: true