Spring REST

Related Tags

Tutorials

Spring MVC Validation of Request Body and Parameters

Learn to validate the request body of a REST API built with Spring MVC. Also, validate @PathVariable and @RequestParam parameters in resource URIs using the hibernate validator framework. In this Spring MVC validation example, we will add validations in REST APIs created for the CRUD example. 1. Request Body Validation …

Spring REST JSON Response Example

In this spring rest json example, we will learn to write RESTFul webservices capable of returning JSON for resources using MappingJackson2JsonView.

Produce XML Response with Spring WebMVC Controller

In this Spring REST XML example, I am writing hello world example for REST APIs using Spring REST features. In this example, I will be creating two APIs which will return XML representation of resources. 1. Maven Dependencies Let’s start with runtime dependencies which you will need to write these …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.