Deploying a Spring Boot Application to Cloud Foundry 1. Overview Deploying a Spring Boot application to Cloud Foundry is a simple exercise. In this tutorial, we’ll show you how to do it. 2. Spring Cloud Dependencies Since this project will require new dependencies for Spring Cloud project, we’ll add the… Continue Reading spring-boot-app-deploy-to-cloud-foundry

Apache Tiles Integration with Spring MVC 1. Overview Apache Tiles is a free, open source templating framework purely built on the Composite design pattern. A Composite design pattern is a type of structural pattern which composes objects into tree structures to represent whole-part hierarchies and this pattern treats individual objects… Continue Reading spring-mvc-apache-tiles

Intro to the Jackson ObjectMapper 1. Overview This write-up focuses on understanding the Jackson ObjectMapper class – and how to serialize Java objects into JSON and deserialize JSON string into Java objects. To understand more about the Jackson library in general, the Jackson Tutorial is a good place to start.… Continue Reading jackson-object-mapper-tutorial

Adding a Copyright License Header for Java Source Files in IntelliJ IDEA 1. Overview In this tutorial, we’re going to look at how to add a license header to our IntelliJ IDEA project files. The license header typically describes a project file’s permitted usage and ownership. We assume that you… Continue Reading intellij-copyright-license-header

Request Method Not Supported (405) in Spring 1. Overview This quick article is focused on a common error – ‘Request Method not Supported – 405′ – that developers face while exposing their APIs for specific HTTP verbs, with Spring MVC. Naturally, we’ll also discuss the common causes of this error. 2. Request… Continue Reading spring-request-method-not-supported-405

HashSet and TreeSet Comparison 1. Introduction In this article, we’re going to compare two of the most popular Java implementations of the java.util.Set interface – HashSet and TreeSet. 2. Differences HashSet and TreeSet are leaves of the same branch, but they differ in few important matters. 2.1. Ordering HashSet stores… Continue Reading java-hashset-vs-treeset