feat: 升级SpringBoot和SpringCloud版本
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @author zlt
|
||||
*/
|
||||
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, decode404 = true)
|
||||
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, dismiss404 = true)
|
||||
public interface AggregationService {
|
||||
/**
|
||||
* 查询文档列表
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
/**
|
||||
* @author zlt
|
||||
*/
|
||||
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, decode404 = true)
|
||||
@FeignClient(name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = SearchServiceFallbackFactory.class, dismiss404 = true)
|
||||
public interface SearchService {
|
||||
/**
|
||||
* 查询文档列表
|
||||
|
||||
+2
@@ -5,6 +5,7 @@ import com.central.search.client.feign.SearchService;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* searchService降级工场
|
||||
@@ -12,6 +13,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
* @author zlt
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class SearchServiceFallbackFactory implements FallbackFactory<SearchService> {
|
||||
@Override
|
||||
public SearchService create(Throwable throwable) {
|
||||
|
||||
Reference in New Issue
Block a user