-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问如何设置请求的超时时间呢 #63
Comments
作者在readme中都写了。 |
如果只是配置超时时间,设置@RetrofitClient的相关属性就可以了 |
你可能没看清楚我用的版本,我用的版本没有这个注解 |
请问在2.0.2这个版本该怎么设置超时时间呢,我尝试了给okhttp设置超时时间但是并没有用 |
给我提供的接口太垃圾了,要18秒才能请求完数据,我说用队列同步数据就是了,这些人死活不用,非要直接请求接口同步数据 |
问题补充,我这里目前springboot使用2.1.3.RELEASE,retrofit-spring-boot-starter 2.0.2,项目组要求不能换boot版本,我尝试了其他retrofit-spring-boot-starter版本但是启动项目会报错,而目前使用的retrofit-spring-boot-starter 2.0.2没有@OkHttpClientBuilder这个注解 |
2.0.2 |
谢谢,非常感谢,看了一下有个readTimeoutMs属性,设置后就好使了! |
retrofit-spring-boot-starter 2.0.2,有一个同步接口超时了,是数据太多造成的超时,想要增加超时时间
The text was updated successfully, but these errors were encountered: