The article lists down top bookmarks (pages) which helped me to quickly get started with Spring MVC with Eclipse. Also, presents some key information at a very high level.
Following are high level steps to get started with your first Spring MVC project using Eclipse:
- Download Java EE eclipse and configure server for ease of deployment from within Eclipse.
- Create a Dynamic Web Project in Eclipse.
- Drag and drop below mentioned Spring and other libraries into the folder WebContent/WEB-INF/lib. One of the key library along with Spring is common logging library. Without this, server fails to start properly.
- Create following spring configuration files under the WebContent/WEB-INF folder. Go to one of the first two links to understand the content of these XML files.
- Create controllers (Java classes)
- Create a sub-folder with a name such as views/pages/jsp etc under the WebContent/WEB-INF folder. Create view files under this sub-folder.
Following are tools needed to get started quickly with Spring MVC:
- Spring framework libraries
- common logging library
- Tomcat server to run the web app
Following are some key images that would help understand Spring MVC and related concepts. For description, visit above pages.
Following image represents the request-response flow with Spring MVC
Following image represents the request-response flow including services with Spring MVC
Latest posts by Nidhi Rai (see all)
- Book: First principles thinking for building winning products - April 19, 2022
- Free AI / Machine Learning Courses at Alison.com - November 16, 2021
- 12 Weeks Free course on AI: Knowledge Representation & Reasoning (IIT Madras) - November 14, 2021
Leave a Reply