zxl
2025-12-02 4f2c9b54c8d0f358f3b7c6821f091a493b24e006
ycl-server/src/main/resources/application-dev.yml
@@ -37,15 +37,26 @@
spring:
  # 数据源配置
  datasource:
#    url: jdbc:mysql://101.35.247.188:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true
    #    url: jdbc:mysql://101.35.247.188:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true
#    username: root
#    password: ycl@202466
    url: jdbc:mysql://localhost:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true
    url: jdbc:mysql://localhost:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true&connectTimeout=60000&socketTimeout=120000&keepAlive=true&keepAliveInterval=60000
    username: root
    password: 123456
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    druid:
      initial-size: 5             # 初始化连接数
      min-idle: 5                 # 最小空闲连接数
      max-active: 20              # 最大活跃连接数
      max-wait: 60000             # 获取连接的最大等待时间(ms)
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 300000
      validation-query: SELECT 1
      test-while-idle: true
      test-on-borrow: true
      test-on-return: false
  jpa:
    show-sql: true
    generate-ddl: true
@@ -85,7 +96,8 @@
    # 端口,默认为6379
    port: 6379
#    password: ycl2018
    password: 123456
#    password: 123456
    password:
    # 数据库索引
    database: 0
    # 密码(如没有密码请注释掉)