bootstrap.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. spring:
  2. application:
  3. name: szwl-server
  4. cloud:
  5. config:
  6. name: szwl-server
  7. discovery:
  8. service-id: config-server
  9. # 是否获取配置中心配置
  10. enabled: false
  11. datasource:
  12. url: jdbc:mysql://rm-wz995mu26a1479kz0so.mysql.rds.aliyuncs.com:3306/szwl
  13. username: root
  14. password: sunzee@020
  15. driver-class-name: com.mysql.jdbc.Driver
  16. # stream:
  17. # # 如果你项目里只对接一个中间件,那么不用定义binders
  18. # # 当系统要定义多个不同消息中间件的时候,使用binders定义
  19. # binders:
  20. # my-rabbit:
  21. # type: rabbit
  22. # environment:
  23. # spring:
  24. # rabbitmq:
  25. # addresses: 112.74.63.148:5672,120.78.140.173:5672,47.112.127.131:5672
  26. # username: zwlzwlzwl
  27. # password: 123456
  28. # virtual-host: /
  29. # publisher-confirms: true
  30. # connection-timeout: 5s
  31. # mandatory: true
  32. # template.mandatory: true
  33. # publisher-returns: true
  34. # cache.channel.size: 1000
  35. # concurrency: 500
  36. # max-concurrency: 2000
  37. # listener.simple.concurrency: 1000
  38. # listener.simple.max-concurrency: 2000
  39. #spring:
  40. rabbitmq:
  41. addresses: 112.74.63.148:5672,120.78.140.173:5672,47.112.127.131:5672
  42. username: zwlzwlzwl
  43. password: 123456
  44. virtual-host: /
  45. # publisher-confirms: true
  46. connection-timeout: 5s
  47. mandatory: true
  48. template.mandatory: true
  49. publisher-returns: true
  50. cache.channel.size: 1000
  51. concurrency: 500
  52. max-concurrency: 2000
  53. listener.simple.concurrency: 1000
  54. listener.simple.max-concurrency: 2000
  55. elasticSearch:
  56. host: 120.78.140.173
  57. #elasticSearch.host: 10.0.0.155
  58. port: 9200
  59. client.connectNum: 1000
  60. connectPerRoute: 50
  61. client.esUserName: elastic
  62. client.esPassword: sunzee@020
  63. server:
  64. port: 49011
  65. management:
  66. endpoints:
  67. web:
  68. exposure:
  69. include: refresh
  70. eureka:
  71. client:
  72. service-url:
  73. defaultZone: http://112.74.63.148:49001/eureka/
  74. register-with-eureka: true
  75. instance:
  76. prefer-ip-address: true
  77. # ip-address: 10.241.20.241
  78. mybatis-plus:
  79. mapper-locations: classpath:com/szwl/mapper/xml/*.xml
  80. logging:
  81. level:
  82. com.szwl: debug