IntelliJ 无法从 org.springframework.security.oauth2.core.ClientAuthenticationMethod 解析符号核心
IntelliJ is unable to resolve symbol core from org.springframework.security.oauth2.core.ClientAuthenticationMethod
我正在关注此 guide 以使用 Google 在我的 Spring 引导应用程序上实施身份验证。 IntelliJ 无法识别来自 org.springframework.security 的核心并且报告无法解析符号 'core'。
我已经为 oauth2-core 添加了最新版本的依赖:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-core</artifactId>
<version>5.1.0.RELEASE</version>
</dependency>
我要添加的class如下:
public class ClientRegistration {
private String registrationId;
private String clientId;
private String clientSecret;
private ClientAuthenticationMethod clientAuthenticationMethod;
private AuthorizationGrantType authorizationGrantType;
private String redirectUriTemplate;
private Set<String> scopes;
private ProviderDetails providerDetails;
private String clientName;
}
ClientAuthenticationMethod 和 AuthorizationGrantType 将从我的项目目前无法加载的核心库中导入。
可能的原因是什么?
我正在使用 Spring Boot 2.0.4.
好吧,在我使缓存无效并重新启动 IntelliJ 后错误消失了。
我正在关注此 guide 以使用 Google 在我的 Spring 引导应用程序上实施身份验证。 IntelliJ 无法识别来自 org.springframework.security 的核心并且报告无法解析符号 'core'。
我已经为 oauth2-core 添加了最新版本的依赖:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-core</artifactId>
<version>5.1.0.RELEASE</version>
</dependency>
我要添加的class如下:
public class ClientRegistration {
private String registrationId;
private String clientId;
private String clientSecret;
private ClientAuthenticationMethod clientAuthenticationMethod;
private AuthorizationGrantType authorizationGrantType;
private String redirectUriTemplate;
private Set<String> scopes;
private ProviderDetails providerDetails;
private String clientName;
}
ClientAuthenticationMethod 和 AuthorizationGrantType 将从我的项目目前无法加载的核心库中导入。
可能的原因是什么? 我正在使用 Spring Boot 2.0.4.
好吧,在我使缓存无效并重新启动 IntelliJ 后错误消失了。