https://blog.csdn.net/mr_zengkun/article/details/80967774
原因:Content-Type 没设置对
修改:
postMethod.addRequestHeader("Content-Type", "application/json");
改成
postMethod.addRequestHeader("Content-Type", "application/x-www-form-urlencoded");
https://blog.csdn.net/mr_zengkun/article/details/80967774
原因:Content-Type 没设置对
修改:
postMethod.addRequestHeader("Content-Type", "application/json");
改成
postMethod.addRequestHeader("Content-Type", "application/x-www-form-urlencoded");