The sword refers to the Java self-developed framework #, win the Spring source code
v: ititit111222333
// Encapsulate the key
String verCode = RandomUtils.getCode(JwtUtils.TOKEN_JWT_SECRET_COUNT);
String secret = jti + verCode;
String refreshToken = JwtUtils.createRefreshToken(info, date, secret);
accountToken.setRefreshToken(new DefaultOAuth2RefreshToken(refreshToken));
Copy the code