Java 创建名为';jwtDecoderByJwkKeySetUri';在类路径资源中定义

Java 创建名为';jwtDecoderByJwkKeySetUri';在类路径资源中定义,java,spring,spring-boot,spring-security,spring-security-oauth2,Java,Spring,Spring Boot,Spring Security,Spring Security Oauth2,我在尝试运行ResourceServer时出现此错误,它抱怨:http://localhost:8080/auth/realms/xxxnapp/protocol/openid-连接/证书,因为它没有协议 创建在中定义了名为“jwtDecoderByJwkKeySetUri”的bean时出错 类路径资源 [org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerJwtC

我在尝试运行ResourceServer时出现此错误,它抱怨:http://localhost:8080/auth/realms/xxxnapp/protocol/openid-连接/证书,因为它没有协议

创建在中定义了名为“jwtDecoderByJwkKeySetUri”的bean时出错 类路径资源 [org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerJwtConfiguration$JwtDecoderConfiguration.class]: 通过工厂方法实例化Bean失败;嵌套异常是 org.springframework.beans.BeanInstantiationException:未能 实例化[org.springframework.security.oauth2.jwt.JwtDecoder]: 工厂方法“jwtDecoderByJwkKeySetUri”引发异常;嵌套 异常为java.lang.IllegalArgumentException:无效的JWK集URL "= http://localhost:8080/auth/realms/xxxnapp/protocol/openid-连接/证书“ :无协议:= http://localhost:8080/auth/realms/xxxnapp/protocol/openid-连接/证书


你知道我是如何克服这个错误的吗。

在properties文件的url前面还有一个“=”导致了这个错误。通过修改它,我让程序运行。

看起来你的URL开头有一个额外的“=”。能否将application.properties文件添加到问题中?