update - 调整服务启动时, 获取版本号异常的问题
This commit is contained in:
parent
718c0cc62d
commit
2c01d79ac6
@ -2,6 +2,7 @@ package cn.axzo.workflow.server.common.interceptor;
|
||||
|
||||
import cn.axzo.workflow.core.repository.entity.ExtAxProperty;
|
||||
import cn.axzo.workflow.core.service.ExtAxPropertyService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.maven.artifact.versioning.DefaultArtifactVersion;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
@ -20,6 +21,7 @@ import static cn.axzo.workflow.client.config.FeignRequestInterceptor.HEADER_SERV
|
||||
* @since 2024/2/4 15:48
|
||||
*/
|
||||
@Component
|
||||
@Slf4j
|
||||
public class RequestHeaderContextInterceptor implements HandlerInterceptor {
|
||||
@Autowired
|
||||
private String serviceVersion;
|
||||
@ -28,6 +30,7 @@ public class RequestHeaderContextInterceptor implements HandlerInterceptor {
|
||||
|
||||
@Override
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
||||
log.info("request uri : {}", request.getRequestURI());
|
||||
// if (Objects.equals(HEADER_HTTP_CLIENT_VALUE, request.getHeader(HEADER_HTTP_CLIENT))) {
|
||||
// String headerClientVersion = request.getHeader(HEADER_API_VERSION);
|
||||
// DefaultArtifactVersion clientVersion = new DefaultArtifactVersion(headerClientVersion);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user