在客户端如何配置 jwtTokenServices。版本是官方最最新的
来源:6-11 基于JWT实现SSO单点登录2

煮剑_焚酒
2019-01-31
Error creating bean with name ‘jwtTokenServices’ defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]:Unsatisfieddependencyexpressedthroughmethod′jwtTokenServices′parameter0;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′jwtTokenStore′definedinclasspathresource[org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]: Unsatisfied dependency expressed through method 'jwtTokenServices' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenStore' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]:Unsatisfieddependencyexpressedthroughmethod′jwtTokenServices′parameter0;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′jwtTokenStore′definedinclasspathresource[org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.TokenStore]: Factory method ‘jwtTokenStore’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jwtTokenEnhancer’ defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfiguration$JwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method ‘jwtTokenEnhancer’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/jwt/crypto/sign/MacSigner
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jwtTokenStore’ defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.security.oauth2.provider.token.TokenStore]:Factorymethod′jwtTokenStore′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′jwtTokenEnhancer′definedinclasspathresource[org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.TokenStore]: Factory method 'jwtTokenStore' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtTokenEnhancer' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.security.oauth2.provider.token.TokenStore]:Factorymethod′jwtTokenStore′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′jwtTokenEnhancer′definedinclasspathresource[org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationJwtTokenServicesConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter]: Factory method ‘jwtTokenEnhancer’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/jwt/crypto/sign/MacSigner
1回答
-
JoJo
2019-02-25
最新的版本api已经有调整了,我没有研究过,抱歉,只能自己研究下了...
00
Spring Security技术栈开发企业级认证与授权
2662 学习 · 1561 问题
相似问题