server: port: 8150 spring: application: name: fund-receipt cloud: nacos: discovery: server-addr: localhost:8848 namespace: fund-platform group: DEFAULT_GROUP username: nacos password: nacos # 租户路由元数据 metadata: tenant-id: ${TENANT_ID:} datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://localhost:3306/fund_receipt?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai username: root password: ${DB_PASSWORD:zjf@123456} hikari: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 mybatis-plus: mapper-locations: classpath*:/mapper/**/*.xml type-aliases-package: com.fundplatform.receipt.data.entity configuration: map-underscore-to-camel-case: true cache-enabled: false log-impl: org.apache.ibatis.logging.stdout.StdOutImpl global-config: db-config: logic-delete-field: deleted logic-delete-value: 1 logic-not-delete-value: 0 logging: level: com.fundplatform.receipt: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n" # 多租户路由配置 tenant: routing: enabled: true tenant-header: X-Tenant-Id default-tenant-id: "1" fallback-to-shared: true # 定时任务配置 fund: schedule: enabled: true # 逾期状态更新:每天凌晨1点 overdue-update-cron: "0 0 1 * * ?" # 逾期提醒:每天上午9点 overdue-reminder-cron: "0 0 9 * * ?" # 账期预警:每周一上午10点 due-date-warning-cron: "0 0 10 ? * MON"