From a21e312244f2d9681efec6134a2265e63e86a5b1 Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Thu, 16 Jan 2025 10:44:08 +0000 Subject: [PATCH] Make sure JWT GenerateToken process exits cleanly --- .../src/test/java/org/acme/security/jwt/GenerateToken.java | 1 + 1 file changed, 1 insertion(+) diff --git a/security-jwt-quickstart/src/test/java/org/acme/security/jwt/GenerateToken.java b/security-jwt-quickstart/src/test/java/org/acme/security/jwt/GenerateToken.java index 6c3832f9a4..5bb446b173 100644 --- a/security-jwt-quickstart/src/test/java/org/acme/security/jwt/GenerateToken.java +++ b/security-jwt-quickstart/src/test/java/org/acme/security/jwt/GenerateToken.java @@ -21,5 +21,6 @@ public static void main(String[] args) { .claim(Claims.birthdate.name(), "2001-07-13") .sign(); System.out.println(token); + System.exit(0); } }