# =================== 主配置文件 ===================
# 所有环境共用的配置，环境特定配置在各环境文件中覆盖

spring:
  application:
    name: ${APP_NAME:lesingle-edu-reading-platform-backend}

  # 激活的环境配置（通过命令行参数或环境变量切换）
  profiles:
    active: ${SPRING_PROFILES_ACTIVE:dev}

server:
  port: ${SERVER_PORT:8480}

# MyBatis-Plus 配置（共用）
mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
  global-config:
    db-config:
      logic-delete-field: deletedAt
      logic-delete-value: 1
      logic-not-delete-value: 0

# SpringDoc/Knife4j 配置（共用）
springdoc:
  api-docs:
    enabled: true
  swagger-ui:
    enabled: true
    path: /swagger-ui.html

# Knife4j 配置
knife4j:
  enable: true
  setting:
    language: zh_cn
