주석 – @GetMapping

@GetMapping
HTTP GET 요청 처리
@RequestMapping(Method=RequestMethod.GET)과 동일합니다.

@Controller
public class HomeController {
    
    @GetMapping("/")
    public String home() {
        return "home";
    }
}

/ URL 경로에 대한 GET 요청 처리

우편