update - 增加日志
This commit is contained in:
parent
49b6cb7b06
commit
89aac2fadb
@ -7,7 +7,6 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.util.StringUtils;
|
|
||||||
import org.springframework.web.servlet.HandlerInterceptor;
|
import org.springframework.web.servlet.HandlerInterceptor;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@ -50,12 +49,12 @@ public class RequestHeaderContextInterceptor implements HandlerInterceptor {
|
|||||||
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
|
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 仅 feignApi 才需要检查版本
|
// // 仅 feignApi 才需要检查版本
|
||||||
if (!request.getRequestURI().contains("/web/") && !request.getRequestURI().contains("checkDeath")
|
// if (!request.getRequestURI().contains("/web/") && !request.getRequestURI().contains("checkDeath")
|
||||||
&& !StringUtils.hasText(request.getHeader(HEADER_HTTP_CLIENT))) {
|
// && !StringUtils.hasText(request.getHeader(HEADER_HTTP_CLIENT))) {
|
||||||
log.info("request uri 2 : {}", request.getRequestURI());
|
// log.info("request uri 2 : {}", request.getRequestURI());
|
||||||
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
|
// throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
|
||||||
}
|
// }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user