application.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. application:
  11. name: cfc-backend
  12. datasource:
  13. driver-class-name: com.mysql.cj.jdbc.Driver
  14. url: jdbc:mysql://192.168.16.251:3306/zxyj?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
  15. username: zxyj
  16. password: zxyj@123
  17. hikari:
  18. jdbc-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. driver-class-name: com.mysql.cj.jdbc.Driver
  22. sfms:
  23. datasource:
  24. driver-class-name: com.mysql.cj.jdbc.Driver
  25. url: jdbc:mysql://bianwoyou.mysql.rds.aliyuncs.com:3305/sfms?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
  26. username: sfms
  27. password: sfms@123
  28. mybatis-plus:
  29. mapper-locations: classpath*:/mapper/**/*.xml
  30. type-aliases-package: com.etotem.cfc.entity
  31. configuration:
  32. map-underscore-to-camel-case: true
  33. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  34. global-config:
  35. db-config:
  36. id-type: auto
  37. logic-delete-field: deleted
  38. logic-delete-value: 1
  39. logic-not-delete-value: 0
  40. jwt:
  41. secret: cfc-secret-key-2026-spring-boot-jwt-token
  42. expiration: 86400000
  43. zkxz:
  44. enabled: false
  45. sync-api-url: https://api.zkxz.org.cn/api/
  46. login-url: member/login
  47. sync-client-url: user/create
  48. list-client-url: user/list
  49. sync-teacher-url: teacher/create
  50. user-report: user/report
  51. report-info: report/info
  52. zx-user: ""
  53. zx-pass: ""
  54. wechat:
  55. appid: wx5ba8038ef16fb245
  56. secret: YOUR_APP_SECRET_HERE
  57. mch-id: YOUR_MCH_ID
  58. mch-key: YOUR_MCH_KEY
  59. notify-url: http://your-domain.com/api/payment/notify
  60. danshop-notify-url: http://localhost:9082/api/internal/payment/wechat-notify
  61. login-url: https://api.weixin.qq.com/sns/jscode2session
  62. phone-url: https://api.weixin.qq.com/wxa/business/getuserphonenumber
  63. test-mode: true # 测试模式:跳过微信API调用,使用模拟数据
  64. test-phone: "13800138000" # 测试模式使用的手机号
  65. dify:
  66. base-url: http://dify.bianwoyou.cn/v1
  67. api-key: app-rtNSAHG2NFzRsXCGkeZlVNR9
  68. logging:
  69. level:
  70. com.etotem.cfc: debug
  71. # Danshop 商城系统配置
  72. danshop:
  73. base-url: http://localhost:8888
  74. api-url: http://localhost:8888/api/internal