
http
痴人说梦家
一位痴人说梦家!
展开
-
3种方式实现以HttpPost方式调用接口
第一种:需要httpclient的Maven依赖包 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.5</version> </dependency> 代码: public static String callBgrsjk(String reque原创 2021-01-04 17:18:00 · 3522 阅读 · 1 评论 -
cmd命令解决8080端口被占用
快捷方式 netstat -o -n -a | findstr :8080 taskkill /f /pid 进程ID原创 2020-12-30 09:32:07 · 1319 阅读 · 0 评论 -
Java解析String类型的SOAPXML
最近业务需求,需要Http调用WebService请求接口,其消息格式为SOAP类型的XML,特此记录一下 public class SoapUtil { 13 14 /** 15 * 解析soapXML 16 * @param soapXML 17 * @return 18 */ 19 public static WebserviceResultBean parseSoapMessage(String soapXML) {原创 2020-12-17 11:03:29 · 1665 阅读 · 2 评论