[英]How do I import Spring Security OAuth Authorization Server?
I am trying to build out a security implementation in Java.我正在尝试在 Java 中构建安全实现。
According to the announcement from earlier this month, v0.2.1 of Spring Authorization Server is available.根据本月初的公告,Spring Authorization Server v0.2.1 已经可用。 That page even privides a reference:
该页面甚至提供了参考:
compile 'org.springframework.security:spring-security-oauth2-authorization-server:0.2.1'
Including this in my project (in the dependencies block) – using Netbeans 12.6, Java 17, Gradle 7.3.1 – gives an error.在我的项目中(在依赖项块中)包括这个——使用 Netbeans 12.6、Java 17、Gradle 7.3.1——给出错误。 In the first instance,:
第一个例子,:
Could not find method compile() for arguments
[org.springframework.security:spring-security-oauth2-authorization-server:0.2.1]
on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
On that basis, changing it to to implementation
, the error is then:在此基础上,将其更改为
implementation
,则错误为:
Could not resolve all files for configuration ':testCompileClasspath'.
Could not resolve org.springframework.security:spring-security-oauth2-authorization-server:0.2.1.
What is the trick to including Spring Authorization Server?包含 Spring 授权服务器的技巧是什么?
How do I get this to work?我怎样才能让它工作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.