Tagged articles

Spring Boot

4358 articles · Page 18 of 44
Lobster Programming
Lobster Programming
Oct 21, 2024 · Backend Development

Mastering Order State Management with Spring State Machine

This guide demonstrates how to use Spring State Machine to elegantly manage order status changes by defining states, events, configuring transitions, and implementing listeners, providing Maven dependencies and Java code examples for building extensible, event‑driven workflows in backend applications.

Spring BootSpring State Machinebackend development
0 likes · 7 min read
Mastering Order State Management with Spring State Machine
Architect
Architect
Oct 20, 2024 · Backend Development

Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code

This article walks through creating a Spring Boot project, handling IDE setup, managing Spring Cloud and Kafka version compatibility, using Maven for dependency management, and provides essential scaffold code such as global exception handling, logging aspects, CORS configuration, and Swagger integration.

CORSException HandlingMaven
0 likes · 12 min read
Spring Boot Project Setup: Initialization, Version Management, and Core Scaffold Code
Sohu Tech Products
Sohu Tech Products
Oct 18, 2024 · Backend Development

Design and Refactoring of a Java SDK with Proxy Optimization and Integration Test Enhancements

The article details how a Java SDK for a CIM instant‑messaging system was redesigned using Java 8+ features and the Builder pattern, introduced a lightweight proxy resembling RPC frameworks with dynamic‑URL support, and added comprehensive integration tests that verify automatic client reconnection and reliable message delivery across clustered servers.

Builder PatternRPCSDK
0 likes · 10 min read
Design and Refactoring of a Java SDK with Proxy Optimization and Integration Test Enhancements
macrozheng
macrozheng
Oct 18, 2024 · Backend Development

Master Spring Boot Validation: 10 Essential Tips and Custom Techniques

This article presents ten practical techniques—including built‑in annotations, custom constraints, server‑side checks, internationalized messages, validation groups, cross‑field rules, exception handling, testing, and client‑side considerations—to help developers implement robust validation in Spring Boot applications.

Custom AnnotationsJSR-303Spring Boot
0 likes · 17 min read
Master Spring Boot Validation: 10 Essential Tips and Custom Techniques
Programmer XiaoFu
Programmer XiaoFu
Oct 18, 2024 · Backend Development

Unlock Spring Boot’s Powerful Built‑In Features You’re Not Using

This article walks through Spring Boot’s built‑in utilities—including request logging with CommonsRequestLoggingFilter, request/response wrappers, the OncePerRequestFilter base class, and AOP helpers like AopContext, AopUtils, and ReflectionUtils—showing how to configure and apply them in real code.

AOPContentCachingWrapperOncePerRequestFilter
0 likes · 12 min read
Unlock Spring Boot’s Powerful Built‑In Features You’re Not Using
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 17, 2024 · Backend Development

Mastering Spring Boot 3 @ComponentScan: Advanced Configurations & Examples

This article provides a comprehensive, step‑by‑step guide to using Spring Boot 3's @ComponentScan annotation, covering basic usage, package filtering, include/exclude filters, lazy initialization, custom name generators, scoped proxies, and custom scope resolvers, complete with runnable code samples and output screenshots.

ComponentScanSpring Bootbackend development
0 likes · 12 min read
Mastering Spring Boot 3 @ComponentScan: Advanced Configurations & Examples
Architecture Digest
Architecture Digest
Oct 16, 2024 · Backend Development

Implementing Request and Response Encryption in Spring Boot with ControllerAdvice

This article walks through the design and implementation of symmetric request/response encryption for a Spring Boot API, covering requirement analysis, data models, custom ControllerAdvice for decryption and encryption, serialization challenges with FastJson and Jackson, and final configuration to keep encrypted payloads consistent across Android, iOS, and H5 clients.

API EncryptionControllerAdviceFastjson
0 likes · 12 min read
Implementing Request and Response Encryption in Spring Boot with ControllerAdvice
macrozheng
macrozheng
Oct 16, 2024 · Backend Development

Master Spring Boot Request Logging, Wrappers, and AOP Utilities in One Guide

This article explains how to use Spring Boot's built‑in request logging, request/response wrappers, OncePerRequestFilter, and AOP utility classes such as AopContext, AopUtils, and ReflectionUtils, providing configuration snippets and practical code examples for backend developers.

AOPFiltersRequest Logging
0 likes · 13 min read
Master Spring Boot Request Logging, Wrappers, and AOP Utilities in One Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 16, 2024 · Backend Development

Master Java HTTP Clients: From HttpClient to OkHttp and WebClient

