管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2024-08-16 6dbd4c0d84e62235141c6ecb5b29eaac9ee1275e
src/main/resources/application.yml
@@ -1,26 +1,30 @@
server:
  tomcat:
    uri-encoding: UTF-8
    max-connections: 1000
    max-connections: 5000
    max-http-form-post-size: 50MB
    threads:
      max: 2000
  port: 12316
  servlet:
    context-path: /server
  application:
    name: server
spring:
  application:
    name: server
  # redis
  redis:
    database: 0
    host: 127.0.0.1
    port: 6369
    password: rediS_5L#F4_Server
    timeout: 6000  # 连接超时时长(毫秒)
    pool:
      max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
      max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
      max-idle: 10      # 连接池中的最大空闲连接
      min-idle: 5       # 连接池中的最小空闲连接
    timeout: 10000  # 连接超时时长(毫秒)
    lettuce:
      pool:
        max-active: 1000  # 连接池最大连接数(使用负值表示没有限制)
        max-wait: -1      # 连接池最大阻塞等待时间(使用负值表示没有限制)
        max-idle: 10      # 连接池中的最大空闲连接
        min-idle: 5       # 连接池中的最小空闲连接
  # session
  session:
    timeout: PT20M # 20分钟
@@ -41,19 +45,19 @@
  datasource:
    name: prod
    # JDBC 基本配置 &currentSchema=public
    #url: jdbc:postgresql://103.85.165.99:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://192.168.20.205:5433/langfang?useAffectedRows=true
    #url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true
    username : postgres
    password: Postgres!_14_Lf
    #password: postgres
    #url: jdbc:postgresql://103.135.160.14:5433/langfang?useAffectedRows=true
    #url: jdbc:postgresql://192.168.11.205:5433/langfang?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/langfang?useAffectedRows=true
    username: postgres
    #password: Postgres!_14_Lf
    password: postgres
    driver-class-name: org.postgresql.Driver
    paltform: POSTGRESQL
    platform: POSTGRESQL
    type: com.alibaba.druid.pool.DruidDataSource
    # 配置监控统计拦截的filters,stat:监控统计、log4j:日志记录、wall:防御sql注入
    filters: stat,wall,log4j
    # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    # 超过时间限制是否回收
    removeAbandoned: true
    # 超时时间;单位为秒。180秒=3分钟
@@ -65,8 +69,8 @@
      ## 初始化大小,最小,最大
      initial-size: 5
      min-idle: 5
      max-active: 50
      ## 配置获取连接等待超时的时间
      max-active: 100
      ## 配置获取连接等待超时的时间,ms
      max-wait: 60000
      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      time-between-eviction-runs-millis: 60000
@@ -95,29 +99,8 @@
        #login-password: ad_!Druid!_min
        # 允许访问的地址,如果allow没有配置或者为空,则允许所有访问
        allow:
        # 拒绝访问的地址,deny优先于allow,如果在deny列表中,就算在allow列表中,也会被拒绝
        # 拒绝访问的地址,deny优先于allow
        deny:
        # 配置WebStatFilter,用于采集web关联监控的数据
        web-stat-filter:
          # web url监控
          enabled: true
          # session监控
          session-stat-enable: true
          # session的最大个数,默认100
          session-stat-max-count: 1000
          # 过滤所有url
          url-pattern: /*
          # 排除一些不必要的url
          exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
        # 自己配置监控统计拦截的filter
        filter:
          # 开启DruidDataSource的状态监控
          stat:
            enabled: true
            db-type: postgresql
            # 开启慢sql监控,超过2s 就认为是慢sql,记录到日志中
            log-slow-sql: true
            slow-sql-millis: 2000
# mybatis
#mybatis:
@@ -126,7 +109,6 @@
#  mapper-locations: classpath:mapper/**/*.xml
mybatis-plus:
  map-underscore-to-camel-case: true
  type-aliases-package: com.lf.server.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
@@ -139,32 +121,40 @@
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 5000
  readTimeout: 1800000
  connectTimeout: 30000
  readTimeout: -1
# 系统配置
sys:
  # 自动查询
  autoQuery: 0
  # 管理员ID
  admin: ad_Lf1122_min
  # IIS的主机地址
  iisHost: 127.0.0.1
  # FME服务地址
  #fmeUrl: http://103.85.165.99:8051/
  fmeUrl: http://192.168.20.205:88/
  #fmeUrl: http://106.120.22.35:8051/
  fmeUrl: http://192.168.11.205:88/
  # FME令牌
  fmeToken: c36e4f94-dfde-401e-9967-2c4a449f1300
  # 出图服务
  exportServer: http://127.0.0.1/ExportMap
  #exportServer: http://103.85.165.99:8050/ExportMap
  # Turf服务
  turfServer: http://127.0.0.1/Turf
  # Gdal驱动目录
  gdal_path: E:\terrait\TianJin\Zip\release-1928-x64-dev\release-1928-x64\bin
  # 瓦片地址
  tile_path: E:\data\99.public\soft\LFData\2d\tiles
  path:
    # 下载目录(下载文件)
    # 下载目录
    download: D:\LF\download
    # 上传目录(大数据上传)
    # 上传目录
    upload: D:\LF\upload
    # 共享目录(数据发布)
    share: D:\LF\share
    # 临时目录(临时上传文件)
    # 临时目录
    temp: D:\LF\temp
    # 发布Mpt目录
    publishMpt: D:\LF\publishMpt
    # 发布3DML目录
    publish3dml: D:\LF\publish3dml
  cad:
    exePath: C:/360/MxDrawCloudServer1.0TryVersion/MxDrawCloudServer/Bin/MxCAD/Release/mxcadassembly.exe
    targetPath: C:/360/MxDrawCloudServer1.0TryVersion/MxDrawCloudServer/SRC/TsWeb/public/data
  # 上传附件表
  attachTabs: bd.b_pac_hydrogeology,bd.b_pac_frozensoil,bd.b_pac_geologic_hazard,bd.b_pac_marine_meteorological,bd.b_pac_meteorological,bs.m_equipment_nameplate,bs.m_hydraulic_protection,bs.m_marker,bs.s_explorationpoint,bs.u_sectionline