Initial commit

This commit is contained in:
2023-06-23 19:00:37 +08:00
committed by Yo Vinchen
parent 39a3866312
commit bf21c15274
19 changed files with 492 additions and 83 deletions

View File

@@ -89,7 +89,7 @@ public class JwtHelper {
* @param args
*/
public static void main(String[] args) {
String token = JwtHelper.createToken(1L, "admin");
String token = JwtHelper.createToken(4L, "lisi");
System.out.println(token);
String username = JwtHelper.getUsername(token);
Long userId = JwtHelper.getUserId(token);