fxkh-txl-service/src/main/resources/application.yml

89 lines
2.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

server:
port: 18005
spring:
#数据库配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: dm.jdbc.driver.DmDriver
# url: jdbc:dm://120.76.31.37:5236/DAM_SAFE?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
url: jdbc:dm://172.20.1.100:5236/DAM_SAFE?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username: DAM_SAFE
password: Dam_safe_890
druid:
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT1FROMDUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
filters: stat,wall,log4j #wall表示排除防火请
logSlowSql: true
#jpa配置
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.DmDialect
# Redis
redis:
database: 4
host: 127.0.0.1
port: 6379
password: Whdc_890
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
knife4j:
enable: true
setting:
enableFooter: false
enableFooterCustom: true
footerCustomContent: Copyright 2018-[湖北纬皓端成科技有限公司](http://www.wavehorizon.cn)
documents: # 文档配置,可配置多个分组
- group: doc-knife4j-1.0.0
name: MarkDown文档
locations: classpath:markdown/*
- group: v1.0
name: v1.0
logging:
level.org.springframework.boot.autoconfigure: error #spring的自动装配日志只打error否则debug输出的会打印很多自动装配的log信息到控制台
config: classpath:logback-spring.xml
# Sa-Token配置
sa-token:
# token 名称 (同时也是cookie名称)
token-name: token
# token 有效期, 24小时单位s, -1代表永不过期
timeout: 86400
# token 临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
activity-timeout: -1
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
is-concurrent: true
# 在多人登录同一账号时是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
is-share: false
# token风格
token-style: simple-uuid
# 是否输出操作日志
is-log: false
# 大坝安全监测数据获取接口
cklat_data_api: http://172.20.1.202:8008/api/v1/devices/records
# 渗压换算管内水位系数
o_z_modulus: 0.10197