![[SpringBoot/Thymeleaf] java.lang.NumberFormatException : Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "{idx}"](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbLiDZF%2FbtsgECbrq9B%2FAAAAAAAAAAAAAAAAAAAAACurtVSwEBxfEl_tHInEdYjuMgRe8X_QDFYAcYzniCYh%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1756652399%26allow_ip%3D%26allow_referer%3D%26signature%3DPsVrYGMa5EWtqCFL7meWLUWsanU%253D)
Tech/트러블슈팅2023. 5. 21. 05:13[SpringBoot/Thymeleaf] java.lang.NumberFormatException : Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "{idx}"
에러 메세지 Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "{idx}" 에러 원인 AWS S3로 이미지 업로드를 구현하는 과정에서 발생했고 String형태로 넘어가서 int로 받지를 못하는 듯 하다 @ResponseBody @PostMapping("/img/{idx}") public String img_modify(@PathVariable int idx, @RequestParam("imgfile") MultipartFile imgfile, UserDTO dto) throws IOException { System.out.println(imgfile.getName()); System.ou..