-
Enterprise Java
Using @ConfigurationProperties in Spring Boot
In my latest blog post I described shortly how one can configure mail in Spring Boot application. To inject properties…
Read More » -
Enterprise Java
Testing mail code in Spring Boot application
Whilst building a Spring Boot application you may encounter a need of adding a mail configuration. Actually, configuring the mail…
Read More » -
Enterprise Java
Validation groups in Spring MVC
Validation constraints in Bean Validation may be added to one or more groups via groups attribute. This allows you to…
Read More » -
Enterprise Java
Spring MVC Integration Testing: Assert the given model attribute(s) have global errors
In order to report a global error in Spring MVC using Bean Validation we can create a custom class level…
Read More » -
Enterprise Java
Spring 4.1 and Java 8: java.util.Optional
As of Spring 4.1 Java 8’s java.util.Optional, a container object which may or may not contain a non-null value, is…
Read More » -
Core Java
JUnit: testing exception with Java 8 and Lambda Expressions
In JUnit there are many ways of testing exceptions in test code, including try-catch idiom, JUnit @Rule, with catch-exception library.…
Read More » -
Enterprise Java
Spring 4: CGLIB-based proxy classes with no default constructor
In Spring, if the class of a target object that is to be proxied doesn’t implement any interfaces, then a…
Read More » -
Enterprise Java
Better error messages with Bean Validation 1.1 in Spring MVC application
Bean Validation 1.1, among many new features, introduced error message interpolation using Unified Expression Language (EL) expressions. This allows to…
Read More » -
Core Java
Lambda Expressions and Stream API: basic examples
This blog post contains a list of basic Lambda expressions and Stream API examples I used in a live coding…
Read More »