feat(REQ-2924) - Starter 适配无需使用 MQ 的情况
This commit is contained in:
parent
9606589bab
commit
d9b450ca61
@ -17,6 +17,7 @@ import org.slf4j.MDC;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.ObjectFactory;
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
|
||||
import org.springframework.cloud.openfeign.FeignBuilderCustomizer;
|
||||
import org.springframework.cloud.openfeign.support.ResponseEntityDecoder;
|
||||
@ -69,7 +70,7 @@ public class WorkflowEngineStarterFeignConfiguration {
|
||||
@Bean
|
||||
public RequestInterceptor workflowEngineStarterRequestInterceptor(WorkflowEngineStarterProperties starterProperties,
|
||||
Environment environment,
|
||||
String serviceVersion) {
|
||||
@Qualifier("serviceVersion") String serviceVersion) {
|
||||
return template -> {
|
||||
// 接入应用上报
|
||||
template.header(HEADER_SERVER_NAME, environment.getProperty("spring.application.name"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user