Код: Выделить всё
import org.apache.commons.io.FileUtils
@GetMapping("/api/v1/files")
ResponseEntity getFile(@RequestParam(value = "key") String key) {
ResponseEntity resp = getFile("filename.txt")
File fs = new File("/opt/test")
FileUtils.write(file, resp.getBody())
}
Как я могу снизить и сохранить память файла, эффективно и быстрее?
Подробнее здесь: https://stackoverflow.com/questions/580 ... ring-feign