|
@@ -1,165 +0,0 @@
|
|
-
|
|
|
|
-server:
|
|
|
|
- port: 8081
|
|
|
|
- servlet:
|
|
|
|
- context-path: /
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-spring:
|
|
|
|
- main:
|
|
|
|
- allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
|
|
|
|
- #redis集群
|
|
|
|
- redis:
|
|
|
|
- host: 127.0.0.1
|
|
|
|
- #host: 123.60.223.250
|
|
|
|
- port: 6379
|
|
|
|
- timeout: 100000
|
|
|
|
- # 集群环境打开下面注释,单机不需要打开
|
|
|
|
- # cluster:
|
|
|
|
- # #集群信息
|
|
|
|
- # nodes: 10.83.68.151:6379,10.83.68.152:6379,10.83.68.153:6379,10.83.68.154:6379,10.83.68.155:6379,10.83.68.156:6379,10.83.68.157:6379,10.83.68.158:6379,10.83.68.159:6379
|
|
|
|
- # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
|
|
|
|
- # maxRedirects: 3
|
|
|
|
- password:
|
|
|
|
- application:
|
|
|
|
- name: test
|
|
|
|
- jedis:
|
|
|
|
- pool:
|
|
|
|
- max-active: 8
|
|
|
|
- min-idle: 0
|
|
|
|
- max-idle: 8
|
|
|
|
- max-wait: -1
|
|
|
|
- database: 2
|
|
|
|
- autoconfigure:
|
|
|
|
- exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
|
|
|
|
- datasource:
|
|
|
|
- #type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
- type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
- dynamic:
|
|
|
|
- primary: master #设置默认的数据源或者数据源组,默认值即为master
|
|
|
|
- strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
|
- datasource:
|
|
|
|
- master:
|
|
|
|
- url: jdbc:mariadb://123.60.223.250:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例
|
|
|
|
- username: gyee
|
|
|
|
- password: eeyg
|
|
|
|
- driver-class-name: org.mariadb.jdbc.Driver
|
|
|
|
- slave:
|
|
|
|
- driver-class-name: com.taosdata.jdbc.TSDBDriver
|
|
|
|
- url: jdbc:TAOS://10.81.3.154:6030/test?charset=UTF-8&locale=en_US.UTF-8&timezone=UTC-8
|
|
|
|
- username: root
|
|
|
|
- password: taosdata
|
|
|
|
- #配置初始化连接数大小
|
|
|
|
- initial-size: 10
|
|
|
|
- # 最大连接数
|
|
|
|
- max-active: 50
|
|
|
|
- #最小连接数
|
|
|
|
- min-idle: 10
|
|
|
|
- #获取连接等待超时时间
|
|
|
|
- max-wait: 5000
|
|
|
|
- pool-prepared-statements: true #是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
|
|
|
|
- max-pool-prepared-statement-per-connection-size: 20
|
|
|
|
- validation-query: SELECT 1 FROM DUAL
|
|
|
|
- validation-query-timeout: 20000
|
|
|
|
- test-on-borrow: false #申请连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
|
|
|
|
- test-on-return: false #归还连接时执行validationQuery检测连接是否有效,做了这个配置会降低性能。
|
|
|
|
- test-while-idle: true #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
|
|
|
|
- time-between-eviction-runs-millis: 60000 #配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
|
|
|
|
- min-evictable-idle-time-millis: 300000 #一个连接在池中最小生存的时间,单位是毫秒
|
|
|
|
- #StatViewServlet配置。(因为暴露的监控信息比较敏感,支持密码加密和访问ip限定)
|
|
|
|
- stat-view-servlet:
|
|
|
|
- enabled: true
|
|
|
|
- url-pattern: /druid/*
|
|
|
|
- #可以增加访问账号密码【去掉注释就可以】
|
|
|
|
- #login-username: admin
|
|
|
|
- #login-password: admin
|
|
|
|
- filter:
|
|
|
|
- stat:
|
|
|
|
- log-slow-sql: true
|
|
|
|
- slow-sql-millis: 1000
|
|
|
|
- merge-sql: false
|
|
|
|
- wall:
|
|
|
|
- config:
|
|
|
|
- multi-statement-allow: true
|
|
|
|
-
|
|
|
|
-mybatis-plus:
|
|
|
|
- configuration:
|
|
|
|
- map-underscore-to-camel-case: true
|
|
|
|
- auto-mapping-behavior: full
|
|
|
|
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
- mapper-locations: classpath*:mapper/**/*Mapper.xml
|
|
|
|
- global-config:
|
|
|
|
- # 逻辑删除配置
|
|
|
|
- db-config:
|
|
|
|
- id-type: auto
|
|
|
|
- # 删除前
|
|
|
|
- logic-not-delete-value: 1
|
|
|
|
- # 删除后
|
|
|
|
- logic-delete-value: 0
|
|
|
|
-# 日志配置
|
|
|
|
-logging:
|
|
|
|
- level:
|
|
|
|
- root: info
|
|
|
|
- charset:
|
|
|
|
- # 输出控制台编码
|
|
|
|
- console: UTF-8
|
|
|
|
- # 输出文件编码
|
|
|
|
- file: UTF-8
|
|
|
|
- # 输出文件名及路径,不配置则不输出文件
|
|
|
|
- file:
|
|
|
|
- # 切记,该文件表示正在产出日志的日志文件。并不会打包,当文件大于max-file-size,会根据file-name-pattern格式打包
|
|
|
|
- # 名称为log/ota.log文件夹会在项目根目录下,打包后会在启动包同目录下;名称为/log/ota.log的文件夹会在项目所在磁盘的跟目录下
|
|
|
|
- name: log/ota.log
|
|
|
|
- logback:
|
|
|
|
- rollingpolicy:
|
|
|
|
- # 单文件的大小,默认10M, 超过之后打包成一个日志文件
|
|
|
|
- max-file-size: 1MB
|
|
|
|
- # 日志保存的天数
|
|
|
|
- max-history: 30
|
|
|
|
- # 打包文件格式,默认: ${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz,书写格式为:文件路径/文件名.%i.文件后缀,其中%i不可省去,否则无日志显示
|
|
|
|
- # 例如: 日期为:2021/11/5 ,则打包文件之后为: log/ota.2021-11-05.0.gz,0表示日志的第一部分,后续就是,1,2,3...
|
|
|
|
- # 如果是压缩包,里面会多一个名log/ota.2021-11-05.0的日志文件
|
|
|
|
- # 如下面的例子,打包之后为: log/2021-11/ota.2020-11-5.0.log,这是一个日志文件
|
|
|
|
- file-name-pattern: log/%d{yyyy-MM}/ota.%d{yyyy-MM-dd}.%i.log
|
|
|
|
-
|
|
|
|
-#db url
|
|
|
|
-db:
|
|
|
|
- url1: http://10.81.3.160:8011/ts
|
|
|
|
- url2: http://10.81.3.160:8012/ts
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-#参与计算的场站
|
|
|
|
-runWindpowerstation: SXJ_KGDL_GFFD_FS_GDC_STA,SXJ_KGDL_GFFD_BHB_FDC_STA
|
|
|
|
-
|
|
|
|
-initialcode: INITIAL
|
|
|
|
-##调用区间间隔时长,需要与XXLJOB调度时长结合,保证查询区间时长大于调度时长,单位分钟
|
|
|
|
-frequency:
|
|
|
|
- #停机
|
|
|
|
- shutdown: 1
|
|
|
|
- #限电
|
|
|
|
- powerrationing: 1
|
|
|
|
- #切入切出
|
|
|
|
- cutinandout: 1
|
|
|
|
-#不参与单机电量计算的场站
|
|
|
|
-notCalculatePower: SXJ_KGDL_YTY_FDC_STA
|
|
|
|
-powerjob:
|
|
|
|
- worker:
|
|
|
|
- allow-lazy-connect-server: false
|
|
|
|
- app-name: powerjob-worker-sample
|
|
|
|
- enabled: true
|
|
|
|
- max-appended-wf-context-length: 4096
|
|
|
|
- max-result-length: 4096
|
|
|
|
- port: 27777
|
|
|
|
- protocol: http
|
|
|
|
- server-address: 120.46.128.147:7700,120.46.128.147:7701
|
|
|
|
- store-strategy: disk
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|