controller/ArticleController.java
(중략)
import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class ArticleController {
@GetMapping("/articles/new")
public String newArticleForm() {
return "articles/new";
}
@PostMapping("/articles/create") --- ➋ URL 요청 접수
public String createArticle() { ---- ➊ 메서드 생성 및 반환값 작성
return "";
}
}