Java Community | Help. Code. Learn.JC|HCL
Java Community | Help. Code. Learn.โ€ข14mo agoโ€ข
60 replies
Victor

Spring security failing to convert String to RSA keys

getting the following error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'privateKey': Failed to convert value of type 'java.lang.String' to required type 'java.security.interfaces.RSAPrivateKey'; Failed to convert from type [java.lang.String] to type [@org.springframework.beans.factory.annotation.Value java.security.interfaces.RSAPrivateKey] for value [${jwt.private.key]

not sure what to do and havent been able to find much on this, anyone have any idea? thanks
Was this page helpful?