Spring Framework

Integration Testing of Spring MVC Applications: Controllers

This is the second part of my spring-test-mvc tutorial and it describes how we can write integration tests for “normal” controller methods (methods that are not using Ajax or processing form submissions). During this tutorial, we write integration tests for a simple todo application that provides CRUD functions for todo entries. This tutorial concentrates on […] Read more

Integration Testing of Spring MVC Applications: Configuration

No one of us can deny the importance of integration testing. It is an important tool which we can use to verify that our components are working together in a correct way. However, the integration testing of web applications build by using Spring MVC has been problematic. We have been using tools like Selenium or […] Read more

Spring Data JPA Tutorial Part Nine: Conclusions

This is the ninth and the last part of my Spring Data JPA tutorial. Now it is time to take a look of what we have learned, and how we should use it to build better software. Table of Contents The contents of my Spring Data JPA tutorial is given in following: Part One: Configuration […] Read more

Spring Data JPA Tutorial: Adding Custom Methods to a Single Repository

Although Spring Data JPA provides an excellent support for implementing CRUD operations and creating database queries, sometimes we need to do things that are not supported by it. For example, Spring Data JPA doesn't provide a built-in support for querying DTOs by using SQL. Luckily for us, we can "extend" our Spring Data JPA repositories […] Read more

Spring Data JPA Tutorial: Pagination

My Spring Data JPA tutorial has taught us how we can create database queries and sort our query results with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. This search function sorts the returned todo entries in […] Read more

Spring Data JPA Tutorial: Sorting

My Spring Data JPA tutorial has taught us how we can create both static and dynamic database queries with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. However, we haven't paid any attention to one very important […] Read more