1
zyy
2026-05-18 b1e5d9e660bf0e7669d890d82853854c3b588bd8
src/main/resources/application.yml
@@ -107,7 +107,7 @@
    # 端口,默认为6379
    port: 6379
    # 数据库索引
    database: 0
    database: 6
    # 密码
    password:
    # 连接超时时间
@@ -126,16 +126,16 @@
    type: com.alibaba.druid.pool.DruidDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    #url: jdbc:mysql://127.0.0.1:6306/stock_ci?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
    url: jdbc:mysql://127.0.0.1:3306/stock?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
    username: stock
    password: aGZyCy3YrBXwAxJs
    url: jdbc:mysql://127.0.0.1:3306/stock-dg?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
    username: stock-dg
    password: MzrpGcasJDd5Bfsa
    druid:
      # 初始连接数
      initialSize: 5
      # 最小连接池数量
      minIdle: 10
      minIdle: 20
      # 最大连接池数量
      maxActive: 20
      maxActive: 50
      # 配置获取连接等待超时的时间
      maxWait: 60000
      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