-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve method 'create' in 'RequestBody' #37
Comments
求解决 |
有人帮忙解决下嘛 |
已解决,知悉看了引入的依赖,发现RequestBody引错了 |
package com.example.demo.provider; import com.alibaba.fastjson.JSON; import java.io.IOException; 删掉import org.springframework.web.bind.annotation.RequestBody; 归总: |
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(accessTokenDTO));
Request request = new Request.Builder()
.url("https://github.com/login/oauth/access_token")
.post((okhttp3.RequestBody) body)
.build();
create方法报错,如何解决啊?卡在这里了
The text was updated successfully, but these errors were encountered: