カマルオタク:
私は要求のサイズについては、私は常に500エラー接続が応答する前に閉鎖されたなってきて、zuulプロキシとproblemeを持っています。
コントローラコード:
@RestController
@RequestMapping("/file")
public class FileController {
@PostMapping("/upload")
public ResponseEntity<String> uploadFile(@RequestParam("file") MultipartFile file) throws Exception {
System.out.println("File Name : " + file.getOriginalFilename(),
"File Size : " + file.getSize() + "bytes");
return ResponseEntity.ok(file.getName() + " uploaded");
}
}
何か案が?
オマールAmaoun:
あなたの問題は、ここではリボンソケットサイズです。あなたがzuulプロキシを有効に1 - - あなたのgetwayプロパティファイルにこのプロパティを追加しよう:
ribbon.eager-load.enabled=true
hystrix.command.default.execution.timeout.enabled=false
hystrix.command.default.execution.isolation.strategy=THREAD
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=3999996
ribbon.ConnectTimeout=999999
ribbon.ReadTimeout=999999
ribbon.SocketTimeout=999999
zuul.host.socket-timeout-millis=999999
zuul.host.connect-timeout-millis=999999
zuul.sensitiveHeaders=Cookie,Set-Cookie