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
#
ResponseBody
원문 링크 : template might not exist or might not be accessible by any of the configured template resolvers