|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
com.ruoyi: debug
|
|
org.springframework: warn
|
|
|
|
# Spring配置
|
|
spring:
|
|
# 资源信息
|
|
messages:
|
|
# 国际化资源文件路径
|
|
basename: i18n/messages
|
|
profiles:
|
|
active: druid
|
|
# 文件上传
|
|
servlet:
|
|
multipart:
|
|
# 单个文件大小
|
|
max-file-size: 10MB
|
|
# 设置总上传的文件大小
|
|
max-request-size: 20MB
|
|
datasource:
|
|
dynamic:
|
|
datasource:
|
|
master:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://localhost:3306/dliip?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
#url: jdbc:mysql://172.26.26.2:3306/dliip?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: atia2018
|
|
slave:
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://localhost:3306/dliip?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
username: root
|
|
password: atia2018-fff
|
|
# 服务模块
|
|
devtools:
|
|
restart:
|
|
# 热部署开关
|
|
enabled: true
|
|
|
|
|
|
|
|
# MyBatis配置
|
|
mybatis:
|
|
# 搜索指定包别名
|
|
typeAliasesPackage: com.dliip.**.domain
|
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
# 加载全局的配置文件
|
|
configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
|
# PageHelper分页插件
|
|
pagehelper:
|
|
helperDialect: mysql
|
|
supportMethodsArguments: true
|
|
params: count=countSql
|
|
|
|
sftp:
|
|
ip: 127.0.0.44
|
|
port: 21
|
|
username: ftpuser
|
|
password: atia2018
|
|
isImplicit: 1
|
|
|
|
# 盐源外部平台认证/推送(复用 inspect-main-api 的 ExtAuthService / AlarmWsConnection)
|
|
# client-id/client-secret 为现场认证凭据,请按现场配置填写(可在nacos配置中心覆盖)
|
|
yanyuan:
|
|
auth:
|
|
base-url: http://192.168.129.2:32799/jb-gateway/jb-base
|
|
ws-url: ws://192.168.129.2:32799/jb-gateway/jb-base/jb-base-socket
|
|
client-id: ""
|
|
client-secret: ""
|
|
|
|
# 任务巡检完成后自动归档 + 生成报告 + 推送(先上报 RabbitMQ,再由消费者 HTTP 上传外部平台)
|
|
# 见《盐源新能源智慧感知平台_巡检报告接口文档 v1.0.0》:POST /jb-nessp-external/api/uploadReport
|
|
inspect:
|
|
report-push:
|
|
# 是否启用自动归档+推送
|
|
enabled: true
|
|
# 巡检报告上传接口完整地址
|
|
upload-url: http://192.168.129.2:32799/jb-gateway/jb-nessp-external/api/uploadReport
|
|
# http 连接/读取超时(秒)
|
|
http-timeout-seconds: 60
|
|
# 自动归档审核人(报告发起人 username 为空时的兜底)
|
|
check-person: admin
|
|
# 自动归档巡视结论
|
|
task-result: 巡检完成,自动归档
|
|
# 任务状态更新事务提交等待时间(毫秒)
|
|
after-commit-delay-millis: 2000
|
|
# 归档防重锁过期时间(秒)
|
|
lock-expire-seconds: 86400
|
|
# 上传报告的场站ID(为空时取 basedata_station.station_no)
|
|
station-id: ""
|
|
# 上传报告的巡检类型(风机巡检/光伏巡检/线路巡检/山火巡检/机器人巡检;为空时按任务预置位类型推断)
|
|
inspect-type: ""
|
|
# 上传报告的巡检设备名称(机库名称、机器人名称、摄像头名称,可选)
|
|
inspect-device-name: ""
|
|
# 报告文件(SFTP)下载重试次数/间隔(毫秒)
|
|
download-retry-times: 10
|
|
download-retry-interval-millis: 1000
|
|
# 上传失败 MQ 重投递最大次数(超过后丢弃,避免无限重试)
|
|
mq-max-retries: 3
|