Internationalization (i18n) with Spring

When developing applications, it can be interesting to put labels in a separate properties file, so that they can be re-used. For example, we often noticed that within our applications there were slight variations on specific words, which broke consistency. The easiest way to solve that is to centralize these labels. Another benefit you get […]

Mapping with Dozer

Recently I wrote a tutorial about mapping with MapStruct. Testing it out for the first time, I noticed several differences between MapStruct and the mapping framework that I have the most experience in, called Dozer. That’s why I’m going to make a similar tutorial to my previous one, utilizing the Dozer framework this time, allowing […]

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 […]

E2E testing with Nightwatch.js

A while back I wrote some tutorials about E2E testing with FluentLenium (Java), E2E testing for Meteor using Velocity and recently E2E testing AngularJS applications using Protractor. Today I’m also going to test an AngularJS application, but this time I will be using Nightwatch.js. While Nightwatch.js is not made specifically for AngularJS applications, you can […]

More fun with AngularJS $http: a loading indicator

In my previous tutorial we used $http to create a utility that automatically converts all ISO 8601 date strings to proper JavaScript dates. $http allows us to do a lot of things. Ever wanted to create a “Loading, please wait…” indicator when your data is loading over your REST service? With $http you can easily […]