application-prod.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. server:
  2. port: 8098
  3. spring:
  4. application:
  5. name: huimv-env-device
  6. datasource:
  7. url: jdbc:mysql://121.36.134.218/huimv-farm-env?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  8. username: hylintech
  9. password: hm123456
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. jpa:
  12. show-sql: true
  13. database: mysql
  14. hibernate:
  15. ddl-auto: update
  16. database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  17. open-in-view: true
  18. #配置rabbitMq 服务器
  19. # rabbitmq:
  20. # host: 10.0.0.4
  21. # port: 5672
  22. # username: huimv
  23. # password: hm123456
  24. # #虚拟host 可以不设置,使用server默认host
  25. # virtual-host: /
  26. rabbitmq:
  27. host: 121.36.134.218
  28. port: 5672
  29. username: admin
  30. password: admin
  31. #虚拟host 可以不设置,使用server默认host
  32. virtual-host: /env
  33. listener:
  34. simple:
  35. acknowledge-mode: none #消费端不需要确认
  36. #确认消息已发送到交换机(Exchange)
  37. publisher-confirm-type: correlated
  38. #确认消息已发送到队列(Queue)
  39. publisher-returns: true
  40. #redis
  41. # redis:
  42. # database: 0
  43. # host: 192.168.1.68
  44. # port: 6379
  45. # password: hm123456
  46. # timeout: 5000ms
  47. # jedis:
  48. # pool:
  49. # max-active: 20
  50. # max-wait: -1
  51. # max-idle: 10
  52. # min-idle: 0
  53. # lettuce:
  54. # pool:
  55. # max-active: 3
  56. # min-idle: 2
  57. # max-idle: 3
  58. # max-wait: 1
  59. # shutdown-timeout: 100
  60. # data:
  61. # redis:
  62. # repositories:
  63. # enabled: false
  64. #是否缓存空值
  65. # cache:
  66. # redis:
  67. # cache-null-values: false
  68. #server:
  69. # port: 9110
  70. #spring:
  71. # application:
  72. # name: huimv-hy-autoGetData
  73. #
  74. # datasource:
  75. ## url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  76. # # url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  77. # url: jdbc:mysql://192.168.1.7:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  78. # username: root
  79. # password: hm123456
  80. # driver-class-name: com.mysql.cj.jdbc.Driver
  81. # jpa:
  82. # properties:
  83. # hibernate:
  84. # enable_lazy_load_no_trans: true
  85. # show-sql: true
  86. # database: mysql
  87. # hibernate:
  88. # ddl-auto: update
  89. # database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  90. # open-in-view: true
  91. management:
  92. endpoints:
  93. web:
  94. exposure:
  95. include: "*" # * 在yaml 文件属于关键字,所以需要加引号
  96. mybatis-plus:
  97. configuration:
  98. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  99. # mapper.xml文件所存放的位置
  100. mapper-locations: classpath*:com/huimv/env/common/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”
  101. wx:
  102. appId: "wx707fcfd7d09e02eb" #小程序appId
  103. secret: "w95K45G9-2xGocleqrtGoHwEGF6ocqSu8EbDBxCQSR0" #小程序密钥
  104. templateId: "f932c54f1cbd427b10218a0d1cfb88bf" #订阅消息模板