application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. hystrix:
  18. threadpool:
  19. default:
  20. coreSize: 500 #并发执行的最大线程数,默认10
  21. command:
  22. paas-file:
  23. execution:
  24. isolation:
  25. thread:
  26. timeoutInMilliseconds: 3600000
  27. default:
  28. execution:
  29. isolation:
  30. thread:
  31. timeoutInMilliseconds: 8000 #命令执行超时时间,默认1000ms
  32. #zuul 默认会代理所有的微服务 路径 /{appliction.name}/**
  33. #zuul:
  34. # ignored-services: '*' ##忽略全部的代理 忽略单个微服务 ignored-services: svr-base 多个逗号分割
  35. # routes:
  36. # svr-base: /v1/base/** ##svr-base方向代理到/base下多层级的路径
  37. # svr-wlyy: /v1/wlyy/**
  38. # api-esb-url:
  39. # path: /job/**
  40. # url: http://192.168.131.131:10030/
  41. # stripPrefix: false ##如果是物理服务器要设置成false
  42. # svr-base: 这种方式和 svr-base: /base/** 一样 svr-base可以随便写 唯一即可
  43. # path: /base/** path是代理后的路径
  44. # serviceId: svr-base serviceId是微服务name
  45. # svr-base: 这种方式和 上面一样 就是serviceId改成具体的url 但是这种配置方法不能利用eurika的负载均衡
  46. # path: /base/**
  47. # url: http://localhost:10020/
  48. #svr-base: 这边是微服务ID 配置负载均衡
  49. # ribbon:
  50. # listOfService: http://localhost:10020/,http://localhost:10021/
  51. ---
  52. spring:
  53. profiles: jwdev
  54. # cloud:
  55. # stream:
  56. # kafka:
  57. # binder:
  58. # brokers: 172.17.110.201
  59. # defaultBrokerPort: 9092
  60. # zkNodes: 172.17.110.201
  61. # defaultZkPort: 2181
  62. # replicationFactor: 1
  63. ---
  64. spring:
  65. profiles: jwtest
  66. ---
  67. spring:
  68. profiles: jwprod