【发布时间】:2022-01-05 02:59:15
【问题描述】:
我正在尝试理解 Spring Authorization Server。
按照各种教程和原始文档,几乎是配置依赖项后的第一步 -
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-oauth2-authorization-server:0.2.1'
// other db/test stuff
}
——就是在主类中添加@EnableAuthorizationServer注解。
除了我的 IDE (NetBeans) 没有任何线索,从导入中,它指的是什么。
那么:@EnableAuthorizationServer 的导入路径应该是什么? (而且,从逻辑上讲,是否需要其他一些依赖项才能识别它?)
【问题讨论】:
-
@EnableAuthorizationServer已弃用,并且在您包含的任何依赖项中均不可用。
标签: java spring spring-security oauth