• <bdo id='K5Z7v'></bdo><ul id='K5Z7v'></ul>
    <i id='K5Z7v'><tr id='K5Z7v'><dt id='K5Z7v'><q id='K5Z7v'><span id='K5Z7v'><b id='K5Z7v'><form id='K5Z7v'><ins id='K5Z7v'></ins><ul id='K5Z7v'></ul><sub id='K5Z7v'></sub></form><legend id='K5Z7v'></legend><bdo id='K5Z7v'><pre id='K5Z7v'><center id='K5Z7v'></center></pre></bdo></b><th id='K5Z7v'></th></span></q></dt></tr></i><div id='K5Z7v'><tfoot id='K5Z7v'></tfoot><dl id='K5Z7v'><fieldset id='K5Z7v'></fieldset></dl></div>

    1. <legend id='K5Z7v'><style id='K5Z7v'><dir id='K5Z7v'><q id='K5Z7v'></q></dir></style></legend>

      <small id='K5Z7v'></small><noframes id='K5Z7v'>

      <tfoot id='K5Z7v'></tfoot>

        FeignClient超时如何解决

        How to solve Timeout FeignClient(FeignClient超时如何解决)

          <legend id='o6C19'><style id='o6C19'><dir id='o6C19'><q id='o6C19'></q></dir></style></legend>

          <tfoot id='o6C19'></tfoot>
            • <i id='o6C19'><tr id='o6C19'><dt id='o6C19'><q id='o6C19'><span id='o6C19'><b id='o6C19'><form id='o6C19'><ins id='o6C19'></ins><ul id='o6C19'></ul><sub id='o6C19'></sub></form><legend id='o6C19'></legend><bdo id='o6C19'><pre id='o6C19'><center id='o6C19'></center></pre></bdo></b><th id='o6C19'></th></span></q></dt></tr></i><div id='o6C19'><tfoot id='o6C19'></tfoot><dl id='o6C19'><fieldset id='o6C19'></fieldset></dl></div>
                  <bdo id='o6C19'></bdo><ul id='o6C19'></ul>

                  <small id='o6C19'></small><noframes id='o6C19'>

                    <tbody id='o6C19'></tbody>
                  本文介绍了FeignClient超时如何解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在使用使用 FeignClient 在 SQL Server 中执行查询的服务时,我的应用程序出现以下错误.

                  My application is getting below error when consuming a service that performs queries in SQL Server using FeignClient.

                  错误:

                  线程pool-10-thread-14"中的异常 feign.RetryableException:读取执行 GET 超时http://127.0.0.1:8876/processoData/搜索/buscaProcessoPorCliente?cliente=ELEKTRO++-+TRABALHISTA&estado=SP

                  Exception in thread "pool-10-thread-14" feign.RetryableException: Read timed out executing GET http://127.0.0.1:8876/processoData/search/buscaProcessoPorCliente?cliente=ELEKTRO+-+TRABALHISTA&estado=SP

                  我的消费者服务:

                  @FeignClient(url="http://127.0.0.1:8876")
                  public interface ProcessoConsumer {
                  
                  @RequestMapping(method = RequestMethod.GET, value = "/processoData/search/buscaProcessoPorCliente?cliente={cliente}&estado={estado}")
                  public PagedResources<ProcessoDTO> buscaProcessoClienteEstado(@PathVariable("cliente") String cliente, @PathVariable("estado") String estado);
                  
                  }
                  

                  我的 YML:

                  server:
                    port: 8874
                  
                  endpoints:
                    restart:
                      enabled: true
                    shutdown:
                      enabled: true
                    health:
                      sensitive: false
                  
                  eureka:
                    client:
                    serviceUrl:
                      defaultZone: ${vcap.services.eureka-service.credentials.uri:http://xxx.xx.xxx.xx:8764}/eureka/
                    instance: 
                      preferIpAddress: true
                  
                  ribbon:
                    eureka:
                      enabled: true
                  
                  spring:
                    application:
                      name: MyApplication
                    data:
                      mongodb:
                        host: xxx.xx.xxx.xx
                        port: 27017
                        uri: mongodb://xxx.xx.xxx.xx/recortesExtrator
                        repositories.enabled: true
                      solr:
                        host: http://xxx.xx.xxx.xx:8983/solr
                        repositories.enabled: true
                  

                  有人知道怎么解决吗?

                  谢谢.

                  推荐答案

                  将以下属性添加到 application.properties 文件中,以毫秒为单位.

                  Add the following properties into application.properties file, in milliseconds.

                  feign.client.config.default.connectTimeout=160000000
                  feign.client.config.default.readTimeout=160000000
                  

                  这篇关于FeignClient超时如何解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                • <legend id='FRFjJ'><style id='FRFjJ'><dir id='FRFjJ'><q id='FRFjJ'></q></dir></style></legend>
                    <bdo id='FRFjJ'></bdo><ul id='FRFjJ'></ul>
                      <tbody id='FRFjJ'></tbody>
                            <tfoot id='FRFjJ'></tfoot>

                            <small id='FRFjJ'></small><noframes id='FRFjJ'>

                          1. <i id='FRFjJ'><tr id='FRFjJ'><dt id='FRFjJ'><q id='FRFjJ'><span id='FRFjJ'><b id='FRFjJ'><form id='FRFjJ'><ins id='FRFjJ'></ins><ul id='FRFjJ'></ul><sub id='FRFjJ'></sub></form><legend id='FRFjJ'></legend><bdo id='FRFjJ'><pre id='FRFjJ'><center id='FRFjJ'></center></pre></bdo></b><th id='FRFjJ'></th></span></q></dt></tr></i><div id='FRFjJ'><tfoot id='FRFjJ'></tfoot><dl id='FRFjJ'><fieldset id='FRFjJ'></fieldset></dl></div>