local-tool设置动态uri

This commit is contained in:
liyawei
2022-03-15 18:11:54 +08:00
parent fc8a0e6d90
commit b443cdd4c3
5 changed files with 27 additions and 13 deletions
@@ -7,14 +7,16 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.net.URI;
/**
* @description
* @date 2021/12/8 14:53
* @auth zhn
*/
@FeignClient(name = "local-tool", url = "http://139.9.235.66:9022")
@FeignClient(name = "local-tool", url = "EMPTY")
public interface LocalToolFeignClient {
@RequestMapping(value = "/local-tool/ocr/handleFile",method = RequestMethod.POST,headers = {"content-type=application/json"})
ResponseEntity<String> getFile(@RequestBody OcrVO ocrVO);
ResponseEntity<String> getFile(URI uri, @RequestBody OcrVO ocrVO);
}