Spring MVC TutorialReadDiscussCoursesPracticeImprove Article ImproveSave Article SaveLike Article LikeThis Spring MVC tutorial covers all the basic to advanced topics of Spring MVC like Basics of Spring MVC, Spring MVC Annotation, Spring MVC Architecture, Spring MVC Flow, Spring Form Handling, Spring MVC with JSTL, Spring MVC with REST API, etc. What is Spring MVC?Spring MVC is a Java-based framework that is mostly used for developing web applications. It follows the MVC (Model-View-Controller) Design Pattern. This design pattern specifies that an application consists of a data model, presentation information, and control information.This framework is developed around a DispatcherServlet which dispatches requests to handlers. In the current industry, many of them are using Spring Boot Microservices, but there are many projects still running in Spring MVC. So it is worth learning Spring MVC in the recent era. Thatâs why we are going to cover all the things which are part of the Spring MVC framework one by one in an organized manner.Spring Model-View-ControllerModel – A model contains the application’s data. A data set might be a single object or a group of things.Controller – A controller houses an application’s business logic. The @Controller annotation is used here to identify the class as the controller.View – A view is a representation of the delivered information in a certain format. In most cases, JSP+JSTL is utilized to construct a view page. Spring does, however, support additional view technologies such as Apache Velocity, Thymeleaf, and FreeMarker.Front Controller – The DispatcherServlet class serves as the front controller in Spring Web MVC. It is in charge of managing the flow of the Spring MVC application.Spring MVC Tutorial IndexSpring MVC – BasicsSoftware Setup and Configuration (STS/Eclipse/IntelliJ)Prerequisite (Spring Core Concepts)Core Spring MVCSpring MVC â AnnotationSpring MVC â Form HandlingSpring MVC with JSTLSpring MVC with REST APISpring MVC with DatabaseSpring MVC â BasicsIntroduction to Spring MVCWhat is Dispatcher Servlet in Spring?Difference between Spring MVC and Spring BootSpring MVC â Software Setup and Configuration (STS/Eclipse)How to Download and Install Spring Tool Suite (Spring Tools 4 for Eclipse) IDE?How to Download and Install Eclipse on Windows?How to Create a Dynamic Web Project in Eclipse/Spring Tool Suite?Prerequisite (Spring Core Concepts)In this section, we will learn some of the essential Spring Core Concepts as prerequisites. If you already know these concepts, then you can skip this section.Understanding Inversion of Control with ExampleSpring â BeanFactorySpring â ApplicationContextSpring â Difference Between BeanFactory and ApplicationContextSpring Dependency Injection with ExampleSpring â Difference Between Inversion of Control and Dependency InjectionSpring â Injecting Objects By Constructor InjectionSpring â Dependency Injection by Setter MethodSpring â Injecting Objects by Setter InjectionSpring â Injecting Literal Values By Setter InjectionSpring â Injecting Literal Values By Constructor InjectionBean life cycle in Java SpringCustom Bean Scope in SpringHow to Create a Spring Bean in 3 Different Ways?Spring â IoC ContainerSpring â AutowiringSingleton and Prototype Bean Scopes in Java SpringHow to Configure Dispatcher Servlet in web.xml File?Core Spring MVCHow to Create Your First Model in Spring MVC?How to Create Your First View in Spring MVC?Create and Run Your First Spring MVC Controller in Eclipse/Spring Tool SuiteSpring MVC â Multi Action Controller with ExampleSpring MVC using Java-based configurationViewResolver in Spring MVCSpring â Shortcut to Create Dispatcher Servlet in Eclipse/Spring Tool SuiteWebApplicationContext in Spring MVCData Transfer Object (DTO) in Spring MVC with ExampleData Binding in Spring MVC with ExampleSpring MVC â Pagination with ExampleDifference Between ApplicationContext and WebApplicationContext in Spring MVCSpring MVC â Exception HandlingSpring â How to Load Literal Values From Properties FileSpring MVC â Multiple View PageSpring MVC – Custom ValidationSpring MVC – ListboxSpring MVC â Multiple Resolver MappingSpring MVC – File UploadSpring MVC – TextAreaSpring MVC – Hidden FieldSpring MVC – Regular Expression ValidationSpring MVC – PasswordSpring MVC – ValidationSpring MVC â TilesSpring MVC â Text BoxSpring MVC â Multiple ControllerSpring MVC â Model InterfaceSpring MVC â Number ValidationSpring MVC – Application Without web.xml FileQuery String and Query Parameter in Spring MVCTwo-Way Data Binding in Spring MVC with ExampleHow to Resolve WEB xml is missing and failOnMissingWebXml is set to true in Eclipse/STS?Spring MVC â AnnotationSpring MVC @RequestParam AnnotationSpring @RequestMapping Annotation with ExampleHow to Capture Data using @RequestParam Annotation in Spring?Spring @ResponseBody Annotation with ExampleSpring MVC @ModelAttribute Annotation with ExampleDifference Between @Component, @Repository, @Service, and @Controller Annotations in SpringDifference Between @Controller and @Service Annotation in SpringDifference Between @Controller and @RestController Annotation in SpringSpring MVC â Form HandlingSpring MVC – Form HandlingSpring MVC – Form CheckboxSpring MVC – Form Radio ButtonSpring MVC – Form Drop-Down ListSpring MVC – Form Tag LibrarySpring MVC – Form Text FieldSpring MVC â Capture and Display the Data from the Registration FormSpring MVC â Create Registration Form using Form Tag LibrarySpring MVC with JSTLSpring MVC â Basic Example using JSTLSpring MVC JSTL ConfigurationSpring MVC â JSTL forEach Tag with ExampleSpring MVC â Iterating List on JSP using JSTLSpring MVC with REST APIHow to Make Post Request in Java Spring?How to Make get() Method Request in Java Spring?How to Make Delete Request in Spring?Spring MVC â Get University/College Details via REST APISpring MVC Project â Retrieving Population, Area, and Region Details using Rest APISpring MVC â Last 24-Hour Cryptocurrency Data using REST APISpring MVC â Comparison of Cryptocurrencies using REST APISpring MVC â Get Probability of a Gender by Providing a Name using REST APIOpenSource REST API URL and Retrieving Data From it By Using Spring MVCHow to Extract TV Show Details via REST API and Spring MVC?Get Time Zone by Providing Latitude and Longitude using Spring MVC and REST APISpring MVC â Getting Cryptocurrency Details using REST APISpring MVC â Get Exchange Rate Values using REST APISpring MVC with DatabaseSpring MVC CRUD with ExampleHow to Create a Project Using Spring MVC and Hibernate 5?Spring MVC â Sample Project For Finding Doctors Online with MySQLSpring MVC Integration with MySQLSpring MVC with MySQL â Sample Project For Calculating Electricity BillSpring MVC with MySQL and Junit â Finding Employees Based on LocationAdvantages of Spring MVC FrameworkSeparate rolesLightweightPowerful ConfigurationRapid developmentReusable business codeEasy to test Flexible MappingFAQs on Spring MVCQ1. What is the Difference Between Spring MVC and Spring Boot?Answer:Spring MVC is a Model-View-Controller-based web framework widely used to develop web applications whereas Spring Boot is an enhancement of the Spring framework, with some extended advantages, widely used to develop REST APIs.Q2. It is worth learning Spring MVC in 2023?Answer:Yes, there are many projects still running in Spring MVC. So it is worth learning Spring MVC in 2023.Q3. What is better to use, Spring Boot or Spring MVC?Answer:Spring MVC helps to develop applications easily. Spring Boot helps to develop applications easily and quickly with features like auto-configuration and starters. Spring Boot helps in reducing the development time as all the dependency-related task gets handled.Last Updated : 08 Aug, 2023Like Article Save Article Please Login to comment...