server: port: 8806 servlet: context-path: /fuquanapi spring: application: name: fuquanapi main: allow-bean-definition-overriding: true datasource: # SQL Server数据源配置 sqlserver: # 西宁火车煤 - 备用配置 url: jdbc:sqlserver://192.168.35.216:1433;SelectMethod=cursor;rewriteBatchedStatements=true;DatabaseName=WY_DATAMANAGE;encrypt=false;trustServerCertificate=true username: sa password: sa driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # url: jdbc:sqlserver://112.33.47.173:6789;SelectMethod=cursor;rewriteBatchedStatements=true;DatabaseName=WY_DATAMANAGE20250731;encrypt=false;trustServerCertificate=true # username: admin # password: admin@Erp2021 # driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver # 连接池配置 hikari: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 # PostgreSQL数据源配置 postgresql: url: jdbc:postgresql://192.168.35.10:5435/auseft_web username: postgres password: Auseft@2025 driver-class-name: org.postgresql.Driver # 连接池配置 hikari: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 jpa: hibernate: ddl-auto: none show-sql: true properties: hibernate: dialect: org.hibernate.dialect.SQLServer2008Dialect format_sql: true physical_naming_strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl use_sql_comments: true # 禁用默认数据源自动配置 open-in-view: false jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: GMT+8 mvc: pathmatch: matching-strategy: ant_path_matcher # API客户端配置 api: client: ak: 2760cd7c-cc0e-4034-86f3-d58e89f03d80 sk: e2c0e9c1aaa72a0b1444f879c86a9034bf2f03be31a58b1e5b3b077948da75cf # 日志配置 logging: level: com.example.webapi: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n" # Swagger配置 - Swagger2不需要额外配置