다중 파일을 받아오기 위한 설정 / 파일 3탄
2022. 2. 3.
https://purple-j.tistory.com/213 MultipartFile[] files - for문으로 묶어준다 for(MultipartFile file : files) { 파일을 단일로 받아올 때 사용되는 코드들 } @RequestMapping(value="reg", method= {RequestMethod.GET, RequestMethod.POST}) @ResponseBody public String reg(String title, String content, MultipartFile[] files, String category, String[] foods, String food, HttpServletRequest request) throws IllegalStateException, IOE..