Self-Contained Testing Using an In-Memory Database 1. Overview In this tutorial, we’re going to create a simple Spring application which relies on an in-memory database for testing. For the standard profile, the application will have a standalone MySQL database configuration, which requires having the MySQL server installed and running, with… Continue Reading spring-jpa-test-in-memory-database

Converters, Listeners and Validators in Java EE 7 Java EE 1. Overview Java Enterprise Edition (JEE) 7 provides some useful features e.g. for validating user input, converting values into appropriate Java data types. In this tutorial, we’ll focus on those features provided by converters, listeners, and validators. 2. Converters A… Continue Reading java-ee7-converter-listener-validator

Templating with Handlebars 1. Overview In this tutorial, we’ll look into the Handlebars.java library for easy template management. 2. Maven Dependencies Let’s start with adding the handlebars dependency: <dependency> <groupId>com.github.jknack</groupId> <artifactId>handlebars</artifactId> <version>4.1.2</version> </dependency> 3. A Simple Template A Handlebars template can be any kind of text file. It consists of… Continue Reading handlebars