👋Hey there,I'm Dimitri

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

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

Handling errors with Spring MVC

January 19th, 2016 | 7 min read | Spring, Spring boot, Spring MVC, Web

In my previous tutorial I wrote a small Spring boot application that retrieved data from a database and showed it on a webpage. However, we only handled the happy path, usually stuff may go wrong when retrieving data or doing certain operations.

JPA made easy with Spring data’s repositories

January 12th, 2016 | 9 min read | JPA, Spring, Spring boot, Spring Data, Web

In my previous tutorial I made a simple application to show some superheroes and supervillains. While the application did what it should do it was pretty statically because I used some mock data. With Spring Data it’s very easy to create a simple CRUD application without the hassle of creating your own DAO’s. Spring Boot […]

Testing modern web applications

March 9th, 2015 | 2 min read | Spring, Spring boot, Testing, Web

If you’re a web developer like me, then you probably know that writing tests for an application means that you have to test various parts of the application. Modern web architectures usually contain the necessary front-end logic, a REST back-end and some data persistence. Having to test your application means that you want to cover […]

Easy integration testing with Spring Boot and REST-Assured

January 24th, 2015 | 9 min read | REST-Assured, Spring, Spring boot, Testing

In my previous article I explained how you could rapidly create a completely working, responsive CRUD application with about 150 lines of code. That’s obviously nice, but Spring Boot also makes it easy to write integration tests for your application, because it’s easy to setup a running test application with a few annotations, so then […]