Validating Lists in a Spring Controller 1. Introduction Validating user inputs is a common requirement in any application. In this tutorial, we’ll go over ways to validate a List of objects as a parameter to a Spring controller. We’ll add validation in the controller layer to ensure that the user-specified… Continue Reading spring-validate-list-controller

Pagination with Spring REST and AngularJS table 1. Overview In this article, we will mainly focus on implementing server side pagination in a Spring REST API and a simple AngularJS front-end. We’ll also explore a commonly used table grid in Angular named UI Grid. 2. Dependencies Here we detail various… Continue Reading pagination-with-a-spring-rest-api-and-an-angularjs-table

Spring MVC Content Negotiation 1. Overview This article describes how to implement content negotiation in a Spring MVC project. Generally, there are three options to determine the media type of a request: Using URL suffixes (extensions) in the request (eg .xml/.json) Using URL parameter in the request (eg ?format=json) Using… Continue Reading spring-mvc-content-negotiation-json-xml