4151 [스프링부트 form 전송] - 415 Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 웹에서 보낸 form을 스프링부트 컨트롤러에서 받을 때 다음 에러가 발생할 수 있습니다. Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported 1. 해결법 아마도 컨트롤러에서 form 데이터를 @RequestBody 로 받으려고 했을 것이고, @RequestBody를 제거하면 에러 없이 받을 수 있습니다. @RequestMapping("/api/v1/hello") @RestController public class RestContoller { @PostMapping("/form") public String hello(@RequestBody HelloForm helloForm) { return "hello"; } } 2. .. 2022. 5. 30. 이전 1 다음