application.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主
  2. spring:
  3. application:
  4. name: web-gateway #注册到发现服务的id 如果id一样 eurika会自动做负载
  5. http:
  6. multipart:
  7. enabled: true
  8. max-file-size: 500MB
  9. max-request-size: 500MB
  10. ##开启feign断路器
  11. feign:
  12. hystrix:
  13. enabled: true
  14. management:
  15. security:
  16. enabled: false #关闭 refresh的权限认证
  17. #zuul 默认会代理所有的微服务 路径 /{appliction.name}/**
  18. #zuul:
  19. # ignored-services: '*' ##忽略全部的代理 忽略单个微服务 ignored-services: svr-base 多个逗号分割
  20. # routes:
  21. # svr-base: /v1/base/** ##svr-base方向代理到/base下多层级的路径
  22. # svr-wlyy: /v1/wlyy/**
  23. # api-esb-url:
  24. # path: /job/**
  25. # url: http://192.168.131.131:10030/
  26. # stripPrefix: false ##如果是物理服务器要设置成false
  27. # svr-base: 这种方式和 svr-base: /base/** 一样 svr-base可以随便写 唯一即可
  28. # path: /base/** path是代理后的路径
  29. # serviceId: svr-base serviceId是微服务name
  30. # svr-base: 这种方式和 上面一样 就是serviceId改成具体的url 但是这种配置方法不能利用eurika的负载均衡
  31. # path: /base/**
  32. # url: http://localhost:10020/
  33. #svr-base: 这边是微服务ID 配置负载均衡
  34. # ribbon:
  35. # listOfService: http://localhost:10020/,http://localhost:10021/
  36. ---
  37. spring:
  38. profiles: jwdev
  39. # cloud:
  40. # stream:
  41. # kafka:
  42. # binder:
  43. # brokers: 172.17.110.201
  44. # defaultBrokerPort: 9092
  45. # zkNodes: 172.17.110.201
  46. # defaultZkPort: 2181
  47. # replicationFactor: 1
  48. ---
  49. spring:
  50. profiles: jwtest
  51. ---
  52. spring:
  53. profiles: jwprod