application.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. server:
  2. port: 9082
  3. tomcat:
  4. headers:
  5. X-Content-Type-Options: nosniff
  6. X-Frame-Options: DENY
  7. X-XSS-Protection: 1; mode=block
  8. Strict-Transport-Security: max-age=31536000; includeSubDomains
  9. spring:
  10. servlet:
  11. multipart:
  12. max-file-size: 50MB
  13. max-request-size: 50MB
  14. application:
  15. name: cfc-backend
  16. datasource:
  17. driver-class-name: com.mysql.cj.jdbc.Driver
  18. url: jdbc:mysql://192.168.16.251:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
  19. username: zxyj
  20. password: zxyj@123
  21. hikari:
  22. maximum-pool-size: 50
  23. minimum-idle: 10
  24. connection-timeout: 30000
  25. idle-timeout: 600000
  26. max-lifetime: 1800000
  27. pool-name: CfcHikariPool
  28. sfms:
  29. datasource:
  30. enabled: false # 本地开发禁用 SFMS 数据源,需要迁移时改为 true
  31. driver-class-name: com.mysql.cj.jdbc.Driver
  32. url: jdbc:mysql://192.168.16.251:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
  33. username: zxyj
  34. password: zxyj@123
  35. mybatis-plus:
  36. mapper-locations: classpath*:/mapper/**/*.xml
  37. type-aliases-package: com.etotem.cfc.entity
  38. configuration:
  39. map-underscore-to-camel-case: true
  40. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  41. global-config:
  42. db-config:
  43. id-type: auto
  44. logic-delete-field: deleted
  45. logic-delete-value: 1
  46. logic-not-delete-value: 0
  47. jwt:
  48. secret: cfc-secret-key-2026-spring-boot-jwt-token
  49. expiration: 86400000
  50. zkxz:
  51. enabled: false
  52. sync-api-url: https://api.zkxz.org.cn/api/
  53. login-url: member/login
  54. sync-client-url: user/create
  55. list-client-url: user/list
  56. sync-teacher-url: teacher/create
  57. user-report: user/report
  58. report-info: report/info
  59. zx-user: ""
  60. zx-pass: ""
  61. wechat:
  62. appid: wx5ba8038ef16fb245
  63. secret: 3dae525c6f5e010cc034f59abbd1b1cc
  64. mch-id: 1703255039
  65. mch-key: wx5ba8038ef16fb245wx5ba8038ef16f
  66. api-v3-key: wx5ba8038ef16fb245wx5ba8038ef16f
  67. mch-serial-no: 53C2A906094D725BC350A3414AADCA6D79882AAF
  68. private-key-path: cert/apiclient_key.pem
  69. notify-url: http://cfc.bianwoyou.com.cn/api/payment/notify
  70. login-url: https://api.weixin.qq.com/sns/jscode2session
  71. phone-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber
  72. test-mode: false # 测试模式:跳过微信API调用,使用模拟数据
  73. test-phone: "13800138000" # 测试模式使用的手机号
  74. alert-template-id: ${WECHAT_ALERT_TEMPLATE_ID:}
  75. promotion-tier-template-id: ${WECHAT_PROMOTION_TIER_TEMPLATE_ID:}
  76. # 小程序码环境:dev=development / test=trial / prod=release
  77. env-version: ${WECHAT_ENV_VERSION:release}
  78. dify:
  79. base-url: http://dify.bianwoyou.cn/v1
  80. api-key: app-rtNSAHG2NFzRsXCGkeZlVNR9
  81. nutrition-api-key: app-OnHzTiI6EULUfLyceCDqJkQu # 精准营养助手
  82. tongue-api-key: "" # 舌诊分析,空字符串=mock模式
  83. callback-secret: dify-callback-secret # Dify Workflow HTTP回调认证密钥
  84. math:
  85. verify-mode: dify # dify | eval; dify=走Dify工作流, eval=服务端计算(兜底)
  86. workflow-id: "" # Dify 数学判题工作流 ID(留空则使用 eval 兜底)
  87. upload:
  88. base-dir: /data/cfc-uploads
  89. allowed-types: image/jpeg,image/png,image/gif,image/webp
  90. shop:
  91. order:
  92. payment-timeout-minutes: 30 # 订单超时时间(分钟)
  93. logging:
  94. level:
  95. com.etotem.cfc: debug
  96. # Admin 登录配置
  97. admin:
  98. skip-captcha: true # 测试环境跳过验证码,方便自动化测试