Spring Framework

Spring Data JPA Tutorial: Configuration

After we have declared the required dependencies in our POM file, we have to configure the application context of our Spring application. This blog post describes how we can configure the persistence layer of a Spring application that uses Spring Data JPA and Hibernate. Let’s get started. Additional Reading: If you are not familiar with […] Read more

Creating RESTful Urls with Spring MVC 3.1 Part Three: UrlRewriteFilter

This blog entry describes how you can create RESTful url addresses to your web application with Spring MVC 3.1 and UrlRewriteFilter. In other words, the url addresses of your application must fulfill following requirements: An url address must have a suffix in it (in other words, an url address most not contain a suffix like […] Read more

Creating RESTful Urls with Spring MVC 3.1 Part One: default-servlet-handler

This blog entry describes how you can create a web application which has restful url addresses by using Spring MVC 3.1 and the default-servlet-handler element of MVC XML namespace. The requirements for RESTful urls are given in following: An url address must no have suffix in it (in other words, an url address most not […] Read more

Testing that All Service Methods Are Annotated with @Transactional Annotation

A common method of setting transaction boundaries in Spring Framework is to use its annotation driven transaction management and annotate service methods with @Transactional annotation. Seems pretty simple, right? Yes and no. Even though the annotation driven transaction management of Spring Framework is easy to setup and use, there are a few things which you […] Read more

One day we decided to optimize the translation process of one of our web applications to reduce the number of resource files from three to two. Our web application supported two languages (Finnish and English), and the default resource file had the exactly same content than the resource file for the Finnish language. Of course […] Read more