1.調取對方的接口,對象自動轉型成LinkedHashMap,直接用類型強會拋cast.Exception,解決方案 先序列化對象,再反序列化接受對象。
2.調取對方接口返回Long類型的值,我放直接使用Long接報Integer cast to Long異常,解決方案:使用Integer接並.longValue獲取Long值。
3.調取對方Get請求,我方也指定get請求,對方報POST requset cannot support,解決方案:我方調get請求的參數前加@requsetParam