Spring Boot
Spring Boot Application Events Explained
To “listen” to an event, we can always write the “listener” to an event as another method within the source of the event, but this will tightly couple the event source to the logic of the listener.
Read moreWhy You Should Use Constructor Injection in Spring
Dependency injection is an approach to implement loose coupling among the classes in an application. There are different ways of injecting dependencies and this article explains why constructor injection should be the preferred way.
Read moreClean Architecture Boundaries with Spring Boot and ArchUnit
When we’re building software, we want to build for “-ilities”: understandability, maintainability, extensibility, and - trending right now - decomposability (so we can decompose a monolith into microservices if the need arises).
Read moreAPI-First Development with Spring Boot and Swagger
Following an API-first approach, we specify an API before we start coding. Via API description languages, teams can collaborate without having implemented anything, yet.
Read moreCustom Web Controller Arguments with Spring MVC and Spring Boot
Spring MVC provides a very convenient programming model for creating web controllers. We declare a method signature and the method arguments will be resolved automatically by Spring.
Read moreHandling Passwords with Spring Boot and Spring Security
Systems with user management require authentication. If we use password-based authentication, we have to handle users' passwords in our system. This article shows how to encode and store passwords securely with Spring Security.
Read more