Learn how to protect a Spring Boot Jersey application with Spring Social login and OAuth2. >>>
Yearly Archives: 2020
Arrays.asList vs new ArrayList(Arrays.asList())
They may look very similar but they aren’t. Let’s explore why. >>>
Checking if a Class Exists in Java
Explore the nuances of using Class.forName() to check the existence of a class in the Java classpath >>>
Passing Command Line Arguments in Gradle
Learn how to pass command-line arguments from Gradle >>>
How to Implement Hibernate in an AWS Lambda Function in Java
Look at the challenges of using any RDBMS within a Lambda, and how and when Hibernate can be useful >>>
Java Weekly, Issue 350
GC enhancements in Java 15, JPA lifecycle events, Docker and Spring Boot, Distributed tracing, and perks of hiring junior engineers: packed in a diverse weekly! >>>
Keycloak User Self-Registration
Learn how to enable user self-registration in Keycloak. >>>
DAO vs Repository Patterns
Understand the difference between the DAO and Repository patterns with a Java example. >>>
Difference Between when() and doXxx() Methods in Mockito
Learn the advantages and disadvantages of the configuring a mock object the when().thenXxx() or the doXxx().when() way. >>>
SSH Connection With Java
Learn how to establish an SSH connection with Java using two of the available Java libraries – JSch and Apache Mina SSHD. >>>
Rolling Back Migrations with Flyway
Learn how to safely roll back migrations using Flyway. >>>
Dates in OpenAPI Files
Let’s see how to declare dates in an OpenAPI file, in this case, implemented with Swagger. >>>
Creating Temporary Directories in Java
Learn how to create temporary directories in Java. >>>
IllegalMonitorStateException in Java
If you want to learn why your code keeps throwing this exception, this article is for you. >>>
Custom User Attributes with Keycloak
Learn how to add extra attributes to a user in Keycloak. >>>
Java Weekly, Issue 349
Faster startup for JVM, mind-boggling Java puzzlers, customizing JPA repositories, Slicing Boot tests, and professional video calls: All in a very diverse weekly! >>>
Hiding Endpoints From Swagger Documentation in Spring Boot
Let’s have a look at how we can hide endpoints from Swagger API documentation. >>>
Using Hidden Inputs with Spring and Thymeleaf
Learn how to use hidden inputs with Thymeleaf. >>>
Guide to @DynamicPropertySource in Spring
Learn how to leverage @DynamicPropertySource to manage testing with external applications. >>>
The Spring @ConditionalOnProperty Annotation
Learn all about the Spring @ConditionalOnProperty annotation. >>>