创建名称为 'jwtDecoderByJwkKeySetUri' 的 bean 在 class 路径资源中定义时出错
Error creating bean with name 'jwtDecoderByJwkKeySetUri' defined in class path resource
我在尝试 运行 ResourceServer 时遇到此错误,它抱怨:http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs 因为它没有协议
Error creating bean with name 'jwtDecoderByJwkKeySetUri' defined in
class path resource
[org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerJwtConfiguration$JwtDecoderConfiguration.class]:
Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to
instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]:
Factory method 'jwtDecoderByJwkKeySetUri' threw exception; nested
exception is java.lang.IllegalArgumentException: Invalid JWK Set URL
"=
http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs"
: no protocol: =
http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs
知道我是怎么克服这个错误的。
proprieties 文件中 url 之前有一个额外的“=”导致错误。通过修改它我有我的程序 运行.
我在尝试 运行 ResourceServer 时遇到此错误,它抱怨:http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs 因为它没有协议
Error creating bean with name 'jwtDecoderByJwkKeySetUri' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerJwtConfiguration$JwtDecoderConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.jwt.JwtDecoder]: Factory method 'jwtDecoderByJwkKeySetUri' threw exception; nested exception is java.lang.IllegalArgumentException: Invalid JWK Set URL "= http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs" : no protocol: = http://localhost:8080/auth/realms/xxxnapp/protocol/openid-connect/certs
知道我是怎么克服这个错误的。
proprieties 文件中 url 之前有一个额外的“=”导致错误。通过修改它我有我的程序 运行.