Difference Between @NotNull, @NotEmpty, and @NotBlank Constraints in Bean Validation 1. Overview Bean Validation is a standard validation specification that allows us to easily validate domain objects by using a set of constraints declared in the form of annotations. While overall, the use of bean validation implementations such as Hibernate Validator… Continue Reading java-bean-validation-not-null-empty-blank

Fifth Round of Improvements to the Reddit Application REST Spring 1. Overview Let’s continue moving forward the Reddit application from our ongoing case study. 2. Send Email Notifications on Post Comments Reddit is missing email notifications – plain and simple. What I’d like to see is – whenever someone comments… Continue Reading reddit-web-app-improvements-5

Spring Data REST Events with @RepositoryEventHandler 1. Introduction While working with an entity, the REST exporter handles operations for creating, saving, and deleting events. We can use an ApplicationListener to listen to these events and execute a function when the particular action is performed. Alternatively, we can use annotated handler which filters… Continue Reading spring-data-rest-events

Basic and Digest Authentication for a REST Service with Spring Security Table of Contents * 1. Overview * 2. Configuration of Basic Authentication * 2.1. Satisfying the stateless constraint – getting rid of sessions * 3. Configuration of Digest Authentication * 4. Supporting both authentication protocols in the same RESTful… Continue Reading basic-and-digest-authentication-for-a-rest-api-with-spring-security