nacos-config-ready.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. server:
  2. port: 30014
  3. servlet:
  4. context-path: /dining
  5. spring:
  6. application:
  7. name: alien-dining
  8. # 数据源配置
  9. datasource:
  10. type: com.alibaba.druid.pool.DruidDataSource
  11. druid:
  12. driver-class-name: com.mysql.cj.jdbc.Driver
  13. url: jdbc:mysql://your-mysql-host:3306/alien_dining?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  14. username: your-username
  15. password: ENC(your-encrypted-password)
  16. initial-size: 5
  17. min-idle: 5
  18. max-active: 20
  19. max-wait: 60000
  20. time-between-eviction-runs-millis: 60000
  21. min-evictable-idle-time-millis: 300000
  22. validation-query: SELECT 1
  23. test-while-idle: true
  24. test-on-borrow: false
  25. test-on-return: false
  26. pool-prepared-statements: true
  27. max-pool-prepared-statement-per-connection-size: 20
  28. filters: stat,wall,slf4j
  29. connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  30. # Redis配置
  31. redis:
  32. host: your-redis-host
  33. port: 6379
  34. password: ENC(your-encrypted-redis-password)
  35. database: 0
  36. timeout: 3000
  37. lettuce:
  38. pool:
  39. max-active: 8
  40. max-idle: 8
  41. min-idle: 0
  42. max-wait: -1
  43. # MyBatis Plus配置
  44. mybatis-plus:
  45. mapper-locations: classpath*:mapper/**/*.xml
  46. type-aliases-package: shop.alien.entity
  47. configuration:
  48. map-underscore-to-camel-case: true
  49. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  50. global-config:
  51. db-config:
  52. id-type: auto
  53. logic-delete-field: deleted
  54. logic-delete-value: 1
  55. logic-not-delete-value: 0
  56. # 日志配置
  57. logging:
  58. level:
  59. root: info
  60. shop.alien.dining: debug
  61. shop.alien.mapper: debug
  62. path: C:/project/ext/log
  63. # 微信支付配置
  64. wechat:
  65. pay:
  66. app-id: your-wechat-app-id
  67. mch-id: your-merchant-id
  68. api-key: ENC(your-encrypted-api-key)
  69. cert-path: your-cert-path
  70. notify-url: https://your-domain.com/dining/pay/notify
  71. # 点餐业务配置
  72. dining:
  73. order-timeout: 30
  74. auto-cancel-time: 15