spring boot

Creating an Executable Jar in Spring Boot

Creating an Executable Jar in Spring Boot Creating an executable JAR in Spring Boot is a straightforward process that allows you to package your application along with its dependencies into a single, runnable JAR file. This makes it easy to deploy and run your application on any system with a Jav…

Response Interceptors in Spring Cloud OpenFeign

Enhancing API Communication with Response Interceptors in Spring Cloud OpenFeign Introduction: In the realm of microservices architecture, seamless communication between services is paramount. Spring Cloud OpenFeign simplifies this process by providing a declarative way to interact with RESTful API…

Feign Clients With Micrometer

Enhancing HTTP Call Monitoring in Microservices with Feign Clients and Micrometer Introduction: In the intricate ecosystem of microservices, efficient monitoring and tracing of HTTP calls are paramount for maintaining performance, diagnosing issues, and ensuring optimal service delivery. In this bl…

Handling Feign Exceptions in Spring Boot Using @RestControllerAdvice

Handling Feign Exceptions in Spring Boot Using @RestControllerAdvice Handling exceptions is a crucial aspect of developing robust microservices, especially when dealing with communication between services. In Spring Boot applications, Feign clients are commonly used for making HTTP requests to othe…

FeignContext - NoSuchBeanDefinitionException

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.netflix.feign.FeignContext' available   When you encounter a NoSuchBeanException related to FeignContext while using `@EnableFeignClients` and `@FeignClient`, it…

Feign over RestTemplate

As a spring boot developer, evaluating tools like Feign and RestTemplate requires considering various factors including ease of use, performance, scalability, maintainability, and alignment with project requirements. Here's an analysis of the advantages and disadvantages of using Feign over Res…

Changing the Feign URL dynamically at runtime

Introduction: Changing the Feign URL dynamically at runtime can be achieved by leveraging Spring Cloud's support for property resolution and dynamic configuration updates. One approach to accomplish this is by using Spring's Environment abstraction along with Spring Cloud Config Server for …

Spring Cloud Feign and HTTP Connection Pooling

Spring Cloud: Enhancing Performance with Feign and HTTP Connection Pooling Introduction: In the world of microservices, effective communication between services is paramount. Spring Cloud offers a suite of tools to simplify the development of cloud-native applications. Among these tools, Feign and …

Spring Cloud Feign vs. OpenFeign

Introduction: In the world of microservices architecture, where communication between services is paramount, developers often rely on robust tools to facilitate interaction. Among these tools, Feign has emerged as a popular choice, offering a declarative HTTP client for easier RESTful service consu…

@EnableFeignClients in Spring

Introduction In modern software development, microservices architecture has become a popular choice due to its scalability, flexibility, and maintainability. However, managing communication between these microservices can be challenging. Enter Feign, a declarative web service client developed by Ne…

Spring Boot : API to upload and process Excel file.

Spring Boot Examples : API to upload and process Excel file. In this post, we will write code to process excel file from API and conter that to json list of object using spring boot, apache poi and java 21. Lets start.. we are using... 1, Spring Boot 2, Java 21 3, Apache POI (to process excel) Here…

Load More
That is All