Configuring Custom Converters and Content Negotiation in Spring Boot
Spring Boot applications often require handling diverse data formats during request processing and response generation. By implementing custom converters and configuring content negotiation strategies, developers can insure seamless data exchange between clients and servers regardless of the preferred media type.
Implementing Custom Data Conver ...
Posted on Sat, 19 Sep 2026 16:28:28 +0000 by designerguy
Disabling Swagger UI in Spring Boot to Prevent Vulnerability Scanning
When deploying Spring Boot applications to production, it’s essential to completely disable the Swagger UI to avoid exposing API documentation and to pass automated security scans. This article outlines a practical approach to turn off Swagger, including hiding any residual Swagger‑related endpoints.
Step 1: Disable the Swagger Docket bean via ...
Posted on Thu, 17 Sep 2026 16:38:39 +0000 by garry
Quick Start Guide to Swagger for REST API Documentation
Introduction to Swagger
Key Benefits of Swagger
Implementation Guide
Introduction to Swagger
Swagger represents a comprehensive specification and framework designed for generating, documenting, and visualizing RESTful web services. It has emerged as the leading solution for API documentation acrosss modern software development.
Key ...
Posted on Sat, 12 Sep 2026 16:54:45 +0000 by yogadt
Deploying Kafka with Docker Compose and Bitnami Images
Create an isolated Docker network for the stack:
docker network create --driver bridge kafkaNet
ZooKeeper container
docker run -d \
--name zk \
--network kafkaNet \
-p 2181:2181 \
-e ALLOW_ANONYMOUS_LOGIN=yes \
bitnami/zookeeper:latest
Kafka broker
Replace HOST_IP with the address Docker will advertise to cleints outside the bridge ...
Posted on Fri, 11 Sep 2026 16:16:46 +0000 by suge
Implementing Centralized Configuration with Spring Cloud Config
Spring Cloud Config provides a centralized mechanism for managing external configurations across distributed systems and microservices. It operates with a server-client architecture. The Config Server, also known as the distributed configuration center, is a standalone microservice responsible for connecting to configuration repositories and of ...
Posted on Fri, 11 Sep 2026 16:03:21 +0000 by bsbotto
Mastering Unit Testing in Spring Boot with Mockito
Integrating a robust mocking framework into a Spring Boot ecosystem significantly streamlines the vaildation process. By isolating components and simulating external dependencies, developers can verify business logic without triggering actual database transactions, network calls, or complex service interactions. The following implementations de ...
Posted on Thu, 10 Sep 2026 16:50:34 +0000 by maff20
Log4j2 Integration with Spring Boot
Log4j2 offers significant advantages over Logback, particularly in terms of performance and asynchronous logging capabilities. While Spring Boot typically uses Logback by default, there are compelling reasons to consider Log4j2 instead, especially in high-concurrency scenarios where async logging can make a substantial difference in system perf ...
Posted on Thu, 10 Sep 2026 16:09:55 +0000 by castor_troy
Building Robust File Upload Handling in Spring Boot Applications
This guide demonstrates how to implement secure and production-ready file upload capabilities using Spring Boot. The solution covers configuration, controller logic, error handling, and basic validation—without relying on external storage services.
Project Setup
Initialize a Spring Boot project (v3.x recommended) with these core dependencies:
...
Posted on Mon, 07 Sep 2026 16:08:22 +0000 by mikes1471
Implementing Distributed Locks with Redis in Java Spring Applications
In a Spring Boot单体应用, standard locking mechanisms work well within a single JVM. How ever, when deploying to a Spring Cloud微服务集群 enviroment, these traditional locks become insufficient since multiple service instances can execute the same scheduled task simultaneously.
A practical scenario involves microservices using Spring's @Schedul ...
Posted on Sun, 06 Sep 2026 16:47:46 +0000 by phpcoder24july
CloudEvents: A Cloud-Native Event Specification for Interoperable Systems
Overview
CloudEvents is a vendor-neutral specification developed under the Cloud Native Computing Foundation (CNCF) for describing event data in a common format. Positioned within the CNCF landscape under "Streaming and Messaging", it provides a standardized envelope for events to facilitate interoperability across diverse cloud platf ...
Posted on Wed, 02 Sep 2026 16:09:11 +0000 by examancer