Query by Example in Spring Data

We are currently using Spring Data JPA in a project and really love it. Lately we came across a feature we sort of oversaw so far in Spring Data’s excellent...

Spring Boot's @Conditional Annotations

One of the outstanding features of Spring Boot is without doubt its auto-configuration capability. However, auto-configuration is implemented upon another great Spring feature: conditional annotations. @Conditional Annotations Spring 3.1...

Quick Tip - AssertJ

As one of my current projects is heavily Spring Boot based, I naturally came across the boot-starter-test package very early. The starter-test module comes with a couple of pre-configured...

Spring Bean Removal

In one of my current projects we had the requirement to remove Spring beans during application startup. The actual context being that batch programs shared the same application code then...

Environment Meta-Annotations

Starting with Spring 3.1, the framework introduced a new @Profile annotation - along with the introduction of the new environment abstraction. The @Profile annotation can be applied...

Java Codecache

When a Java program is run, it executes the code in a tiered manner. In the first tier, it uses the so-called client compiler (C1 compiler mode) in order to...

Grails, GPars and Hibernate

The GPars library is a great way to add concurrency supporting constructs to your Groovy code. It equips Groovy projects with powerful concurrency concepts like parallel collections, map reduce...