update - 调整 AutoConfiguration 获取版本号的功能
This commit is contained in:
parent
82085e168d
commit
610626f869
@ -16,7 +16,7 @@ public enum OtherRespCode implements IModuleRespCode {
|
|||||||
MES_PUSH_OBJECT_BUILD_ERROR("001", "构建消息推送对象异常"),
|
MES_PUSH_OBJECT_BUILD_ERROR("001", "构建消息推送对象异常"),
|
||||||
REPEAT_SUBMIT_TIME_ERROR_TIPS("002", "重复提交间隔时间不能小于{}秒"),
|
REPEAT_SUBMIT_TIME_ERROR_TIPS("002", "重复提交间隔时间不能小于{}秒"),
|
||||||
REPEAT_SUBMIT_ERROR_TIPS("003", "{}"),
|
REPEAT_SUBMIT_ERROR_TIPS("003", "{}"),
|
||||||
CLIENT_VERSION_SUPPORT("004", "客户端 JAR 包版本不支持,请升级到 {} 版本"),
|
CLIENT_VERSION_SUPPORT("004", "客户端 JAR 包版本不支持,请升级到 {} 版本, 当前版本 {}"),
|
||||||
MICRO_SERVER_NEED_REBUILD("005", "微服务 {} 需要重新编译发布"),
|
MICRO_SERVER_NEED_REBUILD("005", "微服务 {} 需要重新编译发布"),
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ public class RequestHeaderContextInterceptor implements HandlerInterceptor {
|
|||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
log.info("request uri 1 : {}", request.getRequestURI());
|
log.info("request uri 1 : {}", request.getRequestURI());
|
||||||
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion);
|
throw new WorkflowEngineException(CLIENT_VERSION_SUPPORT, serviceVersion, headerClientVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 仅 feignApi 才需要检查版本
|
// 仅 feignApi 才需要检查版本
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user