在 自定义jwt过滤器中,有这么一段代码:
UsernamePasswordAuthenticationToken authenticationToken =
new UsernamePasswordAuthenticationToken(userDetails,null,userDetails.getAuthorities());
authenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
SecurityContextHolder.getContext().setAuthentication(authenticationToken);
其中“authenticationToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));” 是什么意思,不写会有什么后果