spring: profiles: active: prod datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://127.0.0.1:3306/flower-prod?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8 username: root password: Hmy@2024!*@& druid: initial-size: 20 max-active: 100 min-idle: 20 max-wait: 60000 pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 validation-query: SELECT 1 FROM DUAL test-on-borrow: false test-on-return: false test-while-idle: true time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 filters: config,stat remove-abandoned: true web-stat-filter: enabled: true url-pattern: /api/* exclusions: session-stat-enable: true session-stat-max-count: 1000 profile-enable: true stat-view-servlet: enabled: true url-pattern: /druid/* reset-enable: true login-username: admin login-password: admin allow: deny: redis: database: 1 host: 127.0.0.1 password: Hmy@2024 port: 6379 jedis: pool: max-total: 200 #最大连接数据库连接数,设 0 为没有限制 max-active: 200 #最大等待连接中的数量,设 0 为没有限制 max-idle: 100 #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。 max-wait: 20000ms #最小等待连接中的数量,设 0 为没有限制 min-idle: 0 logging: level: ROOT: INFO com.mzl.flower: INFO upload: fileServerPath: https://www.hmyxianhua.com/files fileGroup: /group1 localServerPath: /data/files