go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Why Spring MVC
 
Subject: Why Spring MVC
Author: WebSpider
In response to: Spring MVC -- A Web Development Framework
Posted on: 11/23/2017 02:28:26 AM


Following are some of the distinct advantages of Spring MVC architecture

  • MVC is a common design pattern used to decouple business logic from UIs to allow them to change independently without affecting each other.
  • Convention over configuration -- Similar to Ruby on Rails or other popular web frameworks


     

    > On 11/23/2017 02:27:08 AM WebSpider wrote:

    Introduction

    The Spring Model-View-Controller (MVC) framework is designed around the DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale and theme resolution as well as support for uploading files. The default handler is based on the @Controller and @RequestMapping annotations, offering a wide range of flexible handling methods. With the introduction of Spring 3.0, the @Controller mechanism also allows you to create RESTful Web sites and applications, through the @PathVariable annotation and other features.

    Prerequsites

  • Eclipse with Spring Tools Suite (STS) -- link
  • Dependencies (pom.xml):
    	<dependencies>
    		<!-- Spring -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>4.2.3.RELEASE</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>4.2.3.RELEASE</version>
    		</dependency>
    	</dependencies>
    





    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.