server:
  port: 8088

spring:
  application:
    name: admin
  # 禁用Nacos配置检查和服务发现1·
  cloud:
    nacos:
      config:
        import-check:
          enabled: false
      discovery:
        enabled: false  # 禁用服务注册发现
    service-registry:
      auto-registration:
        enabled: false  # 禁用自动注册
  # 文件上传配置
  servlet:
    multipart:
      max-file-size: 10MB      # 单个文件最大10MB
      max-request-size: 100MB  # 单次请求最大100MB（支持多文件上传）
      enabled: true
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://115.190.125.125:3306/hunlian?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
    username: root
    password: lsx@hfs?gln.lsc
    hikari:
      minimum-idle: 5                      # 最小空闲连接数
      maximum-pool-size: 20                # 最大连接池大小
      connection-timeout: 30000            # 连接超时时间（毫秒）30秒
      idle-timeout: 600000                 # 空闲连接超时时间（毫秒）10分钟
      max-lifetime: 1800000                # 连接最大存活时间（毫秒）30分钟
      connection-test-query: SELECT 1      # 连接测试查询
      pool-name: DynamicHikariPool         # 连接池名称
  redis:
    host: 115.190.125.125
    port: 6377
    password: lsx@hfs?gln.lsc
    database: 0
    timeout: 3000ms
    lettuce:
      pool:
        max-active: 8
        max-wait: -1ms
        max-idle: 8
        min-idle: 0



# MyBatis-Plus 配置
mybatis-plus:
  mapper-locations: classpath*:/mapper/**/*.xml
  type-aliases-package: com.zhentao.entity
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  global-config:
    db-config:
      id-type: auto
      logic-delete-field: isDeleted
      logic-delete-value: 1
      logic-not-delete-value: 0

# 日志配置
logging:
  level:
    com.zhentao: debug
    com.zhentao.mapper: debug

# MinIO配置（管理端图片存储）
minio:
  endpoint: http://115.190.125.125:9000
  accessKey: minioadmin
  secretKey: minioadmin
  bucketName: admin-images

