application-demo.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. server:
  2. port: 10011
  3. spring:
  4. application:
  5. name: huimv-eartag2-manage2
  6. datasource:
  7. url: jdbc:mysql://36.133.104.13:3306/huimv-farm-cattle-test?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  8. username: root
  9. password: Admin2023!
  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. #redis
  27. # redis:
  28. # database: 0
  29. # host: 192.168.1.68
  30. # port: 6379
  31. # password: hm123456
  32. # timeout: 5000ms
  33. # jedis:
  34. # pool:
  35. # max-active: 20
  36. # max-wait: -1
  37. # max-idle: 10
  38. # min-idle: 0
  39. # lettuce:
  40. # pool:
  41. # max-active: 3
  42. # min-idle: 2
  43. # max-idle: 3
  44. # max-wait: 1
  45. # shutdown-timeout: 100
  46. # data:
  47. # redis:
  48. # repositories:
  49. # enabled: false
  50. #是否缓存空值
  51. # cache:
  52. # redis:
  53. # cache-null-values: false
  54. #server:
  55. # port: 9110
  56. #spring:
  57. # application:
  58. # name: huimv-hy-autoGetData
  59. #
  60. # datasource:
  61. ## url: jdbc:mysql://47.98.175.112:3306/huimv_ql_farm_haiyan?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  62. # # url: jdbc:mysql://36.22.189.214:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  63. # url: jdbc:mysql://115.238.57.190:3306/huimv_ql_farm?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
  64. # username: root
  65. # password: hm123456
  66. # driver-class-name: com.mysql.cj.jdbc.Driver
  67. # jpa:
  68. # properties:
  69. # hibernate:
  70. # enable_lazy_load_no_trans: true
  71. # show-sql: true
  72. # database: mysql
  73. # hibernate:
  74. # ddl-auto: update
  75. # database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
  76. # open-in-view: true
  77. # rabbitmq:
  78. # host: 121.36.134.218
  79. # port: 5672
  80. # username: admin
  81. # password: admin
  82. # #虚拟host 可以不设置,使用server默认host
  83. # virtual-host: /registration_center
  84. # listener:
  85. # simple:
  86. # acknowledge-mode: none
  87. #
  88. # #redis
  89. # redis:
  90. # database: 0
  91. # host: 122.112.224.199
  92. # port: 6379
  93. # password: hm123456
  94. # timeout: 5000ms
  95. # jedis:
  96. # pool:
  97. # max-active: 20
  98. # max-wait: -1
  99. # max-idle: 10
  100. # min-idle: 0
  101. mybatis-plus:
  102. configuration:
  103. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  104. # mapper.xml文件所存放的位置
  105. mapper-locations: classpath*:com/huimv/cattle/mapper/xml/*.xml # 不加这一行出错:“org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)”