当前位置: 代码迷 >> 综合 >> ‘api.Result.getData()‘ on a null object reference
  详细解决方案

‘api.Result.getData()‘ on a null object reference

热度:26   发布时间:2024-01-06 07:01:15.0
public interface PostRoute { 
@Headers({"Content-Type: application/json","Accept: application/json"})//需要添加头 
@POST("api/FlyRoute/Add") 
Call<FlyRouteBean  postFlyRoute(@Body RequestBody route);//传入的参数为RequestBody 
} 

  相关解决方案