application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. server:
  11. port: 9082
  12. spring:
  13. datasource:
  14. driver-class-name: com.mysql.cj.jdbc.Driver
  15. url: jdbc:mysql://127.0.0.1:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
  16. username: zxyj
  17. password: zxyj@123
  18. hikari:
  19. maximum-pool-size: 20
  20. minimum-idle: 5
  21. connection-timeout: 30000
  22. idle-timeout: 600000
  23. max-lifetime: 1800000
  24. pool-name: CfcHikariPool
  25. # SFMS 数据源(生产按需开启)
  26. sfms:
  27. datasource:
  28. enabled: false
  29. driver-class-name: com.mysql.cj.jdbc.Driver
  30. url: jdbc:mysql://192.168.16.251:3305/sfms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
  31. username: readonly
  32. password: readonly
  33. # JWT 配置
  34. jwt:
  35. secret: cfc-secret-key-2026-spring-boot-jwt-token
  36. expiration: 86400000
  37. # 微信配置(生产需填写真实密钥)
  38. wechat:
  39. appid: wx5ba8038ef16fb245
  40. secret: YOUR_APP_SECRET_HERE
  41. mch-id: YOUR_MCH_ID
  42. mch-key: YOUR_MCH_KEY
  43. api-v3-key: YOUR_API_V3_KEY
  44. mch-serial-no: YOUR_MCH_SERIAL_NO
  45. private-key-path: /path/to/apiclient_key.pem
  46. notify-url: http://111.228.6.214/api/payment/notify
  47. login-url: https://api.weixin.qq.com/sns/jscode2session
  48. phone-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber
  49. test-mode: true
  50. test-phone: "13800138000"
  51. alert-template-id: ${WECHAT_ALERT_TEMPLATE_ID:}
  52. # Dify AI 配置
  53. dify:
  54. base-url: http://dify.bianwoyou.cn/v1
  55. api-key: app-rtNSAHG2NFzRsXCGkeZlVNR9
  56. nutrition-api-key: app-OnHzTiI6EULUfLyceCDqJkQu
  57. tongue-api-key: ""
  58. # 运营配置
  59. admin:
  60. skip-captcha: true