Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems and it enables engineers to quickly develop cloud-native applications. One of the features is to maintain application configurations ouddtside the application. This will enable configuration change without restarting microservice application.
Global Exception Handling Using Spring @RestControllerAdvice in REST Services
A REST API developer will have two requirements related to error handling.
- Common place for Error handling
- Similar Error Response body with a proper HTTP status code across APIs
Both requirements can be addressed by using RestControllerAdvice annotation in Spring.
Git Strategies for Software Development: Part 2
Please go through the earlier article before reading this article. I will assume the strategy defined in first article is clear before reading ahead. This article will focus on multiple releases in parallel. A software team working on two or more releases at a time may refer to this strategy.
Let’s consider two releases starting in parallel from today.
A Look at Java Optionals
Optional is a container object that may or may not contain a non-null value. If a value is present, isPresent()
will return true
and get()
will return the value.
Package : java.util
public final class Optional<T>
extendsObject