@ConfigurationProperties Annotation in Spring Boot

@ConfigurationProperties annotation is used to pulling up a “group of configuration values” from the properties file. @ConfigurationProperties annotation is also […]

Continue reading...

Java 8 – Difference between two LocalDate

In Java 8, we can use Period.between(startDate, endDate) method to find out the difference between two LocalDate instances. Period is […] Continue reading »

Display all ZoneId in Java 8

In Java 8, ZoneId.getAvailableZoneIds() method return all available unique ZoneId and we can loop it for display. static Set<String> getAvailableZoneIds(); […] Continue reading »

Java 8– Calculate date & time difference between two Zone

In Java 8, we can use LocalDateTime.now(ZoneId.of(String zoneId)) to get current LocalDateTime instance of the zoneId  and Duration to calculate […] Continue reading »

Java 8 – Calculate difference between two LocalDateTime

In this short article, we’ll learn how to calculate the difference between two dates in Java 8. We can use […] Continue reading »

Spring Data JPA Auditing using AuditorAware

In this article, we’ll explore the Spring Data JPA Auditing using AuditorAware. In every business application, we need to audit […] Continue reading »

IntelliJ IDEA – System.out.println shortcut

In IntelliJ IDEA, type sout and press the Enter or Tab button from your keyboard to generate System.out.println() automatically. P.S. Tested with IntelliJ IDEA 2019.3.3 (Community Edition) […] Continue reading »

IntelliJ IDEA – public static void main shortcut

In IntelliJ IDEA, type main and press the Enter or Tab button from your keyboard to generate public static void […] Continue reading »

How to create Token in Java

In this article, we will show you a few ways to create/generate a unique token in Java. Creating a unique […] Continue reading »

Lazy Initialization in Spring Boot

In this article, we’ll see how to configure the lazy initialization in the Spring Boot application. Spring Boot 2.2 introduces […] Continue reading »

Circular Dependencies in Spring

This post is all about how to resolve circular dependency issue in Spring causing UnsatisfiedDependencyException. In simple words when two […] Continue reading »

Spring Boot Forgot Password Example

This guide will help you to create the Spring Boot REST API for forgot password. The password recovery feature is […] Continue reading »

1 4 5 6 7 8 33