0
13693261870
2025-07-02 23f6c9865917c7b1d19457e17b8f4a0f83a1bc34
0
已添加1个文件
154 ■■■■■ 文件已修改
se-system/src/main/resources/application-test.yml 154 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
se-system/src/main/resources/application-test.yml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,154 @@
server:
  tomcat:
    uri-encoding: UTF-8
    max-connections: 5000
    max-http-form-post-size: 100MB
    threads:
      max: 2000
  servlet:
    context-path: /
spring:
  # redis
  redis:
    database: 0
    host: 127.0.0.1
    port: 6369
    password: rediS_5L#F4_Server
    # è¿žæŽ¥è¶…时时长(毫秒)
    timeout: 10000
    lettuce:
      pool:
        # è¿žæŽ¥æ± æœ€å¤§è¿žæŽ¥æ•°ï¼ˆä½¿ç”¨è´Ÿå€¼è¡¨ç¤ºæ²¡æœ‰é™åˆ¶ï¼‰
        max-active: 1000
        # è¿žæŽ¥æ± æœ€å¤§é˜»å¡žç­‰å¾…时间(使用负值表示没有限制)
        max-wait: -1
        # è¿žæŽ¥æ± ä¸­çš„æœ€å¤§ç©ºé—²è¿žæŽ¥
        max-idle: 10
        # è¿žæŽ¥æ± ä¸­çš„æœ€å°ç©ºé—²è¿žæŽ¥
        min-idle: 5
  # session
  session:
    # 20分钟
    timeout: PT20M
  # è®¾ç½®ä¸Šä¼ æ–‡ä»¶å¤§å°
  servlet:
    multipart:
      enabled: true
      max-file-size: 204800MB
      max-request-size: 1048576MB
  # jackson
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
    locale: zh_CN
  thymeleaf:
    cache: false
  # datasource
  datasource:
    name: prod
    # JDBC åŸºæœ¬é…ç½® &currentSchema=public
    #url: jdbc:postgresql://192.168.11.205:5433/jhs?useAffectedRows=true
    url: jdbc:postgresql://127.0.0.1:5433/jhs?useAffectedRows=true
    username: postgres
    #password: Postgres!_14_Lf
    password: postgres
    driver-class-name: org.postgresql.Driver
    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=5000
    # è¶…过时间限制是否回收
    removeAbandoned: true
    # è¶…时时间;单位为秒。180秒=3分钟
    removeAbandonedTimeout: 180
    # å…³é—­ abanded è¿žæŽ¥æ—¶è¾“出错误日志
    logAbandoned: true
    # é…ç½®è¿žæŽ¥æ± ä¿¡æ¯
    druid:
      # åˆå§‹åŒ–大小,最小,最大
      initial-size: 5
      min-idle: 5
      max-active: 100
      # é…ç½®èŽ·å–è¿žæŽ¥ç­‰å¾…è¶…æ—¶çš„æ—¶é—´ï¼Œms
      max-wait: 60000
      # é…ç½®é—´éš”多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
      time-between-eviction-runs-millis: 60000
      # é…ç½®ä¸€ä¸ªè¿žæŽ¥åœ¨æ± ä¸­æœ€å°ç”Ÿå­˜çš„æ—¶é—´ï¼Œå•位是毫秒
      min-evictable-idle-time-millis: 300000
      max-pool-prepared-statement-per-connection-size: 50
      pool-prepared-statements: true
      # ç”¨æ¥æµ‹è¯•连接是否可用的SQL语句
      validation-query: SELECT 1
      # åº”用向连接池申请连接,并且testOnBorrow为false时,连接池将会判断连接是否处于空闲状态,如果是,则验证这条连接是否可用
      test-while-idle: true
      # å¦‚果为true,默认是false,应用向连接池申请连接时,连接池会判断这条连接是否是可用的
      test-on-borrow: false
      # å¦‚果为true(默认false),当应用使用完连接,连接池回收连接的时候会判断该连接是否还可用
      test-on-return: false
      # servlet配置
      stat-view-servlet:
        # sql监控开关
        enabled: true
        # è®¿é—®å†…置监控页面的路径,内置监控页面的首页是/druid/index.html
        url-pattern: /druid/*
        # æ˜¯å¦å…è®¸æ¸…空统计数据,重新计算  true:允许  false:不允许
        reset-enable: false
        # é…ç½®ç›‘控页面访问账号密码
        login-username: admin
        login-password: ad_!Druid!_min
        # å…è®¸è®¿é—®çš„地址,如果allow没有配置或者为空,则允许所有访问
        allow:
        # æ‹’绝访问的地址,deny优先于allow
        deny:
mybatis-plus:
  type-aliases-package: com.terra.system.entity
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
# logging
logging:
  config: classpath:logback-spring.xml
# RestTemplate config
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: 30000
  readTimeout: -1
# ç³»ç»Ÿé…ç½®
sys:
  # è‡ªåŠ¨æŸ¥è¯¢
  autoQuery: 0
  # ç®¡ç†å‘˜ID
  admin: ad_Lf1122_min
  # IIS的主机地址
  iisHost: 127.0.0.1
  # FME服务地址
  fmeUrl: http://192.168.11.205:88/
  # FME令牌
  fmeToken: c36e4f94-dfde-401e-9967-2c4a449f1300
  # å‡ºå›¾æœåŠ¡
  exportServer: http://127.0.0.1/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\2d\tiles
  path:
    # ä¸‹è½½ç›®å½•
    download: D:\JHS\data\download
    # ä¸Šä¼ ç›®å½•
    upload: D:\JHS\data\upload
    # ä¸´æ—¶ç›®å½•
    temp: D:\JHS\data\temp
  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