Spring Rest service Hello world with XML

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>SpringRestHelloWorldXML</groupId>     <artifactId>SpringRestHelloWorldXML</artifactId>     <packaging>war</packaging>     <version>0.0.1-SNAPSHOT</version>     <name>SpringRestHelloWorldXML Maven Webapp</name>     […]

Share this article on

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
< Previous