Self-Healing Applications with Kubernetes and Spring Boot 1. Introduction In this tutorial, we’re going to talk about Kubernetes‘s probes and demonstrate how we can leverage Actuator‘s HealthIndicator to have an accurate view of our application’s state. For the purpose of this tutorial, we’re going to assume some pre-existing experience with Spring Boot Actuator, Kubernetes, and Docker. 2. Kubernetes… Continue Reading spring-boot-kubernetes-self-healing-apps

First Round of Improvements to the Reddit Application 1. Overview The Reddit web application Case Study is moving along nicely – and the small web application is shaping up and slowly becoming usable. In this installment, we’re going to be making small improvements to the existing functionality – some externally… Continue Reading reddit-web-app-improvements-1

Guide to ReflectionTestUtils for Unit Testing Spring Testing 1. Introduction ReflectionTestUtils is a part of Spring Test Context framework. It is a collection for reflection-based utility methods used in a unit, and integration testing scenarios to set the non-public fields, invoke non-public methods, and inject dependencies. In this tutorial, we’ll take… Continue Reading spring-reflection-test-utils

Injecting Prototype Beans into a Singleton Instance in Spring Spring Spring DI 1. Overview In this quick article, we’re going to show different approaches of injecting prototype beans into a singleton instance. We’ll discuss the use cases and the advantages/disadvantages of each scenario. By default, Spring beans are singletons. The… Continue Reading spring-inject-prototype-bean-into-singleton

An Intro to Spring HATEOAS 1. Overview This article explains the process of creating hypermedia-driven REST web service using the Spring HATEOAS project. 2. Spring-HATEOAS The Spring HATEOAS project is a library of APIs that we can use to easily create REST representations that follow the principle of HATEOAS (Hypertext… Continue Reading spring-hateoas-tutorial