
REST Pagination in Spring
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. 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, […]
1. Resolve a relative URL 2. File size from URL 3. Use the HTTPS protocol For Applets, both IE and NN have implemented https in […]
1. Write/Read cookies using HTTP 2. Read a file from the internet 3. Read a GIF or CLASS from an URL save it locally This […]
1. Identify yourself using HTTP Authentification A better alternative is the Authenticator class. NOTE: a simple explanation about the base64 encoding principle is shown in […]
1. The Networking Properties You have to set the following properties: NOTE: proxyHost, proxyPort are deprecated. you have to prefix them with “http.”.NOTE: Those properties are documented here: http://java.sun.com/javase/6/docs/technotes/guides/net/properties.htm. […]