startup failure
`@Component public class JwtUtils {
public static final String SECRET = "357638792F423F4428472B4B6250655368566D597133743677397A24xxxxxxx";
public static String extractUsername(String token) {
return JWT.require(algorithm()).build().verify(token).getSubject();
}
private static Algorithm algorithm(){
return Algorithm.HMAC256(SECRET);
}
}`
the failure info
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtUtils': Lookup method resolution failed
...
Caused by: java.lang.ClassNotFoundException: com.auth0.jwt.algorithms.Algorithm
when I remove the @component
` // remove this // @Component public class JwtUtils { public static final String SECRET = "357638792F423F4428472B4B6250655368566D597133743677397A24xxxxxxx";
public static String extractUsername(String token) {
return JWT.require(algorithm()).build().verify(token).getSubject();
}
private static Algorithm algorithm(){
return Algorithm.HMAC256(SECRET);
}
} `