on-internet
← Community

Spring Boot - Jwts.builder Cannot resolve method 'signWith()’

Stack Overflow ·

I’ve been following this spring boot + angular tutorial on YouTube that uses spring security and JSON web tokens (JWT) for authenticating a user. However I’ve came to a point in the video where I have an error in my jwtUtil2 class. For some reason whenever I try to run my spring application I get this error: Error:(41, 17) java: no suitable method found for signWith(java.security.PrivateKey) method io.jsonwebtoken.JwtBuilder.signWith(io.jsonwebtoken.SignatureAlgorithm,byte[]) is not applicable (actual and formal argument lists differ in length) method io.jsonwebtoken.JwtBuilder.signWith(io.jso

Comments

Sign in or sign up to comment and upvote.

No comments yet.