Spring Rest service Hello world with JSON

Create a new Maven Web project in eclipse (Refer Spring MVC Hello World project for the same) Project structure Step 1 Update pom.xml with below dependencies <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">     <modelVersion>4.0.0</modelVersion>     <groupId>SpringRestHelloWorldJSON</groupId>     <artifactId>SpringRestHelloWorldJSON</artifactId>     <packaging>war</packaging>     <version>0.0.1-SNAPSHOT</version>     <name>SpringRestHelloWorldJSON Maven Webapp</name>     […]

Share this article on

Spring MVC Architecture

Front Controller This is the Dispatcher servlet controller also called as Front controller which is the main controller which manages the flow of the Spring MVC application. This is defined in the web.xml as below <web-app>     <servlet>         <servlet-name>Dispatcher-Servlet</servlet-name>         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>         <load-on-startup>1</load-on-startup>   […]

Share this article on
< Previous Next >