guoyujie
2025-11-17 7fdc12195ab810476f01f6d332cbcd0a271effdb
north-glass-erp/src/main/resources/application.yml
@@ -1,38 +1,61 @@
server:
  port: 8086
ip: localhost
port: 3306
#sa-token:
#  timeout: 86400
spring:
#  profiles:
#    active: prod
  servlet:
    multipart:
      max-file-size: 50MB
      max-request-size: 50MB
  redis:
    host: ${ip}
    database: 15
    port: 6379
    password: 123456
    lettuce:
      pool:
         max-active: 8 #最大连接
         max-idle: 8  #最大空闲连接
         min-idle: 0 #最小空闲连接
         max-wait: 1000ms   #获取连接的最大等待时间
  datasource:
    dynamic:
      primary: user_info #设置默认的数据源或者数据源组,默认值即为master
      strict: false #设置严格模式,默认false不启动. 启动后在未匹配到指定数据源时候回抛出异常,不启动会使用默认数据源.
      datasource:
        user_info:
          url: jdbc:mysql://${ip}:3306/erp_user_info?serverTimezone=GMT%2b8
          url: jdbc:mysql://${ip}:${port}/erp_user_info?serverTimezone=GMT%2b8
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver
        sd:
          url: jdbc:mysql://${ip}:3306/sd?serverTimezone=GMT%2b8&allowMultiQueries=true
          url: jdbc:mysql://${ip}:${port}/sd?serverTimezone=GMT%2b8&allowMultiQueries=true
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver
        mm:
          url: jdbc:mysql://${ip}:3306/mm?serverTimezone=GMT%2b8
          url: jdbc:mysql://${ip}:${port}/mm?serverTimezone=GMT%2b8
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver
        pp:
          url: jdbc:mysql://${ip}:3306/pp?serverTimezone=GMT%2b8
          url: jdbc:mysql://${ip}:${port}/pp?serverTimezone=GMT%2b8
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver
        log:
          url: jdbc:mysql://${ip}:3306/erp_log?serverTimezone=GMT%2b8
          url: jdbc:mysql://${ip}:${port}/erp_log?serverTimezone=GMT%2b8
          username: root
          password: beibo.123/
          driver-class-name: com.mysql.cj.jdbc.Driver