Spring 5 MVC Hello World using Annotation

In the previous tutorial, we have created a simple Spring MVC hello world example by using XML configuration. But in […]

Continue reading...

How to check if user is logged-in or not in WordPress

In WordPress, we can use the is_user_logged_in() function to identify whether a current user is logged in or not. is_user_logged_in() […] Continue reading »

Getting started with ELK Stack

This article will guide you on a basic overview of ELK (Elasticsearch, Logstash, and Kibana) Stack and how-to set up […] Continue reading »

How to get author details in WordPress

In WordPress, we can use the get_the_author_meta(string $field) function to retrieve the author’s details stored in the database object. get_the_author_meta() […] Continue reading »

How to display all UTC offset in Java 8

In Java 8, we can use ZoneId.getAvailableZoneIds() to get all unique zone id and LocalDateTime to get UTC offset of […] 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 »

1 16 17 18 19 20 45