feat: 升级SpringBoot和SpringCloud版本

This commit is contained in:
zlt2000
2023-11-10 14:59:27 +08:00
parent c7dfbc9e39
commit ec616bc1b5
133 changed files with 639 additions and 3666 deletions
@@ -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 {
/**
* 查询文档列表
@@ -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 {
/**
* 查询文档列表
@@ -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) {