Get String response body from retrofit2

后端 未结 3 1675
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 16:57

I am using retrofit1 old style

@GET(\"/loginUser\")
    public Call login(
            @Query(\"email\") String email,
            @Query(\"         


        
3条回答
  •  -上瘾入骨i
    2021-01-06 17:27

            Retrofit retrofit = new Retrofit.Builder()
                    .baseUrl(API_BASE_URL)
                    .client(getClient())
                    .addConverterFactory(ScalarsConverterFactory.create())
                    .addConverterFactory(GsonConverterFactory.create())
                    .build();
    

    ScalarsConverterFactory above GsonConverterFactory

提交回复
热议问题