# 接入 MySQL / Redis 时启用：spring.profiles.active=dev
#
# 密码为 Druid ConfigTools RSA 加密密文，公钥见下方 spring.datasource.druid.public-key
# 生成新密文：fe-dao 模块运行 com.huimv.employment.dao.tools.DruidConfigToolsMain

spring:
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://122.112.224.199:3306/fe_employment_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
    username: root
    password: "XyoGR4b1ODP+h3hjFieKZrO1VoHhpryX+rRbM4qbQChDnn7whnEJdAPjfBPqKBgsbbhfZR136+nG7y89I+H+UQ=="
    druid:
      public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKgmFmD8ZgMVkIxg+HXZltYOdLjvD4QQn/hynbVXQjw/t7ayzALjIKpFWt8JsvZIMHBPOsgvp6b9MjVg9PHpnmECAwEAAQ==
      filter:
        config:
          enabled: true
      connection-properties: config.decrypt=true;config.decrypt.key=${spring.datasource.druid.public-key}
  redis:
    host: 122.112.224.199
    port: 6379
    database: 0
    password: "XyoGR4b1ODP+h3hjFieKZrO1VoHhpryX+rRbM4qbQChDnn7whnEJdAPjfBPqKBgsbbhfZR136+nG7y89I+H+UQ=="
    timeout: 3000ms
    lettuce:
      pool:
        max-active: 8
        max-idle: 8
        min-idle: 0
        max-wait: -1ms

mybatis-plus:
  mapper-locations: classpath*:mapper/**/*.xml
  type-aliases-package: com.huimv.employment.dao.entity
  global-config:
    db-config:
      id-type: auto
      logic-delete-field: delFlag
      logic-delete-value: 1
      logic-not-delete-value: 0
