[ADD] SWAGGER 수정

main
bjkim 10 months ago
parent 9298290e7e
commit 541bbe0f5c

@ -87,7 +87,7 @@ public class JwtUtils {
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
log.error("JWT claims string is empty: {}", e.getMessage()); log.error("JWT claims string is empty: {}", e.getMessage());
} }
log.warn(authToken+" is invalid");
return false; return false;
} }
@ -108,18 +108,18 @@ public class JwtUtils {
.build(); .build();
} }
// private String getCookieValueByName(HttpServletRequest request, String name) { private String getCookieValueByName(HttpServletRequest request, String name) {
// Cookie cookie = WebUtils.getCookie(request, name); Cookie cookie = WebUtils.getCookie(request, name);
// return cookie != null ? cookie.getValue() : null; return cookie != null ? cookie.getValue() : null;
// } }
private String getCookieValueByName(HttpServletRequest request, String name) { // private String getCookieValueByName(HttpServletRequest request, String name) {
Cookie cookie = WebUtils.getCookie(request, name); // Cookie cookie = WebUtils.getCookie(request, name);
if (cookie == null) { // if (cookie == null) {
System.out.println("Cookie with name '" + name + "' not found"); // System.out.println("Cookie with name '" + name + "' not found");
return null; // return null;
} // }
System.out.println("Found cookie: " + cookie.getName() + " = " + cookie.getValue()); // System.out.println("Found cookie: " + cookie.getName() + " = " + cookie.getValue());
return cookie.getValue(); // return cookie.getValue();
} // }
} }

@ -22,8 +22,8 @@ cuuva.app.jwtRefreshCookieName=cuuva-jwt-refresh
cuuva.app.jwtSecret= 275511b31c520562d69802ce4a913773102563891563a24062f44b3f312ca2bd034440e81836d1b4ccf4195f43db4c81a4e489a41f1ae0967afe468c9a361f4d cuuva.app.jwtSecret= 275511b31c520562d69802ce4a913773102563891563a24062f44b3f312ca2bd034440e81836d1b4ccf4195f43db4c81a4e489a41f1ae0967afe468c9a361f4d
## For test ## For test
cuuva.app.jwtExpirationMs= 60000 cuuva.app.jwtExpirationMs= 900000
cuuva.app.jwtRefreshExpirationMs= 180000 cuuva.app.jwtRefreshExpirationMs= 86400000
# SQL ?? ?? # SQL ?? ??
spring.jpa.show-sql=true spring.jpa.show-sql=true

Loading…
Cancel
Save