feat(REQ-2924) - Starter 适配无需使用 MQ 的情况

This commit is contained in:
wangli 2024-09-14 13:37:53 +08:00
parent d9b450ca61
commit 2b22fe42db

View File

@ -15,6 +15,7 @@ import feign.Response;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.BeanFactory;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
@ -116,7 +117,7 @@ public class ComplexInvokeClient implements Client {
.request(request) .request(request)
.body(body) .body(body)
.build(); .build();
} catch (Exception e) { } catch (BeansException e) {
return feignClient.execute(request, options); return feignClient.execute(request, options);
} }
} }