Getting Started with NetFlix Feign Client

Feign is a declarative web service client that simplifies the process of making HTTP requests in a Spring Boot application. It allows you to define a Java interface and annotate it with mappings to REST endpoints, making the code more readable and maintainable. Feign integrates seamlessly with Spring Cloud, providing a powerful tool for microservice communication.

Read more

Spring Cloud Gateway made simple

Spring Cloud Gateway is a tool provided by Spring Cloud that helps in routing incoming requests to different microservices. It acts as a gateway (or proxy) that routes client requests to various services based on certain conditions. In this tutorial we will continue our Spring Cloud Journey

Read more

JSON Structured Logging in Spring Boot 3.4

Logging is an essential aspect of software development, providing valuable insights during application troubleshooting. With the release of Spring Boot 3.4, structured logging in JSON format has been made easier, enabling developers to leverage advanced search and analytics features. This article will guide you through the steps of setting up JSON structured logging in Spring Boot 3.4, along with customizing log formats to fit your application’s needs.

Read more

Getting started with Spring Cloud: Service Discovery

In this tutorial, you’ll learn how to set up service discovery using Spring Cloud and Netflix Eureka. Service discovery is a key component of microservices architecture that allows services to discover and communicate with each other without hardcoding their network locations. We’ll create an Eureka Server for service registration and two microservices—Card Service and User Service—that will register with the Eureka server and interact with each other.

Read more

How to configure Logback with Spring Boot

Logback is a powerful and flexible logging framework for Java applications. It is designed to be faster and have a smaller memory footprint compared to its predecessor, Log4j. Logback is the default logging framework used in Spring Boot, making it an excellent choice for enterprise applications due to its simplicity and performance.

Read more

How to change the Server port in Spring Boot

In a Spring Boot application, the default web server port is set to 8080. However, there are various scenarios where you might need to change this port, such as avoiding conflicts with other applications or adhering to specific deployment requirements. This tutorial will guide you through multiple methods to change the default web server port in a Spring Boot application, ensuring you have the flexibility to choose the approach that best fits your needs.

Read more

Configuring Spring Boot Tomcat WebServer

This tutorial guides you through customizing Spring Boot’s embedded Tomcat web server for optimal performance and security. The embedded server eliminates the need for a separate application server like traditional Tomcat installations.

Read more