feiyu02
2025-04-11 635d762aef37b5de6cd2e34f4a076ab56d9a239d
src/main/resources/application.yml
@@ -1,19 +1,32 @@
spring:
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
    url: jdbc:mysql://47.100.191.150:3306/obd?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
    username: obd
    password: obd2019
    hikari:
      maximum-pool-size: 500
      minimum-idle: 20
      idle-timeout: 60000
      connection-timeout: 60000
  profiles:
    active: @profileActive@
  jmx:
    enabled: false
  #文件上传限制
  servlet:
    multipart:
      max-file-size: 25MB
      max-request-size: 100MB
mybatis:
  type-aliases-package: com.flightfeather.obd.domain.entity
  type-aliases-package: com.flightfeather.uav.domain.entity
  mapper-locations: classpath*:mapper/*.xml
## 通用 Mapper 配置
#mappers 多个接口时逗号隔开
mapper:
  mappers: com.flightfeather.obd.domain.MyMapper
  mappers: com.flightfeather.uav.domain.MyMapper
  not-empty: false
  identity: MYSQL
@@ -22,4 +35,10 @@
    helperDialect: mysql
    reasonable: true
    supportMethodsArguments: true
    params: count=countSql
    params: count=countSql
# Swagger json url address
# etc. https://petstore.swagger.io/
swagger.url: http://localhost:8080/v3/api-docs
# api访问网址
# api url : http://localhost:8080/swagger-ui/index.html