首页 > 解决方案 > Spring 中的 spring-security-oauth2 与 spring-security-oauth2-core

问题描述

spring-security-oauth2和spring-security-oauth2-core有什么区别?spring-security-oauth2 是否被 spring-security-oauth2-core 取代?

spring-security-oauth2 发布链接: http ://repo.spring.io/release/org/springframework/security/oauth/spring-security-oauth2/

spring-security-oauth2-core 发布链接 http://repo.spring.io/release/org/springframework/security/spring-security-oauth2-core/

标签: springspring-securityspring-security-oauth2

解决方案


是的,有很大的不同。spring-security-oauth2(Spring Security OAuth 项目)不再被积极开发

展望未来,它将在 Spring Security 5 中实现(在 spring-security-oauth2-core 中)。这很令人困惑,因为许多教程使用以前的 Spring Security OAuth(@EnableResourceServer,@EnableAuthorizationServer@EnableOAuth2Sso注释通常会放弃它)。


推荐阅读