server: port: 30014 servlet: context-path: /dining spring: application: name: alien-dining # 数据源配置 datasource: type: com.alibaba.druid.pool.DruidDataSource druid: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://your-mysql-host:3306/alien_dining?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: your-username password: ENC(your-encrypted-password) initial-size: 5 min-idle: 5 max-active: 20 max-wait: 60000 time-between-eviction-runs-millis: 60000 min-evictable-idle-time-millis: 300000 validation-query: SELECT 1 test-while-idle: true test-on-borrow: false test-on-return: false pool-prepared-statements: true max-pool-prepared-statement-per-connection-size: 20 filters: stat,wall,slf4j connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 # Redis配置 redis: host: your-redis-host port: 6379 password: ENC(your-encrypted-redis-password) database: 0 timeout: 3000 lettuce: pool: max-active: 8 max-idle: 8 min-idle: 0 max-wait: -1 # MyBatis Plus配置 mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml type-aliases-package: shop.alien.entity configuration: map-underscore-to-camel-case: true log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl global-config: db-config: id-type: auto logic-delete-field: deleted logic-delete-value: 1 logic-not-delete-value: 0 # 日志配置 logging: level: root: info shop.alien.dining: debug shop.alien.mapper: debug path: C:/project/ext/log # 微信支付配置 wechat: pay: app-id: your-wechat-app-id mch-id: your-merchant-id api-key: ENC(your-encrypted-api-key) cert-path: your-cert-path notify-url: https://your-domain.com/dining/pay/notify # 点餐业务配置 dining: order-timeout: 30 auto-cancel-time: 15