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
I think that the best part of writing a blog is to get comments from my readers. Because I have learned a lot from my readers, I want to “reward” the best comments, help you to learn new things, and (hopefully) encourage people to leave more comments. The rules are simple: I select X best […] Read more
A few days ago I had to write a controller method that is used to upload files to a Spring web application. This is an easy task, but I had another requirement that turned out to be a problem: every file has an expiration date that must be given when the file is uploaded. What […] Read more
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
The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read more
I think that the best part of writing a blog is to get comments from my readers. Because I have learned a lot from my readers, I want to “reward” the best comments, help you to learn new things, and (hopefully) encourage people to leave more comments. The rules are simple: I select X best […] Read more