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.
admin
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
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.
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.
How to trace HTTP Requests in Spring Boot using a Filter
This tutorial shows how to trace HTTP requests using different options such as the CommonsRequestLoggingFilter . We will also show how to dump HTTP request for reactive applications using Spring Boot’s WebClient.
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.
Configuring Undertow in Spring Boot Applications
Undertow is a lightweight, high-performance web server that you can use as Web Server in Spring Boot applications. This tutorial will guide you through the steps to configure Undertow and explain specific properties to optimize its performance.
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.
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.
Configuring Tomcat JDBC Pool on Spring Boot
Spring-Boot supports HikariCP (default), tomcat-jdbc and Commons DBCP as Connection Pool for your Database. Each pool, however, uses a different set of properties. In this tutorial we will learn how to configure the tomcat-jdbc
Connection Pool.