Spring boot 이미지 Map으로 전달하기
Spring boot@RestController@RequestMapping("/api")public class ResourceController { @GetMapping("/resource-with-map") public ResponseEntity> getResourceWithMap() throws IOException { // Load the resource (example: an image) Path imagePath = Paths.get("/path/to/your/image.jpg"); Resource resource = new UrlResource(imagePath.toUri()); if (!resource.exists() || !res..
2024.12.05