Android/Technic

Retrofit2에서 POST로 값 태울 때 parameters can only be used with form encoding에러

등촌동 꼬북이 2022. 5. 9. 16:22

Retrofit2에서 POST로 값 태울 때 parameters can only be used with form encoding에러가 발생한다면

 

아래와 같이 @FormUrlEncoded를 붙여준다.

 

@FormUrlEncoded
@POST("testsetset")
Call<tsetest> tetete