# 生产环境配置
server:
  port: 8086
  tomcat:
    threads:
      max: 200
      min-spare: 10
    max-connections: 10000
    accept-count: 100

spring:
  datasource:
    druid:
      initial-size: 10
      min-idle: 10
      max-active: 50
      validation-query: SELECT 1
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
  
  redis:
    lettuce:
      pool:
        max-active: 20
        max-idle: 10
        min-idle: 5

logging:
  level:
    root: INFO
    com.erp.approval: INFO
  file:
    name: /var/log/approval-flow-service/app.log
    max-size: 100MB
    max-history: 30

management:
  metrics:
    export:
      prometheus:
        enabled: true
