Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

77 řádky
2.2KB

  1. server:
  2. port: 8806
  3. servlet:
  4. context-path: /fuquanapi
  5. spring:
  6. application:
  7. name: fuquanapi
  8. main:
  9. allow-bean-definition-overriding: true
  10. datasource:
  11. # SQL Server数据源配置
  12. sqlserver:
  13. # 西宁火车煤 - 备用配置
  14. url: jdbc:sqlserver://192.168.35.216:1433;SelectMethod=cursor;rewriteBatchedStatements=true;DatabaseName=WY_DATAMANAGE;encrypt=false;trustServerCertificate=true
  15. username: sa
  16. password: sa
  17. driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  18. # url: jdbc:sqlserver://112.33.47.173:6789;SelectMethod=cursor;rewriteBatchedStatements=true;DatabaseName=WY_DATAMANAGE20250731;encrypt=false;trustServerCertificate=true
  19. # username: admin
  20. # password: admin@Erp2021
  21. # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  22. # 连接池配置
  23. hikari:
  24. maximum-pool-size: 10
  25. minimum-idle: 5
  26. connection-timeout: 30000
  27. idle-timeout: 600000
  28. max-lifetime: 1800000
  29. # PostgreSQL数据源配置
  30. postgresql:
  31. url: jdbc:postgresql://192.168.35.10:5435/auseft_web
  32. username: postgres
  33. password: Auseft@2025
  34. driver-class-name: org.postgresql.Driver
  35. # 连接池配置
  36. hikari:
  37. maximum-pool-size: 10
  38. minimum-idle: 5
  39. connection-timeout: 30000
  40. idle-timeout: 600000
  41. max-lifetime: 1800000
  42. jpa:
  43. hibernate:
  44. ddl-auto: none
  45. show-sql: true
  46. properties:
  47. hibernate:
  48. dialect: org.hibernate.dialect.SQLServer2008Dialect
  49. format_sql: true
  50. physical_naming_strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
  51. use_sql_comments: true
  52. # 禁用默认数据源自动配置
  53. open-in-view: false
  54. jackson:
  55. date-format: yyyy-MM-dd HH:mm:ss
  56. time-zone: GMT+8
  57. mvc:
  58. pathmatch:
  59. matching-strategy: ant_path_matcher
  60. # API客户端配置
  61. api:
  62. client:
  63. ak: 2760cd7c-cc0e-4034-86f3-d58e89f03d80
  64. sk: e2c0e9c1aaa72a0b1444f879c86a9034bf2f03be31a58b1e5b3b077948da75cf
  65. # 日志配置
  66. logging:
  67. level:
  68. com.example.webapi: DEBUG
  69. pattern:
  70. console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
  71. # Swagger配置 - Swagger2不需要额外配置