fux some warnings
This commit is contained in:
parent
fcab46dccc
commit
dabe92ea0a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
SpringApp/data.mv.db
|
||||
SpringApp/library/data.mv.db
|
||||
|
@ -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'
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user