Scaling out with Spring Session
Stateless architecture has become increasingly popular during resent years and for good reasons. However, stateful session based applications continue to play an important role, for example when issuing CSRF tokens…
Stateless architecture has become increasingly popular during resent years and for good reasons. However, stateful session based applications continue to play an important role, for example when issuing CSRF tokens…
This post is a summary of first impressions of a few android related frameworks that we (the Android team at Jayway) tried out during a competences session recently. Spring for…
If you have worked a while with jUnit you may have seen jUnit Rules. Simply put, a field in a test class annotated with @Rule is a class that lets…
I have written about Spring's support for web response error handling a few times before (e.g. about custom error responses and how they can be generalized). This time, we will…
It is not unusual that your web service needs to communicate with another web service in order to serve its clients. In the old days, that would imply that an…
A big part of the DevOps responsibilities is to monitor and maintain the health of running servers. If a production server goes down, appropriate actions must be undertaken to bring…
Spring Boot brings about some welcome defaults configurations that significantly decreases the development time of Spring projects. It also has some useful additions when it comes to simplified integration testing.…
It is now about four and a half years since the Servlet 3.0 specification was released in December 2009, together with Java EE 6. One feature that came in Servlet…
If you are a Spring developer and and you have created a Java based container configuration, you have probably come across the @PropertySource annotation for importing resources. It was first…
Spring 4 brings some nice improvements to how autowiring of generic types are handled. Before going into details, let's look into the current state of affairs. Basics Consider the following…
Spring 4 is around the corner. Milestone releases has been available for a while, the first release candidate was released earlier today, and the final release is expected before the…
Last week, I had the privilege of speaking at SpringOne 2GX in Santa Clara. As the name implies, the conference was focused around Spring, Groovy and Grails. The conference tagline…
Some time ago, I wrote about how the error response of a Spring based REST API can be enhanced, in order to provide the clients with a better understanding of…
In the previous blog post, I explained how a custom @ExceptionHandler can be used to return feedback to REST API clients when they are submitting erroneous requests. However, the suggested…
After watching Jonathan Dahl's presentation about API design from the Øredev conference last year, especially the parts about Smart Validations, it is apparent that you can do much more to…