*autoconfigure.security.oauth2 中 类 的类似物和 Spring Boot 2.1.1.RELEASE 中的 *security.oauth2 是什么?

What are analogs for classes from *autoconfigure.security.oauth2 and *security.oauth2 for Spring Boot 2.1.1.RELEASE?

类 来自 *autoconfigure.security.oauth2 和 *security.oauth2 的 Spring Boot 2.1.1.RELEASE 版本 spring- 的类似物是什么引导启动父级?

他们在这个版本中被删除了。

import org.springframework.boot.autoconfigure.security.oauth2.resource.ResourceServerProperties;
import org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoTokenServices;

import org.springframework.security.oauth2.client.OAuth2ClientContext;
import org.springframework.security.oauth2.client.OAuth2RestTemplate;
import org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter;
import org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter;
import org.springframework.security.oauth2.client.token.grant.code.AuthorizationCodeResourceDetails;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

我认为你缺少的是对 spring-security-oauth2-autoconfigure 的依赖,使你的旧设置在 "seamlessly" 和 Spring Boot 2.1 中工作。1.RELEASE

<dependency>
  <groupId>org.springframework.security.oauth.boot</groupId>
  <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  <version>2.1.1.RELEASE</version>
</dependency>

据说项目是维护模式,推荐的方法是使用 built in Spring Oauth support