Warning: include(../include/breadcrumb.php): Failed to open stream: No such file or directory in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 16

Warning: include(): Failed opening '../include/breadcrumb.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 16

Warning: include(./spring-mvc-sidenav.php): Failed to open stream: No such file or directory in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 21

Warning: include(): Failed opening './spring-mvc-sidenav.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 21

Spring MVC Application Components

  • A collection of web pages to layout UI components.

  • A collections of Spring beans (controllers, services, etc).

  • Spring configurations (XML, Annotation, or Java).

Flow is always remain same for any technology.
UI -> xml -> Java -> DB


We will start building a Maven project for web-mvc now.

  • Create Maven project.

  • Right-click project go to project facet as below and click link.


maven project properties

  • Select dynamic web module. So that project will have webContent folder

maven project properties

  • Update your maven project

update maven project

  • Add web.xml to project see location WEB-INF/web.xml in webContent below image show how to add it automatically.

java ee tools

  • Project structure will be looking like below.

maven project structure

  • Once folder structure is ready go for adding code in pom.xml



Warning: include(../include/google-vertical-ads.php): Failed to open stream: No such file or directory in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 144

Warning: include(): Failed opening '../include/google-vertical-ads.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 144

Warning: include(../include/internal-page-footer.php): Failed to open stream: No such file or directory in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 181

Warning: include(): Failed opening '../include/internal-page-footer.php' for inclusion (include_path='.:/opt/cpanel/ea-php83/root/usr/share/pear') in /home/javabykiran/public_html/thekiranacademy.com/tutorials/components-of-spring-mvc-application.php on line 181