升级到Spring Boot 2时缺少EnableOAuth2Sso批注 [英] EnableOAuth2Sso Annotation Missing On Upgrade To Spring Boot 2

查看:617
本文介绍了升级到Spring Boot 2时缺少EnableOAuth2Sso批注的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从较早版本升级到Spring Boot 2.0.0时,似乎已删除了spring-boot-autoconfigure库中的@ EnableOAuth2Sso批注.迁移指南和发行说明尚不清楚应使用什么或它可能移到了什么地方.

When upgrading to spring boot 2.0.0 from an earlier version, it appears that the @EnableOAuth2Sso annotation from the spring-boot-autoconfigure library has been removed. The migration guide and release notes are unclear as to what to use instead, or where it might have moved.

推荐答案

春季启动时已存在GitHub问题,最终导致我在2.0.0版本中找到了注释的位置.它已移至一个2.0.0发行工件全新的项目中.

After discussions in an existing GitHub issue on spring boot, I was eventually led to the annotation's location in the 2.0.0 release. It has been moved to a project completely new to the 2.0.0 release artifacts.

要解决此问题并迁移项目,请添加工件 org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure 到您的依赖项管理配置.

To resolve this issue and migrate your project, add the artifact org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure to your dependency management configuration.

这篇关于升级到Spring Boot 2时缺少EnableOAuth2Sso批注的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