张洋洋
2024-12-06 97a9c821063acb96f230209f121ec9e3a4f4e99a
[add]配置文件区别
已添加2个文件
已修改2个文件
424 ■■■■■ 文件已修改
pom.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-prod.yml 139 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-zyy.yml 139 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application.yml 140 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml
@@ -160,6 +160,12 @@
            <scope>system</scope>
            <systemPath>${project.basedir}/libs/jarhdf5-3.3.2.jar</systemPath>
        </dependency><!---->
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>1.33</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
    <build>
src/main/resources/application-prod.yml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,139 @@
server:
  port: 8079
  servlet:
    context-path: /
spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  application:
    name: SimuServer
  datasource:
    name: prod
    # JDBC åŸºæœ¬é…ç½® &currentSchema=public
    url: jdbc:postgresql://127.0.0.1:5433/ai?useAffectedRows=true
    username: postgres
    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:
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
knife4j:
  # æ˜¯å¦å¼€å¯
  enabled: true
  # è¯·æ±‚前缀
  pathMapping:
  # æ˜¯å¦å¼€å¯å¢žå¼ºæ¨¡å¼
  enable: true
pagehelper:
  autoDialect: true
  autoRuntimeDialect: true
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: -1
  readTimeout: -1
config:
  ver: 0.2
  cacheTime: 60
  # Gdal驱动目录
  gdalPath: E:/terrait/TianJin/Zip/release-1928-x64-dev/release-1928-x64/bin
  #inPath: D:\simu\in
  inPath: D:\simu\uwsolver
  outPath: D:\simu\out
  #
  host: http://106.120.22.26:8024/
  user: admin
  pwd: admin
  #  host: http://106.120.22.26:8013/
  #  user: WUWEIWEI
  #  pwd: WUWEIWEI
  dbName: é€šå·žæ°´åˆ©
  pageSize: 2000
  layerNames: ç®¡ç‚¹,管线,建筑物
  shpNames:
    - pipeline-point.shp
    - pipeline-conduit.shp
    - buildings_inside.shp
  junctionName: pipeline-point-junctions.shp
  junctionFilter: ysjjd=1
  demName: DEM
  demType: .tif
  demFile: DEM.tif
  zoneName: studyzone.shp
  barrierName: barrier.shp
  sysFields: _ext_attr,_meta_id,_attach_files,_x,_y,_z,_is_latest,_data_type,operatetime,operator,shape_length,shape_area
  raingage: RainGage.dat
  rainStation: Tongzhou
  rainPeriod: 10
  # æµé‡å•位,LPS(升/秒)、CMS(立方米/秒)、CFS(立方英尺/秒)
  flowUnits: CMS
  solverBat: D:\simu\uwsolver\run_solver.bat
  sww2tifBat: D:\simu\uwsolver\sww2tif.bat
  sizes: 64,128,256,512,1024,2048
  # è¾“出文件
  terrainFile: DEM.tif
  buildingFile: buildings_inside.shp
  buildingKey: seid
  # buildingKey: KJSFBM
  waterPath: depth
  flowPath: velocity
  copyTif: false
src/main/resources/application-zyy.yml
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,139 @@
server:
  port: 8079
  servlet:
    context-path: /
spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  application:
    name: SimuServer
  datasource:
    name: prod
    # JDBC åŸºæœ¬é…ç½® &currentSchema=public
    url: jdbc:postgresql://127.0.0.1:5432/ai?useAffectedRows=true
    username: postgres
    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:
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
knife4j:
  # æ˜¯å¦å¼€å¯
  enabled: true
  # è¯·æ±‚前缀
  pathMapping:
  # æ˜¯å¦å¼€å¯å¢žå¼ºæ¨¡å¼
  enable: true
pagehelper:
  autoDialect: true
  autoRuntimeDialect: true
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: -1
  readTimeout: -1
