πŸ‘‹Hey there,I'm Dimitri

I like trying out new frameworks and writing about them. Below you can find the latest articles I wrote.


Loading initial data with Spring

August 20th, 2019 | 7 min read | Java, JPA, Spring, Spring boot, Spring Data

I’ve been answering Spring related questions on Stack Overflow for the past three years now, and one of my most popular answers is about how to load initial data. While my solution over there works really fine, there are multiple solutions to this problem, and in this tutorial I’ll demonstrate which ones you have. This […]

Reactive relational databases with R2DBC and Spring

June 25th, 2019 | 5 min read | PostgreSQL, Project Reactor, R2DBC, Reactive programming, Spring boot, Spring WebFlux

In the past, we’ve covered how to use reactive programming with Project Reactor and Spring. Around that time, I mentioned that the support for databases was limited due to the amount of blocking JDBC drivers. However, some relational databases do support reactive connectivity, and with R2DBC, we can easily use those within our projects.

Testing your REST controllers and clients with Spring

April 2nd, 2019 | 8 min read | mockmvc, REST, Spring, Spring boot, Testing

That Spring allows you to easily develop REST APIs, is probably something we all know by now. With MockMvc and MockRestServiceServer, the same can be said to testing those REST APIs and clients. If you didn’t know this, then you’re at the right place to learn about it, as we’ll explore those options today!

Monitoring with Micrometer, Prometheus and Grafana

February 19th, 2019 | 6 min read | Docker, grafana, micrometer, prometheus, Spring boot

Monitoring is an essential aspect to the maintainability of applications, it’s no surprise that there are many platforms out there that allow you to properly monitor your applications. Usually, monitoring platforms work by using a time series database, which is a database optimised for time-based information, such as application metrics. Then on the other hand […]

Using WebSockets with Spring boot

January 8th, 2019 | 7 min read | Java, Spring, Spring boot, WebSockets

A few years ago, I wrote an article about using WebSockets with Spring and AngularJS. However, the technologies have evolved over the years. That’s why I decided to write some up-to-date follow-up articles using the latest version of Spring boot and the latest version of the Angular framework. In this first follow-up article, I’m going […]

Generating documentation for your REST API with Spring REST Docs

October 9th, 2018 | 12 min read | AsciiDoc, Integration testing, Java, Spring boot

Last time, we automatically generated documentation for our REST APIs written with Spring using Swagger annotations, Springfox and AsciiDoc. This allowed us to list all possible operations, models and so on. Additionally to such documentation, it could be interesting to have some examples as well. With Spring REST Docs we can automatically generate these examples […]