Spring Boot

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.

Custom API Request & Response Logging in spring boot.

Custom API Request & Response Logging in spring boot.

Ashish Lahoti

When we create RESTFul APIs in spring boot application in microservices environment. It becomes essential to log incoming API request and response and push it to centralized logging system such as Splunk or ELK for debugging. Also all the logs related to one request should have some common id to relate them. In this post we are going to solve these problems.

info and health endpoints in spring boot

info and health endpoints in spring boot

Ashish Lahoti

In spring boot microservices based application, where microservices talks to each other using RESTFul APIs. We can expose some important information about microservice such as name, version, description over some endpoints say /info and also realtime status or health over some endpoint say /health to create application dashboards, realtime alerts, track microservice updates and so on…