131 lines
3.8 KiB
YAML
131 lines
3.8 KiB
YAML
|
|
|
|||
|
|
business:
|
|||
|
|
#分片次数,一定为24的约数,1 2 3 4 6 8 12 24
|
|||
|
|
slice: 4
|
|||
|
|
# 0.pq 1.pms
|
|||
|
|
type: 0
|
|||
|
|
#处理波形数据位置
|
|||
|
|
wavePath: F:\Comtrade
|
|||
|
|
retryAndCleanEvery10Min: 0 */10 * * * ?
|
|||
|
|
executeEventExpression: 0 */3 * * * ?
|
|||
|
|
server:
|
|||
|
|
port: 8093
|
|||
|
|
#springsecurity默认过期时间30m
|
|||
|
|
servlet:
|
|||
|
|
session:
|
|||
|
|
timeout: 1440m
|
|||
|
|
target:
|
|||
|
|
host: 10.95.53.49
|
|||
|
|
port: 9389
|
|||
|
|
username: hndnzl
|
|||
|
|
password: '@#001njcnPQS'
|
|||
|
|
basePath: /home/hndnzl
|
|||
|
|
privateKeyPath:
|
|||
|
|
|
|||
|
|
spring:
|
|||
|
|
security:
|
|||
|
|
user:
|
|||
|
|
name: data_njcn
|
|||
|
|
password: dnzl@#002
|
|||
|
|
#influxDB内容配置
|
|||
|
|
influx:
|
|||
|
|
url: http://10.95.53.49:8086
|
|||
|
|
user: pqsdata
|
|||
|
|
password: njcn@#001
|
|||
|
|
database: pqsbase
|
|||
|
|
mapper-location: com.njcn.influx.imapper
|
|||
|
|
application:
|
|||
|
|
name: oracle-influx
|
|||
|
|
autoconfigure:
|
|||
|
|
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
|||
|
|
datasource:
|
|||
|
|
dynamic:
|
|||
|
|
druid:
|
|||
|
|
initial-size: 10
|
|||
|
|
# 初始化大小,最小,最大
|
|||
|
|
min-idle: 20
|
|||
|
|
maxActive: 500
|
|||
|
|
# 配置获取连接等待超时的时间
|
|||
|
|
maxWait: 60000
|
|||
|
|
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|||
|
|
timeBetweenEvictionRunsMillis: 60000
|
|||
|
|
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
|||
|
|
minEvictableIdleTimeMillis: 300000
|
|||
|
|
testWhileIdle: true
|
|||
|
|
testOnBorrow: true
|
|||
|
|
validation-query: SELECT 1 from dual
|
|||
|
|
testOnReturn: false
|
|||
|
|
# 打开PSCache,并且指定每个连接上PSCache的大小
|
|||
|
|
poolPreparedStatements: true
|
|||
|
|
maxPoolPreparedStatementPerConnectionSize: 20
|
|||
|
|
filters: stat,wall
|
|||
|
|
filter:
|
|||
|
|
wall:
|
|||
|
|
config:
|
|||
|
|
multi-statement-allow: true
|
|||
|
|
none-base-statement-allow: true
|
|||
|
|
enabled: true
|
|||
|
|
# 配置DruidStatFilter
|
|||
|
|
web-stat-filter:
|
|||
|
|
enabled: true
|
|||
|
|
url-pattern: "/*"
|
|||
|
|
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
|
|||
|
|
# 配置DruidStatViewServlet
|
|||
|
|
stat-view-servlet:
|
|||
|
|
enabled: true
|
|||
|
|
url-pattern: "/druid/*"
|
|||
|
|
# IP白名单(没有配置或者为空,则允许所有访问)
|
|||
|
|
allow: #127.0.0.1,192.168.163.1
|
|||
|
|
# IP黑名单 (存在共同时,deny优先于allow)
|
|||
|
|
deny: #192.168.1.73
|
|||
|
|
# 禁用HTML页面上的“Reset All”功能
|
|||
|
|
reset-enable: false
|
|||
|
|
# 登录名
|
|||
|
|
login-username: admin
|
|||
|
|
# 登录密码
|
|||
|
|
login-password: njcnpqs
|
|||
|
|
query-timeout: 36000
|
|||
|
|
primary: master
|
|||
|
|
strict: false
|
|||
|
|
datasource:
|
|||
|
|
master:
|
|||
|
|
url: jdbc:oracle:thin:@10.95.53.40:11521:pqsbase
|
|||
|
|
username: pqsadmin
|
|||
|
|
password: "@#001njcnpqs"
|
|||
|
|
driver-class-name: oracle.jdbc.driver.OracleDriver
|
|||
|
|
target:
|
|||
|
|
url: jdbc:mysql://10.95.53.49:13306/pqsinfo_hn?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=CTT
|
|||
|
|
username: root
|
|||
|
|
password: njcnpqs
|
|||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|||
|
|
redis:
|
|||
|
|
database: 15
|
|||
|
|
host: 10.95.53.49
|
|||
|
|
port: 16379
|
|||
|
|
password: njcnpqs
|
|||
|
|
timeout: 5000
|
|||
|
|
lettuce:
|
|||
|
|
pool:
|
|||
|
|
max-active: 8
|
|||
|
|
max-wait: -1
|
|||
|
|
max-idle: 8
|
|||
|
|
min-idle: 0
|
|||
|
|
#不做限制的参数配置
|
|||
|
|
#mybatis配置信息
|
|||
|
|
mybatis-plus:
|
|||
|
|
#别名扫描
|
|||
|
|
type-aliases-package: com.njcn.oracle.bo
|
|||
|
|
mapper-locations: classpath*:com/njcn/**/mapping/*.xml
|
|||
|
|
configuration:
|
|||
|
|
#驼峰命名
|
|||
|
|
map-underscore-to-camel-case: true
|
|||
|
|
#配置sql日志输出
|
|||
|
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|||
|
|
#关闭日志输出
|
|||
|
|
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
|
|||
|
|
global-config:
|
|||
|
|
db-config:
|
|||
|
|
#指定主键生成策略
|
|||
|
|
id-type: assign_uuid
|
|||
|
|
|