123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- server:
- port: 8321
- spring:
- application:
- name: state-cause
- profiles:
- # 环境配置
- active: nx
- cloud:
- nacos:
- discovery:
- # 服务注册地址
- server-addr: 192.168.10.18:8848
- config:
- # 配置中心地址
- server-addr: 192.168.10.18:8848
- # 配置文件格式
- file-extension: yml
- # 共享配置
- shared-configs:
- - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
- cache:
- type: SIMPLE
- datasource:
- driver-class-name: org.postgresql.Driver
- url: jdbc:postgresql://192.168.1.67:5432/gyee
- username: gyee
- password: Gyee@2023!@#
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- max-active: 20
- initial-size: 1
- min-idle: 3
- max-wait: 60000
- time-between-eviction-runs-millis: 60000
- min-evictable-idle-time-millis: 300000
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- jackson:
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- default-property-inclusion: always
- meter:
- stations: MHS_FDC,NSS_FDC
- adapter-url: http://192.168.10.18:8011
- sharding-url: http://192.168.10.18:8075
- time:
- #小于多长时间的故障不计算在内,单位秒
- fault-min: 180
- #限电跳变,2次限电间隔多长时间认为是同一次限电,单位秒
- ration: 180
- #小于多长时间的限电不计算在内,单位秒
- ration-min: 180
- uniformcode:
- #8种状态
- state8: FJZT8
- #桨叶角度
- blade-angle: AI082
- #功率-有功功率
- active-power: AI130
- #风速
- speed: AI022
- uniformcode-boost:
- #有功设定限值
- active-power-set: BTYGSDXZ
- #理论功率
- apparent-power: BTLLGL
- #实发有功
- output-power: BTSFYG
- mybatis-plus:
- typeAliasesPackage: com.gyee.gaia.meter.entity
- mapper-locations: classpath:mappers-postgresql/*.xml
- global-config:
- #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
- id-type: 3
- #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
- field-strategy: 2
- #驼峰下划线转换
- db-column-underline: true
- #mp2.3+ 全局表前缀 mp_
- #table-prefix: mp_
- #刷新mapper 调试神器
- #refresh-mapper: true
- #数据库大写下划线转换
- #capital-mode: true
- # Sequence序列接口实现类配置
- key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator
- #逻辑删除配置(下面3个配置)
- logic-delete-value: 1
- logic-not-delete-value: 0
- #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
- #自定义填充策略接口实现
- #meta-object-handler: com.baomidou.springboot.MyMetaObjectHandler
- configuration:
- #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
- map-underscore-to-camel-case: true
- cache-enabled: false
- #配置JdbcTypeForNull, oracle数据库必须配置
- jdbc-type-for-null: 'null'
- callSettersOnNulls: true
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- xxl:
- job:
- admin:
- addresses: http://192.168.10.18:8080/xxl-job-admin
- accessToken:
- executor:
- appname: meter
- address:
- ip:
- port: 9021
- logpath: d:/xxl-job/meter/logs
- logretentiondays: 30
|