POST

    💢 Spring : GET & POST & Cookie

    📌 GET, POST 구분하기 🟣 GET 🗸 첫 번째 방법 - @RequestMapping @Controller @RequestMapping("/c02_1") public class Controller02_1 { @RequestMapping(method = RequestMethod.GET) // GET 요청일 때만 호출된다. @ResponseBody public String handler1() { return "get"; } } 🗸 두 번째 방법 - @GetMapping @Controller @RequestMapping("/c02_2") public class Controller02_2 { @GetMapping @ResponseBody public String handler1() { return "get..