spring security Bcry encryption algorithm to encrypt and password verification,
1, you must import the custom class
2, bcry.encode ( "foreground pass over value")
3, bcry.matches ( "digital database", "front pass over value")
JWT:
1, the successful landing
String token = JwtUtil.createJWT(“id” "name", "");
2, the front desk
{headers:{token:sessionStorage.getItem("token")}}