代码优化,更新 FeignRequestInterceptor 对 null 的检测,直接使用 `!= null` 代替 `StringUtils.isNotNull`,以免产生歧义

Signed-off-by: hjk2008 <hjk2008ext@163.com>
pull/295/head
hjk2008 3 years ago committed by Gitee
parent 3d2f9aa9c6
commit 477b7472be
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -22,7 +22,7 @@ public class FeignRequestInterceptor implements RequestInterceptor
public void apply(RequestTemplate requestTemplate)
{
HttpServletRequest httpServletRequest = ServletUtils.getRequest();
if (StringUtils.isNotNull(httpServletRequest))
if (httpServletRequest != null)
{
Map<String, String> headers = ServletUtils.getHeaders(httpServletRequest);
// 传递用户信息请求头,防止丢失

Loading…
Cancel
Save