# Production Environment Configuration
server:
  port: 8086
  servlet:
    context-path: /report
  compression:
    enabled: true
    mime-types: application/json,application/xml,text/html,text/xml,text/plain
    min-response-size: 1024

spring:
  mybatis-plus:
    configuration:
      map-underscore-to-camel-case: true
      log-impl: org.apache.ibatis.logging.nolog.NoLoggingImpl
    global-config:
      db-config:
        logic-delete-field: deletedAt
        logic-delete-value: NOW()
        logic-not-delete-value: NULL

  # Redis缓存配置
  cache:
    type: redis
    redis:
      time-to-live: 300000

# 日志配置 - 生产环境
logging:
  level:
    com.erp.report: INFO
    org.springframework.web: WARN
  pattern:
    console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
    file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
  file:
    name: /var/log/erp/report-service.log

# 服务配置
service:
  report:
    cache:
      enabled: true
      ttl-minutes: 5
    page-size:
      default: 20
      max: 100

# Actuator端点 - 生产环境
management:
  endpoints:
    web:
      exposure:
        include: health,info,metrics,prometheus
  endpoint:
    health:
      show-details: when_authorized
  metrics:
    tags:
      application: report-service
