@Field parameters can only be used with form encoding

需要添加@FormUrlEncoded两个需要结合使用,否则会报错,且只能在POST方法使用

@Query请求参数。无论是GET或POST的参数都可以用它来实现。

猜你喜欢

转载自blog.csdn.net/qq_41264674/article/details/130339753
今日推荐