# Message模块配置文件
# 此配置文件定义message模块独立运行时的配置
# 如需作为微服务集成，请参考admin模块的bootstrap.yml配置

# 消息模块配置
message:
  # 定时任务扫描配置
  scheduler:
    # 扫描频率（cron表达式），默认每分钟扫描一次
    cron: "0 * * * * ?"
    # 是否启用定时任务扫描
    enabled: true

  # 消息发送配置
  send:
    # 异步发送线程池大小
    thread-pool-size: 10
    # 批量发送每批次大小
    batch-size: 100

# Spring Boot配置（如果需要独立运行）
# server:
#   port: 8087
#
# spring:
#   application:
#     name: message-service
#
#   datasource:
#     url: jdbc:mysql://localhost:3306/school_news?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
#     username: root
#     password: your_password
#     driver-class-name: com.mysql.cj.jdbc.Driver
#     hikari:
#       maximum-pool-size: 20
#       minimum-idle: 5
#       connection-timeout: 30000
#
# mybatis-plus:
#   mapper-locations: classpath:mapper/*.xml
#   type-aliases-package: org.xyzh.common.dto.message
#   configuration:
#     map-underscore-to-camel-case: true
#     log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
