diff --git a/.gitignore b/.gitignore index 2c4a283..17ed185 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ SpringApp/data.mv.db +SpringApp/library/data.mv.db diff --git a/SpringApp/library/build.gradle b/SpringApp/library/build.gradle index df8ff22..8b9b426 100644 --- a/SpringApp/library/build.gradle +++ b/SpringApp/library/build.gradle @@ -1,6 +1,6 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.2.4' + id 'org.springframework.boot' version '3.3.0' id 'io.spring.dependency-management' version '1.1.4' } diff --git a/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java b/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java index 821c467..feea6f3 100644 --- a/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java +++ b/SpringApp/library/src/main/java/com/ip/library/core/jwt/JwtFilter.java @@ -2,6 +2,7 @@ package com.ip.library.core.jwt; import java.io.IOException; +import org.springframework.lang.NonNull; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolder; @@ -36,9 +37,9 @@ public class JwtFilter extends OncePerRequestFilter { @Override protected void doFilterInternal( - HttpServletRequest request, - HttpServletResponse response, - FilterChain filterChain) throws ServletException, IOException { + @NonNull HttpServletRequest request, + @NonNull HttpServletResponse response, + @NonNull FilterChain filterChain) throws ServletException, IOException { final String token = getTokenFromRequest(request); if (!StringUtils.hasText(token)) { filterChain.doFilter(request, response);