org.springframework.web.client.HttpClientErrorException $已消失:410已消失:[无主体]

问题描述 投票:0回答:1

[当我将从linkedin获得的访问令牌传递给LinkedinTempelate时,我遇到了以下错误

org.springframework.web.client.HttpClientErrorException$Gone: 410 Gone: [no body]

今年春季社交LinkedinTempelate是否正在工作,或者我在某处出错?下面是代码

public LinkedInProfileFull getLinkedInUserProfile(String accessToken) {
    LinkedIn linkedIn = new LinkedInTemplate(accessToken);
    LinkedInProfileFull linkedInProfilefull = linkedIn.profileOperations().getUserProfileFull();
    return linkedInProfilefull;
}
java spring-boot spring-social spring-social-linkedin
1个回答
0
投票
不再支持Spring Social,所以这就是我收到此错误的原因。最好寻找除spring social之外的其他方法。
© www.soinside.com 2019 - 2024. All rights reserved.