Method Constraints with Bean Validation 2.0 1. Overview In this article, we’ll discuss how to define and validate method constraints using Bean Validation 2.0 (JSR-380). In the previous article, we discussed JSR-380 with its built-in annotations, and how to implement property validation. Here, we’ll focus on the different types of… Continue Reading javax-validation-method-constraints

Microservices with Oracle Helidon 1. Overview Helidon is the new Java microservice framework that has been open sourced recently by Oracle. It was used internally in Oracle projects under the name J4C (Java for Cloud). In this tutorial, we’ll cover the main concepts of the framework and then we’ll move… Continue Reading microservices-oracle-helidon

CDI Interceptor vs Spring AspectJ 1. Introduction The Interceptor pattern is generally used to add new, cross-cutting functionality or logic in an application, and has solid support in a large number of libraries. In this article we’ll cover and contrast two of these major libraries: CDI interceptors and Spring AspectJ.… Continue Reading cdi-interceptor-vs-spring-aspectj

Securing Java EE with Spring Security 1. Overview In this quick tutorial, we’ll be looking at how to secure a Java EE web application with Spring Security. 2. Maven Dependencies Let’s start with the required Spring Security dependencies for this tutorial: <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>4.2.3.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>4.2.3.RELEASE</version>… Continue Reading java-ee-spring-security