|
|
@ -23,6 +23,8 @@ import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
import org.springframework.web.bind.annotation.RequestPart; |
|
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
import java.net.UnknownHostException; |
|
|
|
|
|
|
|
/** |
|
|
|
* OSS |
|
|
|
* |
|
|
@ -32,7 +34,7 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
@FeignClient(name = ServiceConstant.EPMET_OSS_SERVER, configuration = OssFeignClient.MultipartSupportConfig.class, fallbackFactory = |
|
|
|
OssFeignClientFallbackFactory.class) |
|
|
|
//@FeignClient(name = ServiceConstant.EPMET_OSS_SERVER, configuration = OssFeignClient.MultipartSupportConfig.class, fallbackFactory =
|
|
|
|
// OssFeignClientFallbackFactory.class)
|
|
|
|
// OssFeignClientFallbackFactory.class, url = "localhost:8083")
|
|
|
|
public interface OssFeignClient { |
|
|
|
/** |
|
|
|
* 文件上传 |
|
|
@ -64,4 +66,13 @@ public interface OssFeignClient { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description ribbon测试 |
|
|
|
* @return |
|
|
|
* @author wxz |
|
|
|
* @date 2021.08.05 16:28 |
|
|
|
*/ |
|
|
|
@PostMapping("oss/file/test-ribbon-rcv") |
|
|
|
Result testRibbonRcv(); |
|
|
|
|
|
|
|
} |
|
|
|