# demo-http **Repository Path**: hatakefiftyfifty/demo-http ## Basic Information - **Project Name**: demo-http - **Description**: 封装get请求的RestTemplate,使用openFeigh替换RestTemplate,使用Spring Retry。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-05-14 - **Last Updated**: 2025-02-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 1. 总结使用restTemplate的方式进行get/post请求,包括: 1. get带请求头 [ok] 2. get使用查询参数 [ok] 3. get使用路径参数 4. post带请求头 [ok] 5. post使用表单方式请求 [ok] 6. post使用json方式请求 [ok] 7. 实现包括超时时间,默认超时时间,重试次数/默认重试次数/是否重试 [ok] 2. 使用openfeign的方式实现上面第一点功能 掌握: 1. openFeign底层默认使用是哪种http客户端工具? 2. 如何实现重试功能?[Retryer默认不支持,需要重新配置] 3. 访问异常之后如何处理?[需要引入第三方组件] 4. 超时配置如何实现?[ok] 5. 可以参数他人博客:https://blog.csdn.net/qq_32048567/article/details/123318906 6. 3. 使用spring retry实现包括超时时间,默认超时时间,重试次数/默认重试次数/是否重试的功能