100 (continue) read timeout. Resume sending the request问题
在写项目调用远程服务器接口时候,总是返回
2019-08-21 16:05:02,237 INFO --- [qtp44144317-1195] org.apache.commons.httpclient.HttpMethodBase : 100 (continue) read timeout. Resume sending the request
2019-08-21 16:05:02,294 INFO --- [qtp44144317-1195] org.apache.commons.httpclient.HttpMethodBase : Discarding unexpected response: HTTP/1.1 100 Continue
,虽然能调通,但是很慢很慢。按照[使用XFire调用WebService需注意的事项](https://blog.csdn.net/magister_feng/article/details/7662875 "")这篇文章的方法,
client.setProperty(CommonsHttpMessageSender.HTTP_TIMEOUT, String.valueOf( 20000 ));//设置发送的超时限制,单位是毫秒;
client.setProperty(CommonsHttpMessageSender.DISABLE_KEEP_ALIVE, "true");
client.setProperty(CommonsHttpMessageSender.DISABLE_EXPECT_CONTINUE, "true");
CommonsHttpMessageSender这个类里面为啥没有HTTP_TIMEOUT,DISABLE_EXPECT_CONTINUE这两个字段。。设置不了。。项目用的是springboot依赖都是配好的,我是小白刚编程不久,不知道为啥。。
而且,为啥公司新一批电脑有这个问题,旧电脑运行同样的代码就没问题,我都报警了:( 有没有大佬帮帮我,网上类似问题都是这个解决方法。