server:
|
port: 8078
|
servlet:
|
context-path: /api
|
|
spring:
|
mvc:
|
pathmatch:
|
matching-strategy: ant_path_matcher
|
application:
|
name: NslServer
|
datasource:
|
name: prod
|
# JDBC 基本配置 ¤tSchema=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
|
|
# 项目实体库服务中配置
|
app-server:
|
# 公钥地址
|
publicKeyUrl: http://106.120.22.26:8024/account-service/security/publickey
|
# 登录地址
|
loginUrl: http://106.120.22.26:8024/account-service/security/login
|
# 查询数据库地址
|
getDbUrl: http://106.120.22.26:8024/geo-service/entitydb/list/canview
|
# 查询不同数据库类型下的数据地址
|
queryUrl: http://106.120.22.26:8024/geo-service/entitydbdata/layer/query
|
|
# 模拟项目
|
simu-app:
|
# 项目模拟文件上传存放的位置
|
filePath: D:\other\simu\files
|
|
config:
|
ver: 0.2
|
cacheTime: 60
|
# Gdal驱动目录
|
#gdalPath: D:\soft\release-1928-x64-dev\release-1928-x64\bin
|
gdalPath: C:\Program Files\GDAL
|
#inPath: D:\simu\in
|
inPath: D:\other\simu\uwsolver
|
outPath: D:\other\simu\out
|
host: http://106.120.22.26:8024/
|
user: admin
|
pwd: admin
|
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:\other\simu\uwsolver\run_solver.bat
|
sww2tifBat: D:\other\simu\uwsolver\sww2tif.bat
|
uwSolverBat: D:\other\simu\uwsolver\CudaUWSolver.Demo.NoVis.20250430\start.bat
|
zarr2tifBat: D:\other\simu\uwsolver\zarr2tif1.0\start.bat
|
rainfallTitle: Station Longitude Latitude Year Month Day Hour Minute Intensity
|
rainfallSite: beijing
|
saveFrames: 10
|
#sizes: 64,128,256,512,1024,2048,4096
|
sizes: 1024
|
# 输出文件
|
terrainFile: DEM.tif
|
buildingFile: buildings_inside.shp
|
# buildingKey: seid
|
buildingKey: KJSFBM
|
waterPath: depth
|
flowPath: velocity
|
copyTif: false
|
tifPath: D:\other\simu\uwsolver\5ca43c87cd8e48c5a9c5399a5da46dbc\tongzhou_raster_4548_1m_clip_river_fill.tif
|