Spring @Value Annotation Guide

Spring @Value Annotation Guide

Ashish Lahoti

In this article, we’ll learn how to inject values for Primitives, List, Map, and Date with inline values and from property file using @Value Annotation with examples. We’ll also see its usage with Constructor-based & Setter-based Injection, and SpEL.

Blockchain Explained

Blockchain Explained

Ashish Lahoti

Most of us think Blockchain as the technology behind Bitcoin. While this was its original purpose, blockchain is capable of so much more…

Useful Hugo Shortcodes

Useful Hugo Shortcodes

Custom Hugo Shortcodes with examples

Ashish Lahoti

If you are using Hugo as a static site generator tool then you might have used hugo built-in shortcodes but here are some amazing hugo shortcodes which can be used in markdown files of your hugo website.

Add Structure Data JSON-LD in Hugo Website Pages

Add Structure Data JSON-LD in Hugo Website Pages

Guide to create a Site Schema partial in Hugo

Ashish Lahoti

When you add structure data to your website, it helps google, bing or other website indexers to understand the content for your website and pages which leads to better search results for your website and eventually helps in SEO ranking.

Double Colon (::) Operator in Java 8

Double Colon (::) Operator in Java 8

Method Reference in Java 8

Ashish Lahoti

The double colon :: operator is introduced in Java 8 for method reference. It is a shorthand syntax for lambda expression that executes one method. You can write more compact and readable code using double colon operator as compare to anonymous classes and lambda expression. We are going to understand its usage with lots of examples.