spring:
  profiles:
    include: [center]
  ####### database Config #######
  datasource:
    druid:
      connection-init-sqls: set names utf8mb4
      driver-class-name: com.mysql.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://${ONEBLOG_DATASOURCE_HOST:127.0.0.1}:${ONEBLOG_DATASOURCE_PORT:3306}/${ONEBLOG_DATASOURCE_DATABASE_NAME:dblog}?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
    username: ${ONEBLOG_DATASOURCE_USERNAME:root}
    password: ${ONEBLOG_DATASOURCE_PASSWORD:root}

  ####### Redis Config #######
  redis:
    database: ${ONEBLOG_REDIS_DATABASE_INDEX:1}
    # Redis服务器地址
    host: ${ONEBLOG_REDIS_HOST:127.0.0.1}
    # Redis服务器连接端口
    port: ${ONEBLOG_REDIS_PORT:6379}
    # Redis服务器连接密码（默认为空）
    password: ${ONEBLOG_REDIS_PASSWORD:123456ZHYD}

  ####### redis缓存服务配置 #######
  session:
    store-type: redis
