application.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. spring:
  2. application:
  3. name: pharmacopoeia-ai
  4. datasource:
  5. url: jdbc:postgresql://localhost:5432/pharmacopoeia
  6. username: postgres
  7. password: ${POSTGRES_PASSWORD:pharma2025}
  8. driver-class-name: org.postgresql.Driver
  9. jpa:
  10. hibernate:
  11. ddl-auto: none
  12. show-sql: false
  13. properties:
  14. hibernate:
  15. dialect: org.hibernate.dialect.PostgreSQLDialect
  16. format_sql: true
  17. data:
  18. redis:
  19. host: localhost
  20. port: 6379
  21. jackson:
  22. serialization:
  23. write-dates-as-timestamps: false
  24. server:
  25. port: 9000
  26. # ============================================
  27. # Qwen API 配置
  28. # ============================================
  29. qwen:
  30. api-key: ${QWEN_API_KEY:}
  31. base-url: https://dashscope.aliyuncs.com/compatible-mode/v1
  32. model: qwen3.7-max
  33. max-tokens: 4096
  34. temperature: 0.0
  35. # 嵌入模型
  36. embedding-model: text-embedding-v3
  37. embedding-url: https://dashscope.aliyuncs.com/api/v1/services/embeddings/text-embedding/text-embedding
  38. embedding-dim: 1024
  39. # ============================================
  40. # JWT
  41. # ============================================
  42. jwt:
  43. secret: 1a29ea13c7b26f9d50e414c6768dd25f735b23298d7ec29676bf4f2acb4a6d17
  44. expiration: 86400000 # 24小时 (ms)
  45. # ============================================
  46. # 微信小程序
  47. # ============================================
  48. wechat:
  49. app-id: ${WECHAT_APPID:}
  50. secret: ${WECHAT_SECRET:}
  51. # ============================================
  52. # 限流
  53. # ============================================
  54. rate-limit:
  55. per-minute: 60
  56. per-hour: 1000
  57. logging:
  58. level:
  59. com.pharmacopoeia: INFO
  60. org.springframework.web: INFO