bootstrap.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. server:
  2. port: 8321
  3. spring:
  4. application:
  5. name: state-cause
  6. profiles:
  7. # 环境配置
  8. active: nx
  9. cloud:
  10. nacos:
  11. discovery:
  12. # 服务注册地址
  13. server-addr: 192.168.10.18:8848
  14. config:
  15. # 配置中心地址
  16. server-addr: 192.168.10.18:8848
  17. # 配置文件格式
  18. file-extension: yml
  19. # 共享配置
  20. shared-configs:
  21. - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
  22. cache:
  23. type: SIMPLE
  24. datasource:
  25. driver-class-name: org.postgresql.Driver
  26. url: jdbc:postgresql://192.168.1.67:5432/gyee
  27. username: gyee
  28. password: Gyee@2023!@#
  29. type: com.alibaba.druid.pool.DruidDataSource
  30. druid:
  31. max-active: 20
  32. initial-size: 1
  33. min-idle: 3
  34. max-wait: 60000
  35. time-between-eviction-runs-millis: 60000
  36. min-evictable-idle-time-millis: 300000
  37. test-while-idle: true
  38. test-on-borrow: false
  39. test-on-return: false
  40. jackson:
  41. date-format: yyyy-MM-dd HH:mm:ss
  42. time-zone: GMT+8
  43. default-property-inclusion: always
  44. meter:
  45. stations: MHS_FDC,NSS_FDC
  46. adapter-url: http://192.168.10.18:8011
  47. sharding-url: http://192.168.10.18:8075
  48. time:
  49. #小于多长时间的故障不计算在内,单位秒
  50. fault-min: 180
  51. #限电跳变,2次限电间隔多长时间认为是同一次限电,单位秒
  52. ration: 180
  53. #小于多长时间的限电不计算在内,单位秒
  54. ration-min: 180
  55. uniformcode:
  56. #8种状态
  57. state8: FJZT8
  58. #桨叶角度
  59. blade-angle: AI082
  60. #功率-有功功率
  61. active-power: AI130
  62. #风速
  63. speed: AI022
  64. uniformcode-boost:
  65. #有功设定限值
  66. active-power-set: BTYGSDXZ
  67. #理论功率
  68. apparent-power: BTLLGL
  69. #实发有功
  70. output-power: BTSFYG
  71. mybatis-plus:
  72. typeAliasesPackage: com.gyee.gaia.meter.entity
  73. mapper-locations: classpath:mappers-postgresql/*.xml
  74. global-config:
  75. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  76. id-type: 3
  77. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  78. field-strategy: 2
  79. #驼峰下划线转换
  80. db-column-underline: true
  81. #mp2.3+ 全局表前缀 mp_
  82. #table-prefix: mp_
  83. #刷新mapper 调试神器
  84. #refresh-mapper: true
  85. #数据库大写下划线转换
  86. #capital-mode: true
  87. # Sequence序列接口实现类配置
  88. key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator
  89. #逻辑删除配置(下面3个配置)
  90. logic-delete-value: 1
  91. logic-not-delete-value: 0
  92. #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  93. #自定义填充策略接口实现
  94. #meta-object-handler: com.baomidou.springboot.MyMetaObjectHandler
  95. configuration:
  96. #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
  97. map-underscore-to-camel-case: true
  98. cache-enabled: false
  99. #配置JdbcTypeForNull, oracle数据库必须配置
  100. jdbc-type-for-null: 'null'
  101. callSettersOnNulls: true
  102. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  103. xxl:
  104. job:
  105. admin:
  106. addresses: http://192.168.10.18:8080/xxl-job-admin
  107. accessToken:
  108. executor:
  109. appname: meter
  110. address:
  111. ip:
  112. port: 9021
  113. logpath: d:/xxl-job/meter/logs
  114. logretentiondays: 30