This article introduces four Java HTTP client libraries—Java HttpClient, Apache HttpComponents, OkHttp, and Spring WebClient—explains their key features, provides async GET and sync POST code examples for each, and offers guidance on selecting the right client for Spring Boot and plain Java projects.

Apache HttpClientHTTP clientSpring Boot
0 likes · 14 min read
Master Java HTTP Clients: From HttpClient to OkHttp and WebClient
Su San Talks Tech
Su San Talks Tech
Oct 15, 2024 · Backend Development

How Bean Searcher Lets You Build Complex Queries with One Line of Code

Bean Searcher is an open‑source, Apache‑2.0 licensed ORM search engine that outperforms MyBatis by up to 100×, offering one‑line multi‑table joins, pagination, dynamic sorting, field aggregation, and extensive extensibility, with simple Spring Boot integration and customizable components for rapid backend development.

ORMSpring Bootjava
0 likes · 9 min read
How Bean Searcher Lets You Build Complex Queries with One Line of Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 15, 2024 · Backend Development

Mastering HTTP Methods in Spring Boot 3: A Complete Guide to RESTful APIs

This comprehensive tutorial explains how to design and implement RESTful APIs with Spring Boot 3.2.5, covering all major HTTP methods (GET, HEAD, POST, PUT, DELETE, PATCH), best‑practice endpoint design, response handling, status‑code usage, pagination, filtering, versioning, caching, and security considerations.

HTTP methodsRESTful APISpring Boot
0 likes · 17 min read
Mastering HTTP Methods in Spring Boot 3: A Complete Guide to RESTful APIs
Architect
Architect
Oct 14, 2024 · Backend Development

Designing a Unified API Response Structure with Status Codes, Annotations, and Interceptors in Spring Boot

This article explains how to create a consistent JSON API response format—including custom status codes, message fields, and a Result wrapper—by using a @ResponseResult annotation, an interceptor, and ResponseBodyAdvice in Spring Boot, while also offering tips for optimization and error handling.

API DesignInterceptorsSpring Boot
0 likes · 7 min read
Designing a Unified API Response Structure with Status Codes, Annotations, and Interceptors in Spring Boot
macrozheng
macrozheng
Oct 14, 2024 · Backend Development

Simplify MyBatis-Plus Join Queries with MPJ: A Hands‑On Guide

This tutorial demonstrates how to use the mybatis-plus-join (MPJ) library to perform left and right join queries in a Spring Boot project without writing XML, covering dependency setup, mapper changes, query construction, pagination, and practical code examples.

Join QueryMPJORM
0 likes · 10 min read
Simplify MyBatis-Plus Join Queries with MPJ: A Hands‑On Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 14, 2024 · Backend Development

Build a Custom Spring Boot 3 Application with Embedded Tomcat – Step‑by‑Step Guide

This article walks through creating a Spring Boot 3 application from scratch, demonstrating how to customize the ApplicationContext, embed a Tomcat server, define a custom SpringApplication class, configure web components, and test REST endpoints, providing complete code snippets and explanations for each step.

Embedded TomcatREST APISpring Boot
0 likes · 9 min read
Build a Custom Spring Boot 3 Application with Embedded Tomcat – Step‑by‑Step Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 13, 2024 · Backend Development

How Spring Boot Handles Async Tasks and Thread Pools: Deep Dive & Customization

This article explores Spring Boot's asynchronous task and request mechanisms, detailing how @EnableAsync, @Async, @EnableScheduling, and @Async annotations configure thread pools, examines the underlying source code, and demonstrates custom configurations for executors and schedulers to control concurrency.

AsyncConfigurationSpring Boot
0 likes · 14 min read
How Spring Boot Handles Async Tasks and Thread Pools: Deep Dive & Customization
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2024 · Backend Development

Understanding Spring Boot Integration with Log4j2 and Logback: Logging Mechanisms, Configuration, and Hot Level Updates

This article provides a comprehensive analysis of how Spring Boot integrates Log4j2 (and Logback), detailing the internal logging architecture, configuration options, initialization flow, logger groups, and how to perform hot updates of logger levels via the LoggersEndpoint or custom APIs.

ConfigurationSpring Bootbackend
0 likes · 37 min read
Understanding Spring Boot Integration with Log4j2 and Logback: Logging Mechanisms, Configuration, and Hot Level Updates
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 10, 2024 · Backend Development

Master ApplicationRunner and CommandLineRunner: Usage and Implementation in Spring Boot

