水利项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

220 lines
5.8 KiB

# 项目相关配置
shuili:
# 名称
name: 天汇重构
#系统别名 英文/汉语拼音 做缓存的前缀 每个模块的配置必须一样
nameKey: tianhui_lyj
# 版本
version: 1.0
# 版权年份
copyrightYear: 2023
# 实例演示开关
demoEnabled: true
# 临时文件地址
profile: /tmp
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: math
#数据库配置 参考枚举类DbType
dbType: mysql
#初始话数据的位置 采集的文献的导入
initData: /tmp
init: true
#导入TNT 数据
initTntData: /tmp
#neo4j的一个from
database: tianhui_lyj
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
port: 18082
servlet:
# 应用的访问路径
context-path: /tianhui-admin-web
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# tomcat最大线程数,默认为200
max-threads: 800
# Tomcat启动初始化的线程数,默认值25
min-spare-threads: 30
# 日志配置
logging:
level:
com.kms: debug
org.springframework: warn
# Spring配置
spring:
application:
name: shuili-admin
resources:
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/templates/,file:${shuili.profile}/
mongodb:
uri: mongodb://192.168.1.20:27017/tianhui
field-naming-strategy: org.springframework.data.mapping.model.SnakeCaseFieldNamingStrategy
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: druid-dev
session:
store-type: redis
redis:
flush-mode: immediate
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 1000MB
# 设置总上传的文件大小
max-request-size: 20000MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# redis 配置
redis:
# 地址
host: 127.0.0.1
database: 2
# cluster:
# nodes: 192.168.1.20:7001,192.168.1.20:7002,192.168.1.20:7003,192.168.1.20:7004,192.168.1.20:7005,192.168.1.20:7006
# max-redirects: 3
# 端口,默认为6379
port: 6379
# 密码
password: 12345
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 16
# 连接池中的最大空闲连接
max-idle: 32
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# password: password
sa-token:
# token名称 (同时也是cookie名称)
token-name: shuili
# token有效期,单位s 默认30天, -1代表永不过期
timeout: -1
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: 1800
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: false
# token风格
token-style: uuid
# 是否输出操作日志
is-log: true
isReadCookie: false
tokenSessionCheckLogin: false
#是否在初始化配置时打印版本字符画
isV: false
#token前缀, 格式样例(satoken: Bearer xxxx-xxxx-xxxx-xxxx) 参考:token前缀
tokenPrefix: water
# 是否打开自动续签 (如果此值为true, 框架会在每次直接或间接调用getLoginId()时进行一次过期检查与续签操作)
autoRenew: true
#是否尝试从header里读取token
isReadHead: true
#mybatis-plus配置
mybatis-plus:
configuration:
#下划线驼峰命名
map-underscore-to-camel-case: true
auto-mapping-behavior: full
#开启日志打印
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#配置Mapper映射文件
mapper-locations: classpath*:mapper/**/*Mapper.xml
type-aliases-package: com.kms.**.domain
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping: /
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
fdfs:
soTimeout: 1500
connectTimeout: 600
thumbImage: #缩略图生成参数
width: 150
height: 150
#预览的地址
showFileUrl: 192.168.1.20:9080
#使用的是http 还是https
urlAgreement: http
trackerList: #TrackerList参数,支持多个
- 192.168.1.20:22122
ignored:
/actuator/**,
/v2/*,/favicon.ico,/swagger-resources/**,/druid/**,/swagger-ui.html,/webjars/**,
/app/login,/initTnt/**,
/doc.html,
/chunk/*,
/error,
/login,
/login-proxy,
/captchaImage,
/system/file/**,
/system/user/exportExcel,
/system/kaptcha/render,
/tool/gen,
/test/**,
/run/api/**,
/profile/**,
/map/**
# http请求连接池
http:
pool:
# 连接超时
connectTimeout: 5000000
connectionRequestTimeout: 5000000
defaultMaxPerRoute: 20
# 最大连接数
maxTotal: 100
# 服务器返回数据(response)的时间
socketTimeout: 5000000
validateAfterInactivity: 5000000
#算法配置
algorithm:
#图片ocr服务
entity: http://192.168.0.14:17856/analyze_text
# 自动打抽取摘要
summary: http://192.168.0.210:12343
ocr: http://192.168.0.62:12340/ExtractServer?WSDL
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
gateway:
enabled: true
health:
show-details: ALWAYS
logfile:
external-file: ./logs/${spring.application.name}/console.log
health:
rabbit:
enabled: false
context-path: /actuator
job:
isRunning: true