👋Hey there,I'm Dimitri

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


Writing dynamic queries with Spring Data JPA

September 3rd, 2019 | 7 min read | Hibernate, JPA, Spring, Spring Data

In one of my earlier tutorials, I’ve explored the basics about Spring Data JPA. While that tutorial shows what you have to do in most situations, in some cases you want to have more control over your queries rather than having a fairly static one.

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 […]

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!

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 […]

Validating the input of your REST API with Spring

June 8th, 2018 | 9 min read | Spring, Spring boot, validators

When handling input of a user, validation is a common task. In fact, it’s so common, that there’s even a specification for it called JSR 303 bean validation and JSR-380 which contains version 2 of the same specification. With Spring, we can utilize this specification to the fullest extent, and make validation an easier task.

Securing Spring boot applications with JWT

January 3rd, 2018 | 16 min read | jwt, Microservices, Spring, Spring boot, Spring security

As soon as you write your first web application with Spring, you probably want to secure it. Spring has a project called Spring Security that does most of the generic stuff for you. Just plug in a service that provides the user details (from a database, LDAP, …) and configure the endpoints and you’re ready […]