|
@@ -0,0 +1,116 @@
|
|
|
+server:
|
|
|
+ port: 8132
|
|
|
+
|
|
|
+spring:
|
|
|
+ application:
|
|
|
+ name: realtime-wind
|
|
|
+ profiles:
|
|
|
+ # 环境配置
|
|
|
+ active: nx
|
|
|
+ cloud:
|
|
|
+ nacos:
|
|
|
+ discovery:
|
|
|
+ # 服务注册地址
|
|
|
+ server-addr: 192.168.1.66:8848
|
|
|
+ config:
|
|
|
+ # 配置中心地址
|
|
|
+ server-addr: 192.168.1.66:8848
|
|
|
+ # 配置文件格式
|
|
|
+ file-extension: yml
|
|
|
+ # 共享配置
|
|
|
+ shared-configs:
|
|
|
+ - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
|
+ cache:
|
|
|
+ type: SIMPLE
|
|
|
+ datasource:
|
|
|
+ dynamic:
|
|
|
+ primary: master #设置默认的数据源或者数据源组,默认值即为master
|
|
|
+ strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
+ datasource:
|
|
|
+ master:
|
|
|
+ url: jdbc:postgresql://192.168.1.67:5432/gyee
|
|
|
+ username: gyee
|
|
|
+ password: Gyee@2023!@#
|
|
|
+ driver-class-name: org.postgresql.Driver
|
|
|
+ type: com.alibaba.druid.pool.DruidDataSource
|
|
|
+ jsfw:
|
|
|
+ url: jdbc:TAOS-RS://192.168.1.67:6041/jsfw?charset=UTF-8&locale=en_US.UTF-8&timezone=UTC-8
|
|
|
+ username: root
|
|
|
+ password: taosdata
|
|
|
+ driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
|
|
|
+ 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: false
|
|
|
+ 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
|
|
|
+ uniformcode-one:
|
|
|
+ wind-speed: AI022 #风速
|
|
|
+ active-power: AI130 #功率-有功功率
|
|
|
+ generator_speed: AI128 #发电机转速
|
|
|
+ impeller_speed: AI012 #叶轮转速
|
|
|
+ wind_direction: AI010 #风向
|
|
|
+
|
|
|
+
|
|
|
+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.1.67:8080/xxl-job-admin
|
|
|
+ accessToken:
|
|
|
+ executor:
|
|
|
+ appname: ${spring.application.name}
|
|
|
+ address:
|
|
|
+ ip:
|
|
|
+ port: 9132
|
|
|
+ logpath: d:/xxl-job/meter/logs
|
|
|
+ logretentiondays: 30
|
|
|
+
|
|
|
+#logging:
|
|
|
+# level:
|
|
|
+# org.springframework: debug
|