server:
  port: 8082
  
spring:
  application:
    name: user-service
  main:
    allow-bean-definition-overriding: true
  autoconfigure:
    exclude:
      - com.alibaba.cloud.spring.boot.autoconfigure.AlibabaCloudAutoConfiguration
      - com.alibaba.cloud.spring.boot.autoconfigure.nacos.NacosAutoConfiguration
      - com.alibaba.cloud.spring.boot.autoconfigure.nacos.discovery.NacosDiscoveryAutoConfiguration
      - com.alibaba.cloud.spring.boot.autoconfigure.nacos.config.NacosConfigAutoConfiguration
      - com.alibaba.cloud.spring.cloud.loadbalancer.LoadBalancerClientConfiguration
      - org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://111.229.80.149:3306/erp_java?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
    username: root
    password: nihao588+
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 5
      min-idle: 5
      max-active: 20
      max-wait: 60000
  data:
    redis:
      host: localhost
      port: 6379
      password: 
      database: 0
      timeout: 3000ms

mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
  global-config:
    db-config:
      logic-delete-field: deletedAt
      logic-delete-value: NOW()
      logic-not-delete-value: null

logging:
  level:
    com.erp.user: DEBUG
    org.springframework: INFO
  pattern:
    console: '%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n'
