问题描述
【Java错误解决方案】在使用JWT的时候出现io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtBuilder] from the thread context… Have you remembered to include the jjwt-impl.jar in your runtime classpath?和io.jsonwebtoken.security.WeakKeyExceptionCreate breakpoint : The signing key’s size is 56 bits which is not secure enough for the HS256 algorithm. The JWT JWA Specification (RFC 7518,Section 3.2) states that keys used with HS256 MUST have a size>= 256 bits (the key size must be greater than or equal to the hash output size)的问题,如下图