# Nacos 配置中心的配置
# 需要在 Nacos 中创建对应的配置文件
# 配置文件名: approval-flow-service.yaml

spring:
  datasource:
    url: jdbc:mysql://mysql-master:3306/erp_db?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
    username: root
    password: ${DB_PASSWORD}
    druid:
      initial-size: 10
      min-idle: 10
      max-active: 50
  
  redis:
    host: redis-master
    port: 6379
    password: ${REDIS_PASSWORD}
    database: 0

  cloud:
    nacos:
      discovery:
        server-addr: nacos:8848
        namespace: ${NACOS_NAMESPACE:public}
        group: ERP_GROUP
      config:
        server-addr: nacos:8848
        namespace: ${NACOS_NAMESPACE:public}
        group: ERP_GROUP

mybatis-plus:
  configuration:
    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl

logging:
  level:
    root: INFO
    com.erp.approval: INFO