config:
  ver: 0.2
  cacheTime: 60
  # Gdal驱动目录
  gdalPath: D:\gdal\release-1928-x64-dev\release-1928-x64\bin
  #inPath: D:\simu\in
  inPath: D:\uwsolver
  outPath: D:\out
  #
  host: http://106.120.22.26:8024/
  user: admin
  pwd: admin
  #  host: http://106.120.22.26:8013/
  #  user: WUWEIWEI
  #  pwd: WUWEIWEI
  dbName: é€šå·žæ°´åˆ©
  pageSize: 2000
  layerNames: ç®¡ç‚¹,管线,建筑物
  shpNames:
    - pipeline-point.shp
    - pipeline-conduit.shp
    - buildings_inside.shp
  junctionName: pipeline-point-junctions.shp
  junctionFilter: ysjjd=1
  demName: DEM
  demType: .tif
  demFile: DEM.tif
  zoneName: studyzone.shp
  barrierName: barrier.shp
  sysFields: _ext_attr,_meta_id,_attach_files,_x,_y,_z,_is_latest,_data_type,operatetime,operator,shape_length,shape_area
  raingage: RainGage.dat
  rainStation: Tongzhou
  rainPeriod: 10
  # æµé‡å•位,LPS(升/秒)、CMS(立方米/秒)、CFS(立方英尺/秒)
  flowUnits: CMS
  solverBat: D:\uwsolver\run_solver.bat
  sww2tifBat: D:\uwsolver\sww2tif.bat
  sizes: 64,128,256,512,1024,2048
  # è¾“出文件
  terrainFile: DEM.tif
  buildingFile: buildings_inside.shp
  # buildingKey: seid
  buildingKey: KJSFBM
  waterPath: depth
  flowPath: velocity
  copyTif: false
src/main/resources/application.yml
@@ -1,139 +1,3 @@
server:
  port: 8079
  servlet:
    context-path: /
spring:
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
  application:
    name: SimuServer
  datasource:
    name: prod
    # JDBC åŸºæœ¬é…ç½® &currentSchema=public
    url: jdbc:postgresql://127.0.0.1:5433/ai?useAffectedRows=true
    username: postgres
    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:
  config-location: classpath:mybatis.xml
  mapper-locations: classpath:mapper/**/*.xml
knife4j:
  # æ˜¯å¦å¼€å¯
  enabled: true
  # è¯·æ±‚前缀
  pathMapping:
  # æ˜¯å¦å¼€å¯å¢žå¼ºæ¨¡å¼
  enable: true
pagehelper:
  autoDialect: true
  autoRuntimeDialect: true
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql
remote:
  maxTotalConnect: 0
  maxConnectPerRoute: 1000
  connectTimeout: -1
  readTimeout: -1
config:
  ver: 0.2
  cacheTime: 60
  # Gdal驱动目录
  gdalPath: E:/terrait/TianJin/Zip/release-1928-x64-dev/release-1928-x64/bin
  #inPath: D:\simu\in
  inPath: D:\simu\uwsolver
  outPath: D:\simu\out
  #
  host: http://106.120.22.26:8024/
  user: admin
  pwd: admin
#  host: http://106.120.22.26:8013/
#  user: WUWEIWEI
#  pwd: WUWEIWEI
  dbName: é€šå·žæ°´åˆ©
  pageSize: 2000
  layerNames: ç®¡ç‚¹,管线,建筑物
  shpNames:
    - pipeline-point.shp
    - pipeline-conduit.shp
    - buildings_inside.shp
  junctionName: pipeline-point-junctions.shp
  junctionFilter: ysjjd=1
  demName: DEM
  demType: .tif
  demFile: DEM.tif
  zoneName: studyzone.shp
  barrierName: barrier.shp
  sysFields: _ext_attr,_meta_id,_attach_files,_x,_y,_z,_is_latest,_data_type,operatetime,operator,shape_length,shape_area
  raingage: RainGage.dat
  rainStation: Tongzhou
  rainPeriod: 10
  # æµé‡å•位,LPS(升/秒)、CMS(立方米/秒)、CFS(立方英尺/秒)
  flowUnits: CMS
  solverBat: D:\simu\uwsolver\run_solver.bat
  sww2tifBat: D:\simu\uwsolver\sww2tif.bat
  sizes: 64,128,256,512,1024,2048
  # è¾“出文件
  terrainFile: DEM.tif
  buildingFile: buildings_inside.shp
  buildingKey: seid
  # buildingKey: KJSFBM
  waterPath: depth
  flowPath: velocity
  copyTif: false
  profiles:
    active: zyy