ajax 사용 후 에러나옴.. $('#btn_hart').click(function(){ var param = { num:$("#num").val() }; $.ajax({ url:"/board/plusHart", type:"PUT", data:param }).done(function(){ }); }); 원인은 컨트롤러가 @Controller 였기때문이었다. @RestController였으면 컨트롤러 자체가 ResponseBody를 품고있어서 상관없는데 @Controller라서..;; @PutMapping("/plusHart") public @ResponseBody void HartPlus(@RequestParam Map<String,Object> param){ boardService.plusHart(Integer.parseInt(param.get("num").toString())); } 메소드 타입 앞에 @ResponseBody를 야무지게 넣어주면서 해결완료 요즘 고양이 한마리 키우...
#ResponseBody
원문링크 : template might not exist or might not be accessible by any of the configured template resolvers