👋Hey there,I'm Dimitri

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


Using the Netflix stack with Spring boot: Ribbon

October 18th, 2016 | 8 min read | Eureka, Netflix, Spring, Spring boot, Spring cloud

In my last article I gave a basic introduction into the concepts of a service oriented architecture (SOA) and microservices. I also made a small example about a service registry and how Netflix is involved into microservices with tools like Eureka. However, the story was quite unfinished, since we only made it possible for microservices […]

Utilizing cache abstraction with Spring boot and Ehcache

October 4th, 2016 | 9 min read | EHCache, Spring, Spring boot

Caching is a very common operation when developing applications. Spring made a neat abstraction layer on top of the different caching providers (Ehcache, Caffeine, Guava, GemFire, …). In this article I will demonstrate how the cache abstraction works using Ehcache as the actual cache implementation.

Exploring contract first options with Swagger

September 27th, 2016 | 9 min read | REST, Spring, Spring boot, Swagger

In my latest tutorial I documented a simple REST API with Swagger and Springfox. While this approach certainly showed how valuable documenting your REST API can be, we aren’t really “done” yet. In the great world of SOA we know something like “contract first development”, in which we initially describe the web service (using WSDL) […]

Documenting your REST API with Swagger and Springfox

September 20th, 2016 | 17 min read | REST, Spring, Spring boot, Swagger

In my last tutorial I built a REST service together with a REST client. Like I said before, REST services are pretty great to allow reuse of your operations, however, to become reusable, you’ll have to properly document the available endpoints in your REST API, which endpoints there are, what they can do, what they […]

Consuming REST API’s with Spring

September 13th, 2016 | 11 min read | REST, Spring, Spring boot, Web

In the last tutorial we created a small REST API. So now that the “producing REST API” step is completed, it’s time to start consuming it in another Spring boot project. Last time we’ve already set up a module for this project, called spring-boot-rest-client.

Handling forms with Spring Web and JSR-303

April 13th, 2016 | 13 min read | form, Spring, Spring boot, Web

Up until now I’ve written several tutorials already about creating some readonly Spring boot application, but what’s cool about that? Eventually you’ll have to add/update some data in your application. In this example I’ll show you how you can do that with Spring Web and JSR-303 bean validations.

Internationalization (i18n) with Spring

April 5th, 2016 | 7 min read | i18n, Spring, Spring boot, Web

When developing applications, it can be interesting to put labels in a separate properties file, so that they can be re-used. For example, we often noticed that within our applications there were slight variations on specific words, which broke consistency. The easiest way to solve that is to centralize these labels. Another benefit you get […]

Mapping with Dozer

March 30th, 2016 | 10 min read | Dozer, Java, Spring

Recently I wrote a tutorial about mapping with MapStruct. Testing it out for the first time, I noticed several differences between MapStruct and the mapping framework that I have the most experience in, called Dozer. That’s why I’m going to make a similar tutorial to my previous one, utilizing the Dozer framework this time, allowing […]