application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # ============================================================
  2. # 浠艾福 — 本地外部配置(供 start.sh 使用)
  3. # 此文件覆盖 JAR 内置的 application.yml 默认值
  4. # ============================================================
  5. # 适用场景:
  6. # - 本地开发: MariaDB 127.0.0.1
  7. # - 生产部署: 远程 MySQL 192.168.16.251
  8. # 切换: 修改 spring.datasource.url / username / password 即可
  9. # ============================================================
  10. spring:
  11. datasource:
  12. driver-class-name: com.mysql.cj.jdbc.Driver
  13. url: jdbc:mysql://127.0.0.1:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
  14. username: root
  15. password: cfc123
  16. hikari:
  17. maximum-pool-size: 20
  18. minimum-idle: 5
  19. connection-timeout: 30000
  20. idle-timeout: 600000
  21. max-lifetime: 1800000
  22. pool-name: CfcHikariPool
  23. # SFMS 数据源(生产按需开启)
  24. sfms:
  25. datasource:
  26. enabled: false
  27. driver-class-name: com.mysql.cj.jdbc.Driver
  28. url: jdbc:mysql://192.168.16.251:3305/sfms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
  29. username: readonly
  30. password: readonly
  31. # JWT 配置
  32. jwt:
  33. secret: cfc-secret-key-2026-spring-boot-jwt-token
  34. expiration: 86400000
  35. # 微信配置(生产需填写真实密钥)
  36. wechat:
  37. appid: wx5ba8038ef16fb245
  38. secret: YOUR_APP_SECRET_HERE
  39. mch-id: YOUR_MCH_ID
  40. mch-key: YOUR_MCH_KEY
  41. api-v3-key: YOUR_API_V3_KEY
  42. mch-serial-no: YOUR_MCH_SERIAL_NO
  43. private-key-path: /path/to/apiclient_key.pem
  44. notify-url: http://111.228.6.214/api/payment/notify
  45. login-url: https://api.weixin.qq.com/sns/jscode2session
  46. phone-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber
  47. test-mode: true
  48. test-phone: "13800138000"
  49. alert-template-id: ${WECHAT_ALERT_TEMPLATE_ID:}
  50. # Dify AI 配置
  51. dify:
  52. base-url: http://dify.bianwoyou.cn/v1
  53. api-key: app-rtNSAHG2NFzRsXCGkeZlVNR9
  54. nutrition-api-key: app-OnHzTiI6EULUfLyceCDqJkQu
  55. tongue-api-key: ""
  56. # 运营配置
  57. admin:
  58. skip-captcha: true