
A Custom Media Type for a Spring REST API
1. Overview In this tutorial, we’re going to take a look at defining custom media types and producing them by Spring REST controller. A good […]
1. Overview In this tutorial, we’re going to take a look at defining custom media types and producing them by Spring REST controller. A good […]
1. Overview Protocol Buffers is a language and platform neutral mechanism for serialization and deserialization of structured data, which is proclaimed by Google, its creator, to […]
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 […]
1. Overview This article will focus on working with ETags in Spring, integration testing of the REST API and consumption scenarios with curl. 2. REST and ETags […]
1. Overview This tutorial will focus on the implementation of pagination in a REST API, using Spring MVC and Spring Data. 2. Page as Resource vs […]
1. The Problem Evolving a REST API is a difficult problem – one for which many options are available. This article discusses some of these options. […]
1. Overview This quick article is focused on a common error – ‘Request Method not Supported – 405′ – that developers face while exposing their APIs […]
1. Overview Documentation is an essential part of building REST APIs. In this tutorial, we’ll take a look at SpringDoc — a tool that simplifies […]
1. Overview Nowadays, front-end and back-end components often separate a web application. Usually, we expose APIs as a back-end component for the front-end component or […]
1. Introduction Using Spring, we usually have many ways to achieve the same goal, including fine-tuning HTTP responses. In this short tutorial, we’ll see how […]
1. Introduction In Spring MVC, we have many ways to set the status code of an HTTP response. In this short tutorial, we will see the […]
1. Overview In this quick tutorial, we’re going to look at how to access HTTP Headers in a Spring Rest Controller. First, we’ll be using the @RequestHeader annotation […]
1. Introduction In this quick tutorial, we provide a concise overview of the Spring @RequestBody and @ResponseBody annotations. 2. @RequestBody Simply put, the @RequestBody annotation maps the HttpRequest body to a transfer or domain object, […]
1. Overview In this tutorial, we’ll handle the conversions that need to happen between the internal entities of a Spring application and the external DTOs (Data Transfer […]
1. Overview This tutorial will illustrate how to implement Exception Handling with Spring for a REST API. We’ll also get a bit of historical overview and see […]
1. Overview In this brief tutorial, we’ll discuss the difference between @Controller and @RestController annotations in Spring MVC. We can use the first annotation for traditional Spring controllers, and […]
1. Overview This article shows how to set up REST in Spring – the Controller and HTTP response codes, configuration of payload marshalling and content negotiation. 2. […]
1. Overview The tutorial illustrates how to Bootstrap a Web Application with Spring. We’ll look into the Spring Boot solution for bootstrapping the application and also […]
1. Using javax.swing.text.html.HTMLEditorKit 2. Using an HTML parser In this HowTo, I will use the OpenSource package Jsoup. Done! Happy Coding!
1. Using regular expression A special regular expression is used to strip out anything between a < and > However if any Javascript is present, […]