bootstrap.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. server:
  2. port: 8132
  3. spring:
  4. application:
  5. name: realtime-wind
  6. profiles:
  7. # 环境配置
  8. active: nx
  9. cloud:
  10. nacos:
  11. discovery:
  12. # 服务注册地址
  13. server-addr: 192.168.1.66:8848
  14. config:
  15. # 配置中心地址
  16. server-addr: 192.168.1.66: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. dynamic:
  26. primary: master #设置默认的数据源或者数据源组,默认值即为master
  27. strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
  28. datasource:
  29. master:
  30. url: jdbc:postgresql://192.168.1.67:5432/gyee
  31. username: gyee
  32. password: Gyee@2023!@#
  33. driver-class-name: org.postgresql.Driver
  34. type: com.alibaba.druid.pool.DruidDataSource
  35. jsfw:
  36. url: jdbc:TAOS-RS://192.168.1.67:6041/jsfw?charset=UTF-8&locale=en_US.UTF-8&timezone=UTC-8
  37. username: root
  38. password: taosdata
  39. driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
  40. druid:
  41. max-active: 20
  42. initial-size: 1
  43. min-idle: 3
  44. max-wait: 60000
  45. time-between-eviction-runs-millis: 60000
  46. min-evictable-idle-time-millis: 300000
  47. test-while-idle: false
  48. test-on-borrow: false
  49. test-on-return: false
  50. jackson:
  51. date-format: yyyy-MM-dd HH:mm:ss
  52. time-zone: GMT+8
  53. default-property-inclusion: always
  54. meter:
  55. stations: MHS_FDC,NSS_FDC
  56. adapter-url: http://192.168.10.18:8011
  57. sharding-url: http://192.168.10.18:8075
  58. uniformcode-one:
  59. wind-speed: AI022 #风速
  60. active-power: AI130 #功率-有功功率
  61. generator_speed: AI128 #发电机转速
  62. impeller_speed: AI012 #叶轮转速
  63. wind_direction: AI010 #风向
  64. blade_angle: AI085 #桨叶角度
  65. engine_direction: AI034 #机舱方向
  66. wind_deviation: AI036 #对风误差
  67. mybatis-plus:
  68. typeAliasesPackage: com.gyee.gaia.meter.entity
  69. mapper-locations: classpath:mappers-postgresql/*.xml
  70. global-config:
  71. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  72. id-type: 3
  73. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  74. field-strategy: 2
  75. #驼峰下划线转换
  76. db-column-underline: true
  77. #mp2.3+ 全局表前缀 mp_
  78. #table-prefix: mp_
  79. #刷新mapper 调试神器
  80. #refresh-mapper: true
  81. #数据库大写下划线转换
  82. #capital-mode: true
  83. # Sequence序列接口实现类配置
  84. key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator
  85. #逻辑删除配置(下面3个配置)
  86. logic-delete-value: 1
  87. logic-not-delete-value: 0
  88. #sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
  89. #自定义填充策略接口实现
  90. #meta-object-handler: com.baomidou.springboot.MyMetaObjectHandler
  91. configuration:
  92. #配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
  93. map-underscore-to-camel-case: true
  94. cache-enabled: false
  95. #配置JdbcTypeForNull, oracle数据库必须配置
  96. jdbc-type-for-null: 'null'
  97. callSettersOnNulls: true
  98. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  99. xxl:
  100. job:
  101. admin:
  102. addresses: http://192.168.1.67:8080/xxl-job-admin
  103. accessToken:
  104. executor:
  105. appname: ${spring.application.name}
  106. address:
  107. ip:
  108. port: 9132
  109. logpath: c:/xxl-job/meter/logs
  110. logretentiondays: 30
  111. #logging:
  112. # level:
  113. # org.springframework: debug