Test Slices in Spring-Boot

One of the early mistakes that I’ve done in my first professional Spring-Boot based project was writing integration tests that load the entire ApplicationContext using @SpringBootTest annotation when there’s no need. Thankfully, one of my colleagues was kind enough to help me understand that there is a better way to do things 🙂 Writting tests […]

Twelve-Factor Application: Configuration in Spring

The Twelve-Factor application methodology is a collection of best practices that are designed to enable applications to be developed with portability and resilience when deployed. In this post, we’ll cover the third factor, Config. We’ll also see how the spring ecosystem contributes to helping developers achieve this factor. The Twelve-Factor application manifesto advocates on externalizing […]

Introduction to AOP and Spring AOP

1. What is AOP? To save you the time from looking up to Wikipedia here is the definition: aspect-oriented programming (AOP) is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. It does so by adding additional behavior to existing code (an advice) without modifying the code itself, instead […]