| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- server:
- port: 8080
- 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: your-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: your-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: your-api-key
- cert-path: your-cert-path
- notify-url: https://your-domain.com/dining/pay/notify
- # 点餐业务配置
- dining:
- # 订单超时时间(分钟)
- order-timeout: 30
- # 自动取消未支付订单时间(分钟)
- auto-cancel-time: 15
|