This article explains the purpose of Spring Boot's ApplicationRunner and CommandLineRunner interfaces, demonstrates common startup tasks such as data initialization, configuration loading, cache population and license verification, compares their parameter handling, shows how to control execution order with @Order, and reveals the internal call chain that Spring uses to invoke these runners.

ApplicationRunnerCommandLineRunnerInitialization
0 likes · 15 min read
Master ApplicationRunner and CommandLineRunner: Usage and Implementation in Spring Boot
Architect
Architect
Oct 9, 2024 · Backend Development

Unlocking Higher Throughput: Mastering Async Requests in Spring Boot

This article explains how Spring Boot can handle HTTP requests asynchronously using Callable, WebAsyncTask, and DeferredResult, detailing the underlying servlet workflow, thread‑pool configuration, and when asynchronous processing truly improves throughput versus CPU‑bound workloads.

ServletSpring BootThreadPool
0 likes · 12 min read
Unlocking Higher Throughput: Mastering Async Requests in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 9, 2024 · Backend Development

Mastering Forest: A Practical Guide to Declarative HTTP Calls in Spring Boot

This article introduces the Forest Java HTTP client, explains its architecture and dynamic‑proxy mechanism, and provides step‑by‑step Spring Boot examples—including dependency setup, configuration, declarative interfaces, request annotations, parameter handling, and programmatic usage—so developers can quickly adopt declarative HTTP calls in their backend services.

Declarative APIForestSpring Boot
0 likes · 10 min read
Mastering Forest: A Practical Guide to Declarative HTTP Calls in Spring Boot
Ubiquitous Tech
Ubiquitous Tech
Oct 9, 2024 · Backend Development

How to Build a Personal‑Contract Lantu Pay SDK: Design Patterns, Request Flow, and Implementation Details

This article continues the open‑source design series by detailing the remaining design points of the Lantu Pay SDK, including the end‑to‑end request chain, the Post method with retry support, the use of strategy and template method patterns, and a custom @Require annotation for mandatory parameter validation.

Design PatternsHTTPSDK
0 likes · 8 min read
How to Build a Personal‑Contract Lantu Pay SDK: Design Patterns, Request Flow, and Implementation Details
macrozheng
macrozheng
Oct 8, 2024 · Backend Development

Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY

This article explores four common batch‑update techniques in MyBatis, compares their performance, shows how to configure Druid and Spring Boot to allow multi‑statement execution, and provides practical code examples and configuration tips for reliable large‑scale data updates.

Batch UpdateDruidMyBatis
0 likes · 11 min read
Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY
Architect's Guide
Architect's Guide
Oct 7, 2024 · Backend Development

RabbitMQ Overview, Installation Guide, and Delayed Message Implementation

This article introduces RabbitMQ, explains its core features and messaging model, discusses why to use it for asynchronous, decoupled, and throttled processing, and provides step‑by‑step installation instructions for macOS, Windows, and CentOS along with Java code examples for configuring and using delayed messages via the rabbitmq_delayed_message_exchange plugin.

Delayed MessageInstallationMessage Queue
0 likes · 11 min read
RabbitMQ Overview, Installation Guide, and Delayed Message Implementation
Java Tech Enthusiast
Java Tech Enthusiast
Oct 6, 2024 · Backend Development

Dynamic Class Loading and Unloading for Data Governance Tasks in Spring Boot with XXL‑Job

By implementing a plug‑in architecture that uses a custom URLClassLoader to load and unload JAR‑packaged governance tasks at runtime, the Spring Boot application can dynamically register Spring beans and XXL‑Job handlers, remove them cleanly, update configuration via YAML or Nacos, and package the solution with Maven Shade without restarting services.

ClassLoaderDynamic LoadingSpring Boot
0 likes · 21 min read
Dynamic Class Loading and Unloading for Data Governance Tasks in Spring Boot with XXL‑Job
Selected Java Interview Questions
Selected Java Interview Questions
Oct 3, 2024 · Backend Development

Spring Boot Log4j2 Integration and Logger Level Hot Update

This article explains how Spring Boot integrates Log4j2, details the internal logging initialization process, describes logger and LoggerConfig relationships, and demonstrates how to hot‑update logger levels using LoggersEndpoint or custom endpoints without restarting the application.

Logger LevelSpring Bootbackend
0 likes · 33 min read
Spring Boot Log4j2 Integration and Logger Level Hot Update
Architect
Architect
Oct 2, 2024 · Information Security

Preventing API Parameter Tampering and Replay Attacks with Signature Verification in Java

The article explains how exposed API endpoints can be intercepted and altered, and presents practical security measures—including HTTPS, encrypted parameters, timestamp‑based signatures, and a Spring Boot filter implementation—to detect and block tampering and replay attacks in a Java backend.

