1. Here’s how we use it in Java code, because when we look at it later, it’s probably more about using it than understanding it in detail.

    1. Guide package:
    2. Copy the JwtUtil utility class directly:
    3. Write configuration in the configuration file of the module you want to use:
    4. In the startup class of the module to be used, inject the JwtUtil utility class into the container of the module to be used:
    5. Inject into the class to use:
    6. Use:
  2. Detailed test steps:

    1. Guide package:
    2. Create a token:
    3. Parsed token:
    4. Set the token expiration time:PS: Note that if the expiration time is set, exception handling must be performed during parsing. Otherwise, an error will be reported when the expiration time expires
    5. Custom attributes:Resolution: