justauth / JustAuth

🏆Gitee 最有价值开源项目 🚀:100: 小而全而美的第三方登录开源组件。目前已支持Github、Gitee、微博、钉钉、百度、Coding、腾讯云开发者平台、OSChina、支付宝、QQ、微信、淘宝、Google、Facebook、抖音、领英、小米、微软、今日头条、Teambition、StackOverflow、Pinterest、人人、华为、企业微信、酷家乐、Gitlab、美团、饿了么、推特、飞书、京东、阿里云、喜马拉雅、Amazon、Slack和 Line 等第三方平台的授权登录。 Login, so easy!
https://www.justauth.cn
MIT License
16.43k stars 2.76k forks source link

bug:okhttp3引用后调用报错 #145

Closed gang0713 closed 2 years ago

gang0713 commented 2 years ago

使用okhttps-3.4.2 +okhttp-3.14.9和4.9.3都报一样的错误

Caused by: java.lang.NoSuchMethodError: okhttp3.RequestBody.create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody; at com.xkcoding.http.support.okhttp3.OkHttp3Impl.post(OkHttp3Impl.java:177) at com.xkcoding.http.support.okhttp3.OkHttp3Impl.post(OkHttp3Impl.java:161) at com.xkcoding.http.support.okhttp3.OkHttp3Impl.post(OkHttp3Impl.java:149) at com.xkcoding.http.HttpUtil.post(HttpUtil.java:141) at me.zhyd.oauth.utils.HttpUtils.post(HttpUtils.java:55) at me.zhyd.oauth.request.AuthDouyinRequest.getToken(AuthDouyinRequest.java:90) at me.zhyd.oauth.request.AuthDouyinRequest.getAccessToken(AuthDouyinRequest.java:38) at me.zhyd.oauth.request.AuthDefaultRequest.login(AuthDefaultRequest.java:80) at com.ruoyi.web.controller.system.SysAuthController.login(SysAuthController.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)

wmhxx commented 1 year ago

image 这样试试