API securityParameter encryptionSpring Boot
0 likes · 8 min read
Preventing API Parameter Tampering and Replay Attacks with Signature Verification in Java
Top Architect
Top Architect
Oct 2, 2024 · Backend Development

Designing and Implementing a Multi‑Level Approval Workflow with Activiti

This article explains how to design a two‑level leave‑approval process using the Activiti BPMN engine, covering diagram creation, Spring‑Boot configuration, deployment, task handling, exclusive gateways, database tables, API overview, and practical tips for extending the workflow.

ActivitiBPMNProcess Automation
0 likes · 25 min read
Designing and Implementing a Multi‑Level Approval Workflow with Activiti
Shepherd Advanced Notes
Shepherd Advanced Notes
Sep 30, 2024 · Backend Development

Deep Dive into Xxl-Job Core Architecture: How It Works and Why

This article explains Xxl-Job’s lightweight distributed scheduling architecture, covering the admin console, executor startup, JobHandler initialization, HTTP server registration, task triggering logic with scheduling threads, fast/slow thread pools, routing and blocking strategies, and result callbacks, illustrated with code snippets and diagrams.

Spring BootXXL-JOBdistributed scheduling
0 likes · 21 min read
Deep Dive into Xxl-Job Core Architecture: How It Works and Why
Java Architect Essentials
Java Architect Essentials
Sep 26, 2024 · Backend Development

Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations

This article demonstrates how to build a flexible API rate‑limiting solution in Spring Boot by combining a HandlerInterceptor, Redis counters, and custom annotations with reflection, covering configuration, code examples, mapping rules, time‑window nuances, path‑parameter handling, and real‑IP considerations.

Custom AnnotationInterceptorRedis
0 likes · 18 min read
Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations
macrozheng
macrozheng
Sep 26, 2024 · Backend Development

Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide

This article explains how to integrate Spring Boot with WebSocket to create a lightweight instant‑messaging system, covering dependency setup, configuration classes, core server code, front‑end integration, essential IM modules, common deployment challenges, and provides complete example code and demos.

Instant MessagingReal‑time communicationSpring Boot
0 likes · 15 min read
Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide
Java Backend Technology
Java Backend Technology
Sep 26, 2024 · Backend Development

How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls

This guide walks you through the pain points of environment setup, shows step‑by‑step creation of a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot and Kafka, and provides ready‑to‑use Maven configurations, global exception handling, logging, CORS, Swagger, and a curated list of useful development tools.

Exception HandlingMavenSpring Boot
0 likes · 11 min read
How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls
Java Architect Essentials
Java Architect Essentials
Sep 26, 2024 · Backend Development

How Spring Boot Integrates Log4j2: Deep Dive into Logging Mechanics and Hot Updates

This article provides a comprehensive analysis of how Spring Boot 2.7.2 works with Log4j2 2.17.2, covering Log4j2's core components, Spring Boot's logging configuration options, the internal startup sequence, the LoggersEndpoint for runtime level changes, and custom hot‑update techniques, all illustrated with code snippets and diagrams.

ActuatorSpring Boothot update
0 likes · 38 min read
How Spring Boot Integrates Log4j2: Deep Dive into Logging Mechanics and Hot Updates
Su San Talks Tech
Su San Talks Tech
Sep 25, 2024 · Backend Development

Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY

This article walks through practical ways to perform batch updates in MyBatis, compares foreach, case‑when, and INSERT…ON DUPLICATE KEY techniques, explains common Druid WallFilter restrictions, and shows how to enable multi‑statement execution via JDBC and Spring configuration.

Batch UpdateDruidMySQL
0 likes · 13 min read
Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 25, 2024 · Backend Development

Master Structured Logging in Spring Boot 3.4 with ECS and Custom Formats

This guide explains why structured logging is essential for observability, shows how Spring Boot 3.4 adds out‑of‑the‑box support for Elastic Common Schema and Logstash formats, and provides step‑by‑step configurations and code examples for console output, file logging, custom fields, and custom formatters.

Elastic Common SchemaLogstashSpring Boot
0 likes · 8 min read
Master Structured Logging in Spring Boot 3.4 with ECS and Custom Formats
Ubiquitous Tech
Ubiquitous Tech
Sep 24, 2024 · Backend Development

Designing a Spring Boot Starter for Lantu Pay’s Personal‑Sign‑Up SDK

This article walks through the design and implementation of a Spring Boot Starter for the Lantu Pay SDK that supports personal sign‑up, covering project structure, configuration classes, HTTP layer abstraction using strategy and template patterns, and request/response model design with concrete code examples.

Design PatternsHTTPLantu Pay
0 likes · 8 min read
Designing a Spring Boot Starter for Lantu Pay’s Personal‑Sign‑Up SDK
Top Architect
Top Architect
Sep 24, 2024 · Backend Development

Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how excessive if‑else checks and business logic in controllers degrade code quality, and provides clean, refactored examples using @Valid validation, concise error handling, and a global exception handler to achieve more maintainable backend services.

Controller DesignSpring BootValidation
0 likes · 11 min read
Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling
Selected Java Interview Questions
Selected Java Interview Questions
Sep 23, 2024 · Operations

Comprehensive Guide to Using Apollo Configuration Center with Spring Boot and Kubernetes

This article provides a step‑by‑step tutorial on Apollo’s concepts, features, model, namespace handling, client design, high‑availability considerations, project creation, configuration management, Spring Boot client implementation, testing across environments, clusters and namespaces, and deployment on Kubernetes with Docker.

ApolloKubernetesSpring Boot
0 likes · 25 min read
Comprehensive Guide to Using Apollo Configuration Center with Spring Boot and Kubernetes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 23, 2024 · Backend Development

How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts

This guide explains why pre‑loading initial data is essential for Spring Boot applications and demonstrates four practical methods—CommandLineRunner/ApplicationRunner, bean initialization with @PostConstruct, SQL script execution, and @Sql annotation for tests—complete with code snippets and configuration details.

CommandLineRunnerData InitializationSQL Scripts
0 likes · 8 min read
How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 22, 2024 · Backend Development

Mastering RFC 7807 Problem Details in Spring Boot 3.2.5

This article explains how Spring Boot 3.2.5 implements the RFC 7807 Problem Details specification, covering the core abstractions, code examples for creating ProblemDetail and ErrorResponse objects, and practical patterns for global exception handling in Spring MVC applications.

Problem DetailsRFC 7807Spring Boot
0 likes · 8 min read
Mastering RFC 7807 Problem Details in Spring Boot 3.2.5
Lobster Programming
Lobster Programming
Sep 21, 2024 · Backend Development

Mastering Spring Boot Transaction Hooks for Advanced Business Logic

This article explains how Spring Boot’s @Transactional annotation works, introduces programmatic transaction management, and demonstrates how to create custom transaction hook functions with TransactionSynchronizationManager and TransactionSynchronization to execute custom logic at each transaction phase, improving robustness and maintainability.

Spring BootTransaction HooksTransaction Management
0 likes · 4 min read
Mastering Spring Boot Transaction Hooks for Advanced Business Logic
Programmer1970
Programmer1970
Sep 20, 2024 · Backend Development

Master Jackson in Spring Boot: Essential Annotations and Extension Points

This article provides a comprehensive guide to Jackson’s most frequently used annotations, core modules, and extension points in Spring Boot, illustrating each feature with concrete Java code examples that show how to customize serialization, deserialization, property handling, and polymorphic type processing.

DeserializationJacksonSerialization
0 likes · 24 min read
Master Jackson in Spring Boot: Essential Annotations and Extension Points
JavaEdge
JavaEdge
Sep 20, 2024 · Artificial Intelligence

Integrating LangChain4j with Spring Boot: AI Services Made Easy

This guide explains how to use LangChain4j Spring Boot starters to configure OpenAI models, create declarative AI services with @AiService, and run practical examples such as a customer‑support agent and a simple HelloWorld program, covering required dependencies, properties, and code snippets.

ChatLanguageModelDeclarative AI ServiceLangChain4j
0 likes · 8 min read
Integrating LangChain4j with Spring Boot: AI Services Made Easy
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 20, 2024 · Backend Development

Master Spring Cloud OpenFeign: Complete Guide with Code Samples

This article provides a comprehensive introduction to Spring Cloud OpenFeign, comparing it with Feign and HttpExchange, and walks through practical setup, client declaration, custom configuration, interceptors, error handling, timeout and logging settings with full code examples for Spring Boot 3.2.5.

FeignClientMicroservicesOpenFeign
0 likes · 11 min read
Master Spring Cloud OpenFeign: Complete Guide with Code Samples
macrozheng
macrozheng
Sep 19, 2024 · Backend Development

Refactor Spring Boot Controllers for Clean Architecture and Unified Responses

This article explains the essential duties of a Spring MVC Controller, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, ResponseBodyAdvice, proper message‑converter ordering, JSR‑303 validation, custom validators, and global exception handling to produce concise, maintainable backend code.

ControllerException HandlingResponseBodyAdvice
0 likes · 19 min read
Refactor Spring Boot Controllers for Clean Architecture and Unified Responses
Lobster Programming
Lobster Programming
Sep 18, 2024 · Backend Development

How to Build and Use a Custom Spring Boot Starter in Minutes

Learn step‑by‑step how to create a custom Spring Boot starter, configure its properties, define services and controllers, register it via spring.factories, and then integrate the starter into other projects with Maven dependencies and configuration files.

ConfigurationCustom StarterMaven
0 likes · 5 min read
How to Build and Use a Custom Spring Boot Starter in Minutes
Code Ape Tech Column
Code Ape Tech Column
Sep 18, 2024 · Backend Development

Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter

This article explains why Spring Cloud Gateway can return duplicate Access-Control-Allow-Origin and Vary headers, analyzes the request processing flow, and provides two solutions—using the built‑in DedupeResponseHeader filter with retention strategies or implementing a custom CorsResponseHeaderFilter—to eliminate the CORS error caused by multiple header values.

CORSSpring Bootbackend
0 likes · 10 min read
Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter
Architect
Architect
Sep 16, 2024 · Backend Development

Seamless Token Refresh in Spring Boot & Axios: Full Implementation Guide

This article explains how to implement invisible token refresh for authentication servers using Spring Boot gateway filters, JWT handling, Axios interceptors, and a client‑side timer, compares client‑ and server‑side approaches, and provides complete code examples and practical recommendations.

GatewayJWTSpring Boot
0 likes · 21 min read
Seamless Token Refresh in Spring Boot & Axios: Full Implementation Guide
Top Architect
Top Architect
Sep 14, 2024 · Operations

Centralized Log Collection with Filebeat and Graylog: Installation, Configuration, and Usage

This article explains why centralized log collection is essential for multi‑environment services, introduces Graylog as a lightweight alternative to ELK, details Filebeat's role and workflow, provides configuration examples, shows how to deploy both Filebeat and Graylog via Docker or packages, and demonstrates integration with Spring Boot and log search techniques.

DockerELKFilebeat
0 likes · 20 min read
Centralized Log Collection with Filebeat and Graylog: Installation, Configuration, and Usage
Java Tech Enthusiast
Java Tech Enthusiast
Sep 14, 2024 · Backend Development

Structured Logging in Spring Boot 3.4: JSON, ECS, and Custom Formats

Spring Boot 3.4 adds built‑in support for structured logging with ready‑made JSON formats such as Elastic Common Schema, lets you configure console or file outputs, enrich logs via MDC or the fluent API, and enables custom formatters—including a JsonWriter‑based example—for fully tailored, machine‑readable log entries.

ECSSpring Bootjava
0 likes · 8 min read
Structured Logging in Spring Boot 3.4: JSON, ECS, and Custom Formats
macrozheng
macrozheng
Sep 14, 2024 · Backend Development

Mastering Activiti: Build Scalable Workflow Engines in Minutes

This article walks you through designing, deploying, and managing a multi‑level approval workflow using the Activiti engine, covering BPMN diagram creation, Spring Boot integration, database schema, API usage, code examples, and best practices for extending processes without additional code.

ActivitiBPMNMicroservices
0 likes · 26 min read
Mastering Activiti: Build Scalable Workflow Engines in Minutes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 13, 2024 · Backend Development

How to Dynamically Update Spring Boot Properties at Runtime Without Restart

This article explains several strategies for dynamically updating Spring Boot application properties—such as using prototype‑scoped beans, @RefreshScope with Spring Cloud, external configuration files, and custom PropertySource updates—so that changes take effect without restarting the service.

PropertySourcePrototype BeanRefreshScope
0 likes · 10 min read
How to Dynamically Update Spring Boot Properties at Runtime Without Restart
Eric Tech Circle
Eric Tech Circle
Sep 12, 2024 · Backend Development

Build a Spring Boot 3.x Microservice OAuth2 Authorization Server from Scratch

This guide walks through creating a Spring Boot 3.3.3 microservice permission framework with OAuth2, covering technology stack, core features, project structure, step‑by‑step service startup, token acquisition, API calls, and provides the complete source repository for hands‑on experimentation.

MicroservicesOAuth2Spring Boot
0 likes · 8 min read
Build a Spring Boot 3.x Microservice OAuth2 Authorization Server from Scratch
Architect
Architect
Sep 11, 2024 · Information Security

How to Secure Your Spring Boot JAR Against Decompilation with ClassFinal

This guide explains how to protect a Spring Boot release package from source leakage by comparing code obfuscation and encryption, detailing the configuration of the classfinal‑maven‑plugin, launch commands with and without passwords, and binding the encrypted jar to a specific machine.

ClassFinalCode EncryptionJar Protection
0 likes · 7 min read
How to Secure Your Spring Boot JAR Against Decompilation with ClassFinal
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 11, 2024 · Backend Development

Mastering Async and Scheduled Tasks in Spring Boot 3.2.5

This guide explains how to enable and use Spring Boot's @Async and @Scheduled annotations, configure various TaskExecutor and TaskScheduler implementations, leverage new Spring 6.1 pause/resume and virtual‑thread features, and apply graceful shutdown for both asynchronous and scheduled jobs.

AsyncScheduled TasksSpring 6.1
0 likes · 10 min read
Mastering Async and Scheduled Tasks in Spring Boot 3.2.5
macrozheng
macrozheng
Sep 10, 2024 · Backend Development

Automate User and Order ID Logging in Spring Boot with MDC and AOP

This guide explains how to automatically inject userId and orderId into log statements in a Spring Boot microservice by configuring Log4j2 patterns, using MDC to store context variables, and creating a custom @UserLog annotation with an AOP aspect that populates the MDC before method execution.

AOPAnnotationMDC
0 likes · 9 min read
Automate User and Order ID Logging in Spring Boot with MDC and AOP
Top Architect
Top Architect
Sep 9, 2024 · Backend Development

Backend Development Guide: Spring Boot Project Initialization, Version Management, and Common Utilities

This article walks through the challenges of setting up a Java backend environment, demonstrates how to create a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot, and Kafka, and provides reusable code snippets for exception handling, logging, CORS, Swagger, and response wrapping, along with recommended tools.

MavenMicroservicesSpring Boot
0 likes · 13 min read
Backend Development Guide: Spring Boot Project Initialization, Version Management, and Common Utilities
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2024 · Backend Development

Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult

This article explains how Spring Boot supports asynchronous request processing using Servlet 3.0 features and four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—provides code examples, thread‑pool configuration, and guidance on when to apply async handling to improve throughput.

AsynchronousSpring Bootcallable
0 likes · 9 min read
Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 8, 2024 · Backend Development

Understanding the Spring Boot Startup Process

This article explains the Spring Boot startup mechanism, covering the @SpringBootApplication entry annotation, its constituent annotations, the role of SpringApplication.run, and the step‑by‑step initialization flow that powers Java backend applications.

AutoConfigurationSpring Bootbackend
0 likes · 3 min read
Understanding the Spring Boot Startup Process
Top Architect
Top Architect
Sep 8, 2024 · Backend Development

Building an OSS Spring Boot Starter Using Amazon S3

This article provides a step‑by‑step guide to creating a Spring Boot starter for enterprise‑grade object storage services, explaining OSS concepts, Amazon S3 basics, project setup, Maven dependencies, configuration classes, template interfaces, implementation details, auto‑configuration, packaging, and testing.

Amazon S3OSSSpring Boot
0 likes · 21 min read
Building an OSS Spring Boot Starter Using Amazon S3
Java Tech Enthusiast
Java Tech Enthusiast
Sep 8, 2024 · Backend Development

Guide to Using mybatis-plus-generator-ui for Java Code Generation

This guide explains how to integrate the mybatis-plus-generator-ui library into a Spring Boot project, configure database connections, launch the web UI, and use its customizable templates and naming converters to generate Entity, Mapper, Service, and Controller classes for multiple databases with a single click.

Spring BootTutorialbackend development
0 likes · 12 min read
Guide to Using mybatis-plus-generator-ui for Java Code Generation
Top Architect
Top Architect
Sep 7, 2024 · Backend Development

XXL-Job Distributed Task Scheduling Framework: Project Overview and Hands‑On Guide

This article introduces the open‑source XXL-Job distributed task scheduling framework, explains its architecture and communication design, and provides a step‑by‑step hands‑on tutorial covering server deployment, executor configuration, task development (annotation, API, sharding), execution, and log inspection, with code examples and screenshots.

Spring BootXXL-JOBbackend development
0 likes · 14 min read
XXL-Job Distributed Task Scheduling Framework: Project Overview and Hands‑On Guide
Java Tech Enthusiast
Java Tech Enthusiast
Sep 7, 2024 · Backend Development

Understanding Tomcat and Its Integration with Spring Boot

Apache Tomcat is the underlying servlet container and web server that Spring Boot automatically embeds via the spring‑boot‑starter‑web dependency, but junior developers often miss its core roles—managing servlet lifecycles, serving static resources, and compiling JSPs—so learning Tomcat (or swapping it for Jetty by adjusting Maven exclusions) clarifies what Spring Boot abstracts and enables flexible container choices.

ServletSpring BootTomcat
0 likes · 6 min read
Understanding Tomcat and Its Integration with Spring Boot
Java Architect Essentials
Java Architect Essentials
Sep 5, 2024 · Backend Development

Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation

This article provides an in‑depth overview of the WebSocket protocol, covering its fundamentals, advantages, lifecycle, message formats, Java API usage, Spring Boot integration, performance considerations, and future development directions, complete with practical code examples for both server and client sides.

APIReal‑time communicationSpring Boot
0 likes · 18 min read
Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation
JavaEdge
JavaEdge
Sep 5, 2024 · Backend Development

Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions

This article explains how Spring Boot automatically configures a ThreadPoolTaskExecutor for @Async and @Scheduled, shows the default parameters introduced in version 2.1, demonstrates how to inspect and customize them, compares the default executor with SimpleAsyncTaskExecutor, and provides code examples for using @Async, injecting the executor, and defining a custom thread pool to avoid resource‑exhaustion issues.

AsyncSpring BootTaskExecutionAutoConfiguration
0 likes · 18 min read
Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions
Top Architect
Top Architect
Sep 5, 2024 · Backend Development

Designing a Unified API Response Structure in Spring Boot with @ResponseResult

This article explains how to standardize API responses in Spring Boot by defining a JSON result format, using custom annotations, interceptors, and ResponseBodyAdvice to automatically wrap controller return values, while also discussing status code design, message handling, and code simplification techniques.

API DesignSpring Bootannotations
0 likes · 10 min read
Designing a Unified API Response Structure in Spring Boot with @ResponseResult
macrozheng
macrozheng
Sep 5, 2024 · Information Security

How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations

This article explains how to implement unified data desensitization in Java Spring Boot applications by creating custom annotations, enums, serializers, and utility methods that automatically mask personal information during JSON serialization, complete with code examples and test results.

JacksonSpring Bootbackend development
0 likes · 13 min read
How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations
Architect
Architect
Sep 4, 2024 · Backend Development

Unlocking Spring Bean Lifecycle: 17 Extension Points Every Developer Should Master

This article systematically catalogs every Spring and Spring Boot extension interface—from ApplicationContextInitializer to DisposableBean—illustrates their invocation order with a diagram, explains practical use‑cases, and provides concrete code samples for each hook, enabling developers to tap into the bean lifecycle for custom initialization, monitoring, and cleanup.

Bean LifecycleSpringSpring Boot
0 likes · 20 min read
Unlocking Spring Bean Lifecycle: 17 Extension Points Every Developer Should Master
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 4, 2024 · Backend Development

Master HTTP Request/Response Logging in Spring Boot with Logbook

This guide explains how to integrate the Logbook library into Spring Boot applications to capture detailed HTTP request and response logs, covering dependency setup, configuration options, output formats, Logback file logging, custom sinks, and RestTemplate interception for comprehensive monitoring and debugging.

HTTP loggingSpring Bootbackend development
0 likes · 9 min read
Master HTTP Request/Response Logging in Spring Boot with Logbook
Su San Talks Tech
Su San Talks Tech
Sep 3, 2024 · Backend Development

How to Build a Scalable Multi‑Tenant Architecture with Spring Boot & Spring Cloud

This article explains the concept, advantages, design considerations, and step‑by‑step implementation of a multi‑tenant architecture using Spring Boot and Spring Cloud, covering tenant isolation, database strategies, dynamic routing, security configuration, deployment scenarios, and provides complete code examples for building SaaS‑ready applications.

SaaSSpring BootSpring Cloud
0 likes · 16 min read
How to Build a Scalable Multi‑Tenant Architecture with Spring Boot & Spring Cloud
Programmer XiaoFu
Programmer XiaoFu
Sep 2, 2024 · Backend Development

Designing a Dynamic Thread Pool for a Meituan Interview: Concepts and Implementation

The article explains what a dynamic thread pool is, why static pools are problematic, how to modify core parameters such as corePoolSize, maximumPoolSize, and workQueue at runtime, and provides code examples for monitoring, exposing metrics via Spring Boot Actuator, and integrating with Prometheus‑Grafana, while also listing open‑source implementations like Hippo4j and Dynamic TP.

Dynamic Thread PoolGrafanaMonitoring
0 likes · 13 min read
Designing a Dynamic Thread Pool for a Meituan Interview: Concepts and Implementation