Spring Framework

Lego bricks
I received a question from a reader of my Spring Data book last week and decided to publish my answer as a blog post. The question was: How can I use Querydsl with Spring Data JPA in a multi-module Maven project? This blog post answers to that
Rusty milary helmet
I am a bit ashamed to admit this but until yesterday, I had no idea that I can add validation to a REST API by using the @Valid and the @RequestBody annotations. This was not working in Spring MVC 3.0 and for some reason I had not noticed that the
Labyrinth on a blackboard
The previous parts of my Spring MVC Test tutorial have described how we can write integration tests for a REST API. Although the techniques described in those blog posts are useful, the problem is that our assertions were not very elegant. Our
Wood Jigsaw
When Spring Framework 3.2 was released, spring-test-mvc was officially included in this release under the name Spring MVC Test Framework. Although many things remained the same, there are some changes that might cause confusion when we are migrating

Integration Testing of Spring MVC Applications: Security

A hand embedding the final piece of the puzzle
In the previous parts of my spring-test-mvc tutorial, we learned to write integration tests for our controllers. However, we have not talked about security yet, even though securing our data is a crucial part of (almost) every application. This is