Tagged articles

Spring

1809 articles · Page 3 of 19
Architect's Tech Stack
Architect's Tech Stack
Sep 18, 2025 · Backend Development

Master Java Spring Utilities: Assertions, Collections, IO & Reflection

This article compiles essential Spring and Java utility methods—including assertion checks, object and collection handling, file I/O, resource management, and reflection/AOP tools—providing concise code examples and usage guidelines to help developers avoid redundant code and write cleaner, more reliable applications.

CollectionsIOJava
0 likes · 13 min read
Master Java Spring Utilities: Assertions, Collections, IO & Reflection
Code Ape Tech Column
Code Ape Tech Column
Sep 17, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Processing in Java

Explore eight practical techniques for achieving asynchronous execution in Java—from low‑level threads and Futures to Spring’s @Async, ApplicationEvent, message queues, and Guava ListenableFuture—complete with code samples, performance insights, and best‑practice recommendations for building responsive backend services.

FutureJavaMessage Queue
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Processing in Java
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 17, 2025 · Backend Development

Master Spring Transactions: Programming vs Declarative Approaches Explained

This article provides a comprehensive guide to Spring transaction management, covering both programmatic (TransactionTemplate) and declarative (@Transactional) methods, explaining their principles, code examples, and how Spring abstracts underlying JDBC steps to simplify database transaction handling for backend developers.

JavaSpringTransaction
0 likes · 4 min read
Master Spring Transactions: Programming vs Declarative Approaches Explained
Selected Java Interview Questions
Selected Java Interview Questions
Sep 16, 2025 · Backend Development

Mastering Asynchronous Responses in Spring: CompletableFuture vs ResponseBodyEmitter

This guide explains how to implement high‑performance asynchronous APIs in Spring Web using CompletableFuture and ResponseBodyEmitter, covering controller and service code, configuration, request lifecycle, client handling, Nginx settings, and practical recommendations for choosing the right approach.

CompletableFutureJavaResponseBodyEmitter
0 likes · 12 min read
Mastering Asynchronous Responses in Spring: CompletableFuture vs ResponseBodyEmitter
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 15, 2025 · Backend Development

Master Spring’s Core: IoC, DI, AOP & Transaction Explained

This article provides a comprehensive overview of the Spring framework, covering its core principles such as Inversion of Control, Dependency Injection, Aspect‑Oriented Programming, and transaction management, while illustrating each concept with diagrams and practical code examples for Java developers.

AOPBackend DevelopmentDependency Injection
0 likes · 7 min read
Master Spring’s Core: IoC, DI, AOP & Transaction Explained
Architect's Tech Stack
Architect's Tech Stack
Sep 11, 2025 · Backend Development

Master MyBatis Streaming Queries: Reduce Memory Usage with Cursors

This article explains MyBatis streaming queries, introduces the Cursor interface and its methods, demonstrates common pitfalls, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to keep database connections open while processing large result sets efficiently.

DatabaseJavaMyBatis
0 likes · 7 min read
Master MyBatis Streaming Queries: Reduce Memory Usage with Cursors
Architect's Tech Stack
Architect's Tech Stack
Sep 11, 2025 · Backend Development

Master MyBatis Streaming Queries: Keep DB Connections Open Efficiently

This article explains MyBatis streaming queries using the Cursor interface, demonstrates common pitfalls such as closed connections, and provides three practical solutions—including SqlSessionFactory, TransactionTemplate, and @Transactional—to reliably process large result sets with minimal memory usage.

DatabaseJavaMyBatis
0 likes · 6 min read
Master MyBatis Streaming Queries: Keep DB Connections Open Efficiently
Su San Talks Tech
Su San Talks Tech
Sep 9, 2025 · Backend Development

Why @Transactional Fails: 13 Hidden Pitfalls and How to Fix Them

Spring’s @Transactional annotation often appears simple, yet it can silently fail due to unnecessary usage, scope issues, proxy limitations, propagation settings, exception handling, and bean management, leading to unexpected non‑rollback behavior; this article categorizes thirteen common pitfalls and demonstrates each with concrete code examples.

AOPExceptionHandlingJava
0 likes · 18 min read
Why @Transactional Fails: 13 Hidden Pitfalls and How to Fix Them
Su San Talks Tech
Su San Talks Tech
Sep 6, 2025 · Backend Development

How Spring’s nohttp Project Eliminates Insecure HTTP URLs

Spring’s open‑source nohttp project scans, replaces, and blocks insecure http:// URLs across codebases, ensuring HTTPS usage to prevent man‑in‑the‑middle attacks, and includes modules like nohttp‑cli, nohttp‑checkstyle, and Gradle integration, while addressing cases where HTTPS isn’t feasible.

HTTPSJavaSpring
0 likes · 5 min read
How Spring’s nohttp Project Eliminates Insecure HTTP URLs
Su San Talks Tech
Su San Talks Tech
Sep 2, 2025 · Fundamentals

Mastering Finite State Machines with Spring Statemachine: A Complete Guide

Learn the fundamentals of finite state machines, explore their core concepts and four key elements, and see how to implement and persist a Spring Statemachine for order processing with detailed code examples, diagrams, and troubleshooting tips, while also understanding common pitfalls and best practices.

AOPJavaPersistence
0 likes · 26 min read
Mastering Finite State Machines with Spring Statemachine: A Complete Guide
Programmer XiaoFu
Programmer XiaoFu
Sep 1, 2025 · Fundamentals

Advanced Chain of Responsibility: Multi‑Level Validation and Workflow for Elegant Code

This article explains the Chain of Responsibility pattern, shows how to use it for multi‑stage validation and workflow scenarios, walks through a product‑creation example with concrete handlers, configuration via JSON, Spring bean injection, recursive chain assembly, and a reimbursement‑approval workflow, complete with runnable test cases.

Chain of ResponsibilityDesign PatternsJava
0 likes · 20 min read
Advanced Chain of Responsibility: Multi‑Level Validation and Workflow for Elegant Code
IT Services Circle
IT Services Circle
Aug 30, 2025 · Operations

Why Does My System Freeze? 9 Common Causes and How to Diagnose Them

This article explains why systems suddenly become unresponsive, outlines nine typical root causes ranging from frontend request spikes to backend thread‑pool exhaustion and missing timeout settings, and walks through a real‑world investigation that reveals how to pinpoint and resolve such blockages.

DatabaseJavaSpring
0 likes · 11 min read
Why Does My System Freeze? 9 Common Causes and How to Diagnose Them
Java Architect Essentials
Java Architect Essentials
Aug 28, 2025 · Backend Development

Simplify Java HTTP Calls with UniHttp: A Declarative Framework Guide

This article introduces UniHttp, a declarative HTTP‑client framework for Java that replaces traditional HttpClient/OkHttp code with annotation‑driven interfaces, shows quick‑start setup, explains all supported annotations, lifecycle hooks, custom client configuration, and a real‑world enterprise integration example.

Backend DevelopmentDeclarative APIHTTP
0 likes · 22 min read
Simplify Java HTTP Calls with UniHttp: A Declarative Framework Guide
Java Web Project
Java Web Project
Aug 26, 2025 · Backend Development

How to Hot‑Deploy User‑Provided JAR Implementations in a Spring‑Based System

This article walks through building a simple Calculator interface, creating a dual‑mode implementation, and then dynamically loading, registering, and unloading user‑supplied JAR files at runtime using reflection or Spring annotation processing, complete with utility methods and a test harness.

Dynamic Bean RegistrationHot DeploymentJAR Loading
0 likes · 9 min read
How to Hot‑Deploy User‑Provided JAR Implementations in a Spring‑Based System
Java Tech Enthusiast
Java Tech Enthusiast
Aug 25, 2025 · Backend Development

Refactoring Spring Controllers for Unified Responses and Robust Validation

This article explains why the Controller layer remains essential in modern Spring applications, identifies common problems such as tangled validation and inconsistent responses, and demonstrates how to introduce a unified result structure, use ResponseBodyAdvice for automatic wrapping, fix String conversion issues, apply JSR‑303 validation, create custom validators, and handle exceptions uniformly.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 22 min read
Refactoring Spring Controllers for Unified Responses and Robust Validation
Java Tech Enthusiast
Java Tech Enthusiast
Aug 24, 2025 · Backend Development

Master Java Interview Essentials: OOP, Spring Beans, Redis, DB Indexes & More

This article compiles a comprehensive Java interview guide covering object‑oriented fundamentals, method overloading vs overriding, core collection implementations, Spring bean lifecycle, composite index usage, process/thread/coroutine distinctions, Linux IPC methods, design‑pattern principles, Redis roles and data types, relational vs NoSQL trade‑offs, QR‑code login design, and a classic 15‑minute brain teaser.

ConcurrencyDesign PatternsRedis
0 likes · 17 min read
Master Java Interview Essentials: OOP, Spring Beans, Redis, DB Indexes & More
Su San Talks Tech
Su San Talks Tech
Aug 23, 2025 · Backend Development

How to Build a Robust Asynchronous Processing SDK with Spring and Kafka

This article explains how to design and implement a generic asynchronous processing SDK for Java backend services, covering its purpose, advantages, underlying principles, component choices, database schema, configuration, usage patterns, and best‑practice notes, with code examples and diagrams.

Java backendKafkaSpring
0 likes · 9 min read
How to Build a Robust Asynchronous Processing SDK with Spring and Kafka
Top Architect
Top Architect
Aug 21, 2025 · Backend Development

Master 10 Essential Spring Extension Points for Robust Backend Development

This article walks through the ten most useful Spring extension points—including global exception handling, custom interceptors, bean access, @Import usage, startup runners, BeanDefinition modification, initialization callbacks, BeanPostProcessor hooks, destroy callbacks, and custom scopes—providing clear explanations and ready‑to‑use code examples for each.

BeanFactoryBeanPostProcessorCustomScope
0 likes · 17 min read
Master 10 Essential Spring Extension Points for Robust Backend Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 21, 2025 · Backend Development

Mastering Idempotent Payment APIs: From Pitfalls to Distributed‑Lock Solutions

This article walks through the evolution of a payment API’s idempotency design—from an initially flawed implementation, through naive Redis deduplication and token‑based approaches, to a robust solution that combines distributed locks, double‑checked caching, and state management for reliable, concurrent processing.

Distributed LockSpringidempotency
0 likes · 13 min read
Mastering Idempotent Payment APIs: From Pitfalls to Distributed‑Lock Solutions
Java Web Project
Java Web Project
Aug 14, 2025 · Backend Development

Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation

The article explains how inconsistent API return types, missing error handling, irrelevant or complex parameters, and lack of proper result objects lead to maintenance headaches, and demonstrates a disciplined approach using a generic ResultBean, standardized controller conventions, and Spring AOP for logging and exception handling.

AOPAPI designBest Practices
0 likes · 11 min read
Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation
Programmer XiaoFu
Programmer XiaoFu
Jul 29, 2025 · Backend Development

How to Gracefully Implement Consistent Compensation Across Multiple Systems

The article examines the challenges of achieving distributed consistency when a business operation writes to MySQL and external systems, analyzes failure scenarios, and presents a step‑by‑step solution that splits the large transaction into small, retryable tasks with Spring afterCommit optimization.

BPMCompensationJava
0 likes · 9 min read
How to Gracefully Implement Consistent Compensation Across Multiple Systems
Architect's Guide
Architect's Guide
Jul 25, 2025 · Backend Development

8 Powerful Ways to Implement Asynchronous Programming in Java

This article explains why asynchronous execution shortens request latency and presents eight practical Java techniques—including raw threads, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, ThreadUtil, and Guava ListenableFuture—complete with code examples and usage tips.

CompletableFutureFutureMessage Queue
0 likes · 13 min read
8 Powerful Ways to Implement Asynchronous Programming in Java
macrozheng
macrozheng
Jul 24, 2025 · Backend Development

Master Spring Annotation Development: From XML Beans to Pure Annotations

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates replacing XML with @Component and @Configuration, covers bean scopes, dependency injection techniques like @Autowired, @Qualifier, @Value, and shows seamless integration of Spring with MyBatis for data access.

AnnotationDependency InjectionMyBatis
0 likes · 10 min read
Master Spring Annotation Development: From XML Beans to Pure Annotations
Architect
Architect
Jul 23, 2025 · Backend Development

How to Break Down Distributed Transactions for Reliable Microservices

This article explains the challenges of distributed consistency when a business operation writes to both MySQL and third‑party systems, presents a financial reimbursement case study, analyzes failure risks, and offers a practical solution that splits large transactions into small, retryable units using Spring and a task table.

MySQLSpringStrategy Pattern
0 likes · 10 min read
How to Break Down Distributed Transactions for Reliable Microservices
Architect
Architect
Jul 21, 2025 · Backend Development

Do You Really Need Interfaces for Service and DAO Layers in Spring?

While many developers add interfaces to every Service and DAO class, this article argues that with Spring’s dependency injection you can often omit them, examines common reasons for using interfaces, and proposes practical project structures and workflows for both single and multiple implementation scenarios.

Backend DevelopmentDependency InjectionSpring
0 likes · 9 min read
Do You Really Need Interfaces for Service and DAO Layers in Spring?
IT Services Circle
IT Services Circle
Jul 21, 2025 · Backend Development

How Spring Uses a Three‑Level Cache to Resolve Circular Dependencies

This article explains Spring's circular dependency problem, distinguishes when such dependencies are harmless, shows why constructor injection can still fail, and details how Spring's three‑level cache with singleton, early‑singleton, and factory caches resolves setter‑based circular dependencies, including code examples and key source snippets.

Dependency InjectionJavaSpring
0 likes · 10 min read
How Spring Uses a Three‑Level Cache to Resolve Circular Dependencies
Su San Talks Tech
Su San Talks Tech
Jul 21, 2025 · Backend Development

How to Hot‑Deploy User‑Provided JARs with Spring and Reflection

This guide explains how to let users upload a JAR that implements a predefined interface, then hot‑deploy the new implementation at runtime using either Spring annotation‑based bean registration or pure Java reflection, complete with utility methods for loading, registering, and cleaning up beans.

Hot DeploymentJarJava
0 likes · 9 min read
How to Hot‑Deploy User‑Provided JARs with Spring and Reflection
JD Tech Talk
JD Tech Talk
Jul 21, 2025 · Backend Development

Mastering Spring Interceptors: How to Implement, Configure, and Optimize

Learn how Spring interceptors work, their relationship with WebApplicationContext, various types, configuration methods, execution flow, advanced features, and practical examples such as logging and authentication, plus a comparison with servlet filters and demo results.

Backend DevelopmentJavaMVC
0 likes · 7 min read
Mastering Spring Interceptors: How to Implement, Configure, and Optimize
Java Architecture Diary
Java Architecture Diary
Jul 21, 2025 · Backend Development

What’s New in Spring 7.0? Exploring the Modern JmsClient API

Spring 7.0 introduces JmsClient, a modern, stream‑oriented API for JMS messaging that mirrors the design of JdbcClient and RestClient, offering fluent creation, flexible destination configuration, rich QoS options, and simplified send/receive operations compared to the traditional JmsTemplate.

Backend DevelopmentJMSJava
0 likes · 9 min read
What’s New in Spring 7.0? Exploring the Modern JmsClient API
Selected Java Interview Questions
Selected Java Interview Questions
Jul 18, 2025 · Backend Development

Master Spring Bean Validation: Quick Start, Custom Constraints, and Advanced Techniques

This article walks through Spring Bean Validation fundamentals, demonstrating how to apply built‑in constraints, create custom validators, use group validation, perform cascading request validation, and enable method‑level checks, all with clear code examples and best‑practice recommendations.

Bean ValidationJSR-380Java
0 likes · 9 min read
Master Spring Bean Validation: Quick Start, Custom Constraints, and Advanced Techniques
Top Architect
Top Architect
Jul 17, 2025 · Backend Development

Master Spring Task: Turn Your App into a Personal Scheduler

This guide explains what Spring Task is, shows how to add the dependency, enable scheduling annotations, write cron‑based methods, and covers common use cases, pitfalls, and performance tricks for building reliable backend scheduled jobs in Java.

JavaSchedulingSpring
0 likes · 11 min read
Master Spring Task: Turn Your App into a Personal Scheduler
Selected Java Interview Questions
Selected Java Interview Questions
Jul 17, 2025 · Backend Development

How to Fix Spring Static Injection NPE: Real-World Demo & Solutions

This article explains why static fields injected with @Autowired in Spring can become null, causing NPEs in production, and presents six practical solutions—including removing static fields, using @PostConstruct, static setters, ApplicationContext, singleton patterns, and @Lazy loading—to ensure reliable static dependency injection.

Dependency InjectionJavaSpring
0 likes · 9 min read
How to Fix Spring Static Injection NPE: Real-World Demo & Solutions
Architect
Architect
Jul 16, 2025 · Backend Development

Mastering Spring Transaction Hooks: Async Kafka Logging After Commit

This article explains how to use Spring's TransactionSynchronizationManager to detect active transactions and reliably send Kafka messages either immediately or after transaction commit, illustrated with a payment‑system use case and complete code examples.

JavaKafkaSpring
0 likes · 10 min read
Mastering Spring Transaction Hooks: Async Kafka Logging After Commit
Java Captain
Java Captain
Jul 16, 2025 · Backend Development

Ensuring Transaction Rollback in Multi‑Threaded Spring Batch Inserts

This article explains why the @Transactional annotation fails in multithreaded Spring batch insert scenarios, demonstrates the problem with code examples, and shows how to use SqlSession for manual commit and rollback to guarantee atomicity across all threads.

DatabaseJavaMyBatis
0 likes · 10 min read
Ensuring Transaction Rollback in Multi‑Threaded Spring Batch Inserts
Tech Freedom Circle
Tech Freedom Circle
Jul 16, 2025 · Interview Experience

How to Use and Optimize State Machines in Java for Interview Success

This article explains the concept of state machines, why traditional if‑else logic is problematic, compares popular Java state‑machine frameworks, provides performance benchmarks, walks through a complete Spring Statemachine implementation for order processing, and offers practical optimization and monitoring tips for high‑throughput scenarios.

JavaOptimizationPerformance
0 likes · 30 min read
How to Use and Optimize State Machines in Java for Interview Success
Architect
Architect
Jul 13, 2025 · Backend Development

Master Spring 6 & Spring Boot 3: Core Features, Virtual Threads, GraalVM & More

This article provides a comprehensive overview of the Spring ecosystem upgrade, detailing Spring 6 core features such as JDK 17 baseline, Project Loom virtual threads, declarative HTTP clients, RFC‑7807 ProblemDetail handling, GraalVM native images, as well as Spring Boot 3 breakthroughs like Jakarta EE migration, OAuth2 server, Prometheus monitoring, and practical migration roadmaps for cloud‑native applications.

GraalVMPrometheusSpring
0 likes · 8 min read
Master Spring 6 & Spring Boot 3: Core Features, Virtual Threads, GraalVM & More
Java Backend Technology
Java Backend Technology
Jul 10, 2025 · Backend Development

Unlock Spring’s Power: Global Exception Handling, Custom Interceptors, and Thread‑Local Scopes

Explore Spring’s extensibility by mastering global exception handling with @RestControllerAdvice, creating custom MVC interceptors, accessing the container via BeanFactoryAware, importing configurations, adding startup logic, modifying BeanDefinitions, using initialization callbacks, and defining a thread‑local custom scope for per‑thread bean instances.

ApplicationRunnerBean LifecycleCustom Scope
0 likes · 10 min read
Unlock Spring’s Power: Global Exception Handling, Custom Interceptors, and Thread‑Local Scopes
Code Ape Tech Column
Code Ape Tech Column
Jul 9, 2025 · Backend Development

Hot‑Deploy Custom Java Interfaces with JARs Using Spring and Reflection

This tutorial demonstrates how to let users upload a JAR that implements a predefined Java interface, then hot‑replace the implementation at runtime via reflection or Spring bean registration, covering interface definition, concrete classes, dynamic class loading, bean management, and testing.

Hot DeploymentJarReflection
0 likes · 9 min read
Hot‑Deploy Custom Java Interfaces with JARs Using Spring and Reflection
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 9, 2025 · Backend Development

Mastering Spring’s @Autowired for Collections: From Lists to Maps

This article explains how Spring’s @Autowired can inject List, Set, and Map collections, detailing injection mechanisms, code examples, workflow steps, common use cases like plugin systems and filter chains, and advanced tips such as @Qualifier, custom ordering, and handling pitfalls.

AutowiredCollection InjectionDependency Injection
0 likes · 11 min read
Mastering Spring’s @Autowired for Collections: From Lists to Maps
Cognitive Technology Team
Cognitive Technology Team
Jul 8, 2025 · Backend Development

How to Dynamically Autowire Beans in Spring: Two Practical Approaches

This tutorial explains why and how to dynamically change Spring bean implementations at runtime, presenting a real-world region‑service example and demonstrating two solutions—using BeanFactory and injecting a map of implementations—for flexible backend development.

BeanFactoryDependency InjectionDynamic Autowiring
0 likes · 5 min read
How to Dynamically Autowire Beans in Spring: Two Practical Approaches
Architecture Digest
Architecture Digest
Jul 8, 2025 · Backend Development

Mastering Spring and Apache StopWatch: Precise Code Timing in Java

This article explains how to use Spring's org.springframework.util.StopWatch and Apache Commons' org.apache.commons.lang3.time.StopWatch to accurately measure execution time of sequential tasks in Java, covering setup, key methods, practical examples, and important usage considerations.

Apache CommonsCode ProfilingPerformance Timing
0 likes · 9 min read
Mastering Spring and Apache StopWatch: Precise Code Timing in Java
Top Architect
Top Architect
Jul 8, 2025 · Backend Development

How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal

This article explains how to protect time‑consuming business operations using a Redis‑based distributed lock implemented with a custom annotation, Spring AOP interception, automatic lock renewal via a scheduled executor, and proper lock release, ensuring data consistency across concurrent requests.

AOPConcurrencyDistributed Lock
0 likes · 14 min read
How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal
Cognitive Technology Team
Cognitive Technology Team
Jul 8, 2025 · Backend Development

Why Your Spring @Transactional Doesn’t Rollback: AOP Aspect Order Conflict Explained

An in‑depth analysis of a Spring transaction failure caused by a custom AOP aspect interfering with the default TransactionInterceptor, detailing the symptom, root cause, and step‑by‑step solutions—including adjusting aspect order, rethrowing exceptions, and manual rollback—to ensure reliable transaction management.

AOPAspect PrioritySpring
0 likes · 8 min read
Why Your Spring @Transactional Doesn’t Rollback: AOP Aspect Order Conflict Explained
Cognitive Technology Team
Cognitive Technology Team
Jul 7, 2025 · Backend Development

Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps

An in‑depth guide to Spring Bean scopes explains the seven standard scopes—including Singleton, Prototype, Request, Session, Application, Global Session, and WebSocket—detailing their lifecycles, configuration methods, core principles, and best‑practice scenarios to help developers choose the optimal scope for high‑performance, reliable applications.

Backend DevelopmentBean ScopeDependency Injection
0 likes · 12 min read
Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps
IT Services Circle
IT Services Circle
Jul 6, 2025 · Backend Development

Must‑Know Spring & Java Interview Questions from Xiaomi Car Hiring

The article first marvels at the record‑breaking sales of Xiaomi's YU7 electric SUV, then provides a comprehensive set of Java and Spring interview questions—including B‑tree differences, MySQL hash indexes, ReentrantLock internals, Spring's circular‑dependency resolution, AOP principles, and Spring Cloud components—to help candidates prepare for Xiaomi's upcoming campus recruitment.

AOPJavaMySQL
0 likes · 24 min read
Must‑Know Spring & Java Interview Questions from Xiaomi Car Hiring
Architect's Guide
Architect's Guide
Jul 6, 2025 · Backend Development

Mastering Spring Bean Creation: From Simple Instantiation to 3‑Level Caching

This article explains Spring's bean lifecycle in depth, covering the minimal creation steps, the role of BeanFactoryPostProcessor and BeanPostProcessor, how Spring resolves references and circular dependencies, and why a three‑level cache is essential for reliable dependency injection.

Backend DevelopmentBean LifecycleDependency Injection
0 likes · 15 min read
Mastering Spring Bean Creation: From Simple Instantiation to 3‑Level Caching
Architect
Architect
Jul 5, 2025 · Backend Development

Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java

Learn how to design and implement a Redis-based distributed lock in Java using custom annotations, AOP interception, and a scheduled executor to automatically extend lock expiration, ensuring safe concurrent access to critical resources while handling timeouts, retries, and thread interruptions.

AOPConcurrencyDistributed Lock
0 likes · 12 min read
Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java
Java Architect Essentials
Java Architect Essentials
Jul 4, 2025 · Backend Development

5 Common Spring Transaction Pitfalls and How to Fix Them

This article explains five frequent scenarios where Spring @Transactional fails—such as internal method calls, non‑public methods, swallowed exceptions, final/static methods, and unsupported MySQL engines—and provides concrete solutions and best‑practice rules for reliable transaction management.

AOPJavaMySQL
0 likes · 9 min read
5 Common Spring Transaction Pitfalls and How to Fix Them
Java Captain
Java Captain
Jul 4, 2025 · Backend Development

How Does Spring Detect and Resolve Circular Bean Dependencies?

This article explains what circular dependencies are in Spring, how the framework detects them using a three‑level cache during bean creation, and walks through a step‑by‑step example of resolving a setter‑injected circular reference between two beans.

Backend DevelopmentBean LifecycleDependency Injection
0 likes · 6 min read
How Does Spring Detect and Resolve Circular Bean Dependencies?
Java Captain
Java Captain
Jul 4, 2025 · Backend Development

Why Getting Spring Beans in Non‑Spring Classes Causes NullPointerExceptions

This article explains why retrieving Spring beans from classes not managed by Spring can cause NullPointerExceptions and failed autowiring, demonstrates two code examples—using a utility class and @Autowired in a plain class—and recommends registering such classes as Spring components to ensure proper dependency management.

Bean RetrievalDependency InjectionJava
0 likes · 5 min read
Why Getting Spring Beans in Non‑Spring Classes Causes NullPointerExceptions
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 4, 2025 · Backend Development

Mastering Spring @Autowired Collection Injection: Lists, Sets, Maps Explained

This article explains how Spring's @Autowired annotation can inject collections such as List, Set, and Map, detailing injection mechanisms, ordering, practical examples like filter chains and validators, advanced features like @Qualifier and custom ordering, and important considerations such as circular dependencies and performance impacts.

AutowiredBackend DevelopmentCollection Injection
0 likes · 12 min read
Mastering Spring @Autowired Collection Injection: Lists, Sets, Maps Explained
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 3, 2025 · Backend Development

When to Use @Autowired vs @Resource in Spring? A Deep Dive

This article explains the differences between Spring's @Autowired and JSR‑250's @Resource annotations, covering their injection strategies, supported features, usage examples, comparison tables, and performance considerations for backend developers.

AutowiredBackend DevelopmentDependency Injection
0 likes · 7 min read
When to Use @Autowired vs @Resource in Spring? A Deep Dive
FunTester
FunTester
Jul 2, 2025 · Backend Development

Spring @Value List Injection: Version Differences and Testing Tips

This article explains how Spring’s @Value annotation injects List values differently from version 3.x through Spring Boot, highlights pitfalls such as immutable lists and delimiter issues, and provides practical testing strategies—including manual splitting, custom converters, and post‑construct adjustments—to ensure reliable configuration handling.

@ValueJavaList Injection
0 likes · 9 min read
Spring @Value List Injection: Version Differences and Testing Tips
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 1, 2025 · Backend Development

Mastering Spring Bean Initialization: @PostConstruct, InitializingBean, and init‑method Explained

This article explains the three Spring bean initialization callbacks—@PostConstruct, InitializingBean, and init‑method—their fixed execution order, underlying processing mechanisms, code examples, and guidance on choosing the most suitable approach for different development scenarios.

Bean InitializationInitializingBeanJava backend
0 likes · 9 min read
Mastering Spring Bean Initialization: @PostConstruct, InitializingBean, and init‑method Explained
Java Captain
Java Captain
Jun 24, 2025 · Backend Development

Master Spring Configuration: XML vs Java, Bean Lifecycle, and Advanced Profiles

This article explains Spring configuration files, comparing XML and Java (annotation‑based) approaches, details bean creation, scopes, initialization and destruction, and demonstrates advanced techniques such as conditional beans and profile‑specific configurations with clear code examples.

@Conditional@ProfileBean
0 likes · 6 min read
Master Spring Configuration: XML vs Java, Bean Lifecycle, and Advanced Profiles
Architecture Digest
Architecture Digest
Jun 20, 2025 · Backend Development

How to Implement Seamless Token Refresh in Java Backend with JWT

This article explains why silent token refresh is needed, outlines backend and front‑end strategies for automatically renewing JWTs, provides a complete Java implementation with Maven dependencies, utility methods, unit tests, and discusses handling edge cases such as long‑idle forms.

JWTJavaSpring
0 likes · 10 min read
How to Implement Seamless Token Refresh in Java Backend with JWT
Tech Freedom Circle
Tech Freedom Circle
Jun 20, 2025 · Backend Development

Master Spring’s Core Design Patterns: The Interview‑Ready Answer That Stuns Recruiters

This article systematically breaks down the eight most common design patterns used inside the Spring framework, explains how the template pattern powers bean lifecycle, compares classic and Spring‑specific implementations, and provides concrete code examples and step‑by‑step walkthroughs to help you ace interview questions.

Bean LifecycleDesign PatternsJava
0 likes · 48 min read
Master Spring’s Core Design Patterns: The Interview‑Ready Answer That Stuns Recruiters
Code Ape Tech Column
Code Ape Tech Column
Jun 20, 2025 · Backend Development

Mastering Asynchronous Processing in Java: Build a Robust SDK with Spring

This article introduces a generic asynchronous processing SDK for Java, explaining its purpose, advantages, underlying principles, component choices such as Kafka, XXL‑Job, MySQL, and Spring AOP, and provides detailed configuration, database schema, usage examples, and best‑practice guidelines to achieve reliable, non‑blocking execution and eventual consistency in backend systems.

DatabaseKafkaSpring
0 likes · 9 min read
Mastering Asynchronous Processing in Java: Build a Robust SDK with Spring
Su San Talks Tech
Su San Talks Tech
Jun 16, 2025 · Backend Development

10 Essential Spring Design Patterns Every Java Developer Should Master

This article walks through ten core design patterns used in the Spring framework—Template Method, Factory, Proxy, Singleton, Observer, Strategy, Adapter, Decorator, Builder, and Chain of Responsibility—explaining their scenarios, Spring implementations, code examples, and why they improve decoupling, extensibility, and performance.

Design PatternsJavaSpring
0 likes · 12 min read
10 Essential Spring Design Patterns Every Java Developer Should Master
Code Ape Tech Column
Code Ape Tech Column
Jun 12, 2025 · Information Security

How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java

This article explains why multiple independent login systems hurt user experience and security, reviews traditional session mechanisms and their limitations in clustered environments, and then presents two session‑sharing strategies and a complete CAS‑based SSO solution with Java code examples.

CASJavaRedis
0 likes · 15 min read
How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java
JakartaEE China Community
JakartaEE China Community
Jun 9, 2025 · Cloud Native

How to Choose the Right Cloud‑Native Microservice Framework (MicroProfile vs Spring)

This article explains why cloud‑native microservices are beneficial, defines their key characteristics, compares the MicroProfile and Spring frameworks, and provides detailed code examples for REST APIs, configuration, fault tolerance, security, health checks, metrics, and distributed tracing to help developers select the most suitable technology stack.

KubernetesMicroProfileObservability
0 likes · 26 min read
How to Choose the Right Cloud‑Native Microservice Framework (MicroProfile vs Spring)
Top Architect
Top Architect
Jun 4, 2025 · Backend Development

Implementing Request Debounce in Java Backend Using Redis and Redisson

This article explains how to implement request debouncing in Java backend services using Redis and Redisson, covering the concept, interface types needing debouncing, duplicate request detection, shared cache and distributed lock solutions, with complete code examples and testing results.

Distributed LockJavaRedis
0 likes · 17 min read
Implementing Request Debounce in Java Backend Using Redis and Redisson
Top Architecture Tech Stack
Top Architecture Tech Stack
Jun 4, 2025 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to design a consistent JSON response format for backend APIs, covering status‑code conventions, message handling, data payloads, a Result wrapper class, controller implementation, a @ResponseResult annotation, interceptor logic, and suggestions for further optimization.

APIAnnotationJava
0 likes · 7 min read
Designing a Unified API Response Structure for Backend Services
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2025 · Backend Development

Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices

This article explains why per‑minute API call counting is essential for performance bottleneck detection, capacity planning, security alerts and billing, and presents five concrete Java‑based implementations—including a fixed‑window counter, a sliding‑window counter, AOP‑based transparent monitoring, a Redis time‑series solution, and Micrometer‑Prometheus integration—along with a hybrid architecture, performance benchmarks, and practical capacity‑planning advice.

PerformancePrometheusRedis
0 likes · 25 min read
Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
May 29, 2025 · Backend Development

Spring Task: A Programmer’s Personal Assistant – Mastering Scheduling in Spring Boot

This tutorial introduces Spring Task, explains how to enable scheduling in Spring Boot, demonstrates creating cron expressions, shows common use cases such as data sync, log cleanup, and email reminders, and provides best‑practice tips for thread‑pool tuning, distributed execution, and avoiding common pitfalls.

SpringSpring BootTask scheduling
0 likes · 9 min read
Spring Task: A Programmer’s Personal Assistant – Mastering Scheduling in Spring Boot
Architecture Digest
Architecture Digest
May 28, 2025 · Backend Development

Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring

This article explains the major enhancements in Spring 6.0 and Spring Boot 3.0—including a JDK 17 baseline, Project Loom virtual threads, @HttpExchange declarative HTTP clients, RFC 7807 ProblemDetail error handling, GraalVM native image support, AOT compilation, OAuth2 server setup, and Micrometer‑Prometheus monitoring—while providing a practical upgrade roadmap and code samples.

GraalVMJavaSpring
0 likes · 6 min read
Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring
Code Ape Tech Column
Code Ape Tech Column
May 26, 2025 · Backend Development

Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT

This article presents a production‑validated solution that combines MyBatis‑Plus auto‑fill, AOP, JWT, multi‑data‑source handling, distributed ID generation, performance tuning, and audit logging to eliminate repetitive maintenance of common fields such as createTime, updateTime, createUser, and updateUser in Java backend order services.

AOPJavaSpring
0 likes · 9 min read
Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT
macrozheng
macrozheng
May 23, 2025 · Backend Development

Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know

This article introduces 17 practical Java utility classes—including Collections, CollectionUtils, Lists, Objects, BooleanUtils, StringUtils, Assert, IOUtils, MDC, ClassUtils, BeanUtils, ReflectionUtils, Base64Utils, StandardCharsets, DigestUtils, SerializationUtils, and HttpStatus—showing how to use them with clear code examples to streamline everyday development tasks.

JavaSpringbackend
0 likes · 30 min read
Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know
Code Ape Tech Column
Code Ape Tech Column
May 20, 2025 · Backend Development

Dynamic Chain of Responsibility in Spring: A Practical Implementation

This article explains how to split a multi‑function OpenAPI endpoint into independent steps using the responsibility‑chain pattern in Spring, detailing the abstract component, context sharing, bean retrieval via ApplicationContext, and a controller that dynamically orders execution through a query parameter, with full code examples.

AOPChain of ResponsibilityJava
0 likes · 9 min read
Dynamic Chain of Responsibility in Spring: A Practical Implementation
Top Architecture Tech Stack
Top Architecture Tech Stack
May 14, 2025 · Backend Development

Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions

This article explains how to store and inject collection types such as List, array, Set, and Map in Spring configuration files, demonstrates the pitfalls of using @Value directly, and provides practical solutions using @ConfigurationProperties, EL split functions, and custom decoders for flexible and safe property binding.

EL expressionJavaList
0 likes · 7 min read
Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions
Selected Java Interview Questions
Selected Java Interview Questions
May 14, 2025 · Backend Development

Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management

This article presents a comprehensive guide to implementing full‑chain log tracing, unified exception handling, permission interception, request latency monitoring, and standardized log formats in enterprise‑level Java projects using Spring AOP, thread‑local context, and Redis caching.

AOPExceptionHandlingLogging
0 likes · 23 min read
Enterprise Java Core Features: Full‑Chain Logging, Unified Exception Handling, Permission Interceptor, and Thread Context Management
Architect
Architect
May 12, 2025 · Backend Development

Why 500 RPS Dropped to 50 RPS: Tracing Spring Bean Creation and Thread‑Pool Bottlenecks

A ToB Java service that initially expected 500 requests per second fell to only 50 RPS under load, prompting a step‑by‑step investigation of CPU usage, lock contention, slow SQL, excessive logging, prototype‑scoped beans, and thread‑pool configuration, ultimately revealing how bean creation and async execution affect throughput.

JavaOptimizationPerformance
0 likes · 16 min read
Why 500 RPS Dropped to 50 RPS: Tracing Spring Bean Creation and Thread‑Pool Bottlenecks
Java Tech Enthusiast
Java Tech Enthusiast
May 11, 2025 · Backend Development

Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions

This article explains why orders that remain unpaid for 30 minutes should be automatically cancelled and compares five technical approaches—database polling, JDK Timer, message‑queue delayed queues, distributed schedulers like Quartz, and Redis expiration listeners—detailing their implementation steps, code samples, pros, cons, and suitable scenarios.

Message QueueOrder CancellationQuartz
0 likes · 19 min read
Implementing Automatic Order Cancellation After 30 Minutes: Five Practical Solutions
Su San Talks Tech
Su San Talks Tech
May 8, 2025 · Backend Development

Boost Your Java Productivity: Essential Utility Classes You Should Know

This article introduces nine indispensable Java utility classes—including Collections, CollectionUtils, Lists, Objects, StringUtils, BeanUtils, ReflectionUtils, DigestUtils, and HttpStatus—showing how each can simplify common tasks, reduce boilerplate code, and improve development efficiency with clear examples and code snippets.

Apache CommonsCollectionsJava
0 likes · 20 min read
Boost Your Java Productivity: Essential Utility Classes You Should Know
Java Tech Enthusiast
Java Tech Enthusiast
May 8, 2025 · Backend Development

Comprehensive Overview of Spring Ecosystem Upgrades: Spring 6 Core Features, Spring Boot 3.0 Breakthroughs, and Migration Roadmap

The article surveys the Spring 6 and Spring Boot 3.0 upgrades—JDK 17 baseline, virtual threads, @HttpExchange client, RFC 7807 ProblemDetail handling, GraalVM native images, Jakarta EE 9+ migration, enhanced auto‑configuration, OAuth2 authorization server, Prometheus‑compatible metrics—and provides a step‑by‑step migration roadmap with practical recommendations for modernizing e‑commerce applications.

GraalVMJavaSpring
0 likes · 7 min read
Comprehensive Overview of Spring Ecosystem Upgrades: Spring 6 Core Features, Spring Boot 3.0 Breakthroughs, and Migration Roadmap
Code Ape Tech Column
Code Ape Tech Column
May 7, 2025 · Backend Development

Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements

This article provides a comprehensive guide to Spring 6.0’s new baseline JDK 17 requirement, virtual threads, declarative HTTP clients, RFC‑7807 ProblemDetail handling, GraalVM native image support, and Spring Boot 3.0 improvements such as Jakarta EE migration, OAuth2 authorization server, Prometheus monitoring, and practical migration steps for enterprise applications.

GraalVMJavaPrometheus
0 likes · 8 min read
Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements