| | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | @Component |
| | |
| | | JSONObject objBody = JSONObject.parseObject(strRes.getBody()); |
| | | // 结果集 |
| | | return recordSet(objBody); |
| | | } |
| | | |
| | | public byte[] postStream(String postUrl, Map<String, Object> postParams) { |
| | | // 发起通信 |
| | | ResponseEntity<byte[]> resourceRes = HttpUtil.get(postUrl, postParams, new HttpHeaders(), byte[].class); |
| | | // 结果集 |
| | | return resourceRes.getBody(); |
| | | } |
| | | |
| | | private Object recordSet(JSONObject objBody) { |