Mapping beans with MapStruct

Recently, I wrote several tutorials about Spring boot and Spring Data JPA. A common issue that appears when writing large applications is that you don’t want to use your entities on your front-end. The reason behind this is that your entity usually resembles how your database and your tables look like, while your model or […]

Handling errors with Spring MVC

In my previous tutorial I wrote a small Spring boot application that retrieved data from a database and showed it on a webpage. However, we only handled the happy path, usually stuff may go wrong when retrieving data or doing certain operations.

JPA made easy with Spring data’s repositories

In my previous tutorial I made a simple application to show some superheroes and supervillains. While the application did what it should do it was pretty statically because I used some mock data. With Spring Data it’s very easy to create a simple CRUD application without the hassle of creating your own DAO’s. Spring Boot […]

Validating the input of your REST API with Spring

In the next few weeks I will be writing a small web application and in these articles I’m going to explain certain aspects of it. Previous time I mentioned how you could secure your REST API (partially), and this time I will be talking about how to validate the input you send to the REST […]

Testing modern web applications

If you’re a web developer like me, then you probably know that writing tests for an application means that you have to test various parts of the application. Modern web architectures usually contain the necessary front-end logic, a REST back-end and some data persistence. Having to test your application means that you want to cover […]

Testing your Spring Boot application with Selenium

The past couple of weeks I wrote several kind of tests for my Spring Boot application, we started of with¬†some integration tests for our REST service, and today I’m writing the last part of the series with some functional/integration tests for the application using Selenium.

Testing your Spring Data JPA repository

With Spring Data JPA, persisting data is quite easy. You no longer need to write complex DAO’s or repositories, no, all you need is an interface. If you look at my Spring Boot tutorial, you will see that by writing¬†a few lines of code for creating our interface, we’re able to read, update, delete and […]