The first part of my Spring Batch tutorial explained why you should use Spring Batch instead of writing your own batch jobs and identified the basic building blocks of a Spring Batch job. Before you can move on and see Spring Batch in action, you have to get the required dependencies. After you have read […] Read More about Spring Batch Tutorial: Getting the Required Dependencies With Maven
Category: Programming / Spring Framework (3 / 13)
Spring Batch Tutorial: Introduction
Most enterprise applications rely heavily on batch jobs. They run during the night and do all the time consuming tasks that cannot be done during business hours. These tasks are often critical to the business and errors can cause serious damage (i.e. cost a lot of money). That's why it is important to write robust […] Read More about Spring Batch Tutorial: Introduction
Spring From the Trenches: Creating PDF Documents With Wkhtmltopdf
When we are writing a web application, we often face a requirement which states that our application must provide reporting to its users. Typically the users of our application want to see these reports on the user interface and have the possibility to export them as Excel and/or PDF documents. The problem is that creating […] Read More about Spring From the Trenches: Creating PDF Documents With Wkhtmltopdf
Spring Data JPA Tutorial: Adding Custom Methods to All Repositories
The previous part of this tutorial taught us how we can add custom methods into a single repository. Although that is a very useful skill, it doesn't help us when we have to add the same method into all repositories of our application. Luckily for us, Spring Data provides a way to add custom methods […] Read More about Spring Data JPA Tutorial: Adding Custom Methods to All Repositories
Spring From the Trenches: Creating a Custom HandlerMethodArgumentResolver
A few weeks ago we learned to transform the value of a single request parameter into an object, which is passed to our controller method as a method parameter, by using Spring type converters. Using type converters is a good choice if we want to create "simple" value objects and inject these objects into our […] Read More about Spring From the Trenches: Creating a Custom HandlerMethodArgumentResolver
Spring From the Trenches: Using Type Converters With Spring MVC
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 about Spring From the Trenches: Using Type Converters With Spring MVC