#4 Working with Spring MVC
MVC stands for Model-View-Controller. MVC in spring required: Some JSP pages ( views) which need to be displayed. Controller which used to access views Model to set for views So lets start with MVC. Before starting I hope you have idea of basic REST api development. If not then you can follow steps here . For MVC, we need to follow steps below: 1. Create a ModelController class. Add annotation @Controller on top ( with @RestController it will not work). 2. Create JSP page, let say index.jsp . Please check hierarchy in folder structure for index . jsp page as we will require to tell our application that from where JSP pages need to pick. 3. Create HelloConfig.java to register InternalResourceViewResolver . InternalResourceViewResolver is used at application level to tell application path of JSP/CSS files. I have set path to "/WEB-INF/pages" and added suffix as .jsp . So now I won't require to specify .jsp expli...