GET 방식
@GetMapping("/register/add")
public String register() {
return "registerForm"; // WEB-INF/views/registerForm.jsp
}
view controller
servlet-context.xml 에서 view-controller 등록
<view-controller path="/" view-name="/WEB-INF/views/home/home.jsp"/>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"/>
<beans:beans xmlns:mvc="http://www.springframework.org/schema/mvc">