Programming

Generating HTML Documentation From RAML Documents With Maven

The RESTful API Modeling Language (RAML) is a YAML-based language that is used for describing REST(ful) APIs. I like the RAML syntax because it's text based, versatile, and easy to use. However, when I publish a REST API, I must provide readable API documentation or no one will use my API. This blog post describes […] Read more

Spring Data JPA Tutorial: Adding Custom Methods to All Repositories

The previous part of this tutorial taught us how we can add custom methods into a single repository. Although that is a very useful skill, it doesn't help us when we have to add the same method into all repositories of our application. Luckily for us, Spring Data provides a way to add custom methods […] Read more

Spring From the Trenches: Creating a Custom HandlerMethodArgumentResolver

A few weeks ago we learned to transform the value of a single request parameter into an object, which is passed to our controller method as a method parameter, by using Spring type converters. Using type converters is a good choice if we want to create "simple" value objects and inject these objects into our […] Read more

Spring From the Trenches: Using Type Converters With Spring MVC

A few weeks ago we learned how we can parse date and time information from a request parameter by using the @DateTimeFormat annotation. This is a simple and clean solution that works very well if we don't have "too many" controller methods that use this approach. The drawback of this solution is that we have […] Read more

What Prevents You From Writing Automated Tests?

If you read my blog on a regular basis, you have probably noticed that I have written many tutorials about automated testing. The problem is that some of these tutorials are quite old and outdated, and that is why I am going to update them. Here's where you come in. Before I can help you […] Read more