[spring] @RequestBody & @RequestBody (JSON)
mini_min
[spring] @RequestBody & @RequestBody (JSON) ✔️ @RequestBody : HTTP 요청 몸체를 자바 객체로 전달 받는다. @Controller("test01.testController") @RequestMapping("/test01/*") public class TestController { @GetMapping("request") public String form() { return "test01/write"; } @PostMapping("request") public String submit(@RequestBody String params, Model model) { model.addAttribute("msg", params); return "test01/resu..