Composition, Aggregation, and Association in Java 1. Introduction Objects have relationships between them, both in real life and in programming. Sometimes it’s difficult to understand or implement these relationships. In this tutorial, we’ll focus on Java’s take on three sometimes easily mixed up types of relationships: composition, aggregation, and association.… Continue Reading java-composition-aggregation-association

Fixing 401s with CORS Preflights and Spring Security 1. Overview In this short tutorial, we’re going to learn how to solve the error “Response for preflight has invalid HTTP status code 401”, which can occur in applications that support cross-origin communication and use Spring Security. First, we’ll see what cross-origin… Continue Reading spring-security-cors-preflight

A Guide to Spring Cloud Netflix – Hystrix 1. Overview In this tutorial, we’ll cover the Spring Cloud Netflix Hystrix – the fault tolerance library. We’ll use the library and implement the Circuit Breaker enterprise pattern, which is describing a strategy against failure cascading at different levels in an application.… Continue Reading spring-cloud-netflix-hystrix

Spring Security with Maven 1. Overview This article will explain how to setup Spring Security with Maven and will go over specific use-cases of using Spring Security dependencies. The latest Spring Security releases can be found on Maven Central. This is a followup to the previous Spring with Maven article,… Continue Reading spring-security-with-maven

Kotlin Immutable Collections 1. Introduction In this tutorial, we’ll be looking at how to create immutable collections in Kotlin. First, we’ll explore the types of immutability as well as what Kotlin provides as standard. Then, we’ll look at how to leverage Google’s Guava library to create truly immutable collections. As… Continue Reading kotlin-immutable-collections