Tagged articles
5000 articles
Page 37 of 50
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 5, 2024 · Backend Development

How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors

This article explains why @Configuration classes can cause circular dependency and custom BeanPostProcessor issues in Spring Boot, and provides practical solutions such as enabling circular references, using static @Bean methods, and preferring constructor injection for reliable bean injection.

BeanPostProcessorcircular-dependencyjava
0 likes · 6 min read
How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors
Architect's Tech Stack
Architect's Tech Stack
Jul 4, 2024 · Backend Development

Guide to Installing and Using MinIO with Spring Boot for Large File Uploads

This tutorial explains MinIO's features, common application scenarios, step‑by‑step CentOS 7 Docker installation, Spring Boot configuration, utility classes for bucket management, file upload/download, presigned URLs, and provides REST endpoints for handling large file uploads in Java backend applications.

DockerFileUploadMinio
0 likes · 23 min read
Guide to Installing and Using MinIO with Spring Boot for Large File Uploads
Java Architect Essentials
Java Architect Essentials
Jul 3, 2024 · Backend Development

From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling

This article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive try‑catch blocks and manual field checks—into clean, maintainable code by applying @Valid validation, reducing boilerplate, and implementing a centralized exception‑handling strategy.

ControllerException Handlingbackend-development
0 likes · 9 min read
From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling
Architect
Architect
Jul 3, 2024 · Backend Development

How to Supercharge Java Backend Performance: Parallelism, Thread Pools, Caching, and More

This article walks through practical Java backend performance techniques—including parallel processing with CompletableFuture, fine‑tuned thread‑pool configuration, transaction scope minimization, cache‑line awareness, object‑pool usage, lock granularity, copy‑on‑write collections, and network payload reduction—backed by concrete code samples, benchmark results, and step‑by‑step analysis of trade‑offs and best practices.

ThreadPoolcachingconcurrency
0 likes · 36 min read
How to Supercharge Java Backend Performance: Parallelism, Thread Pools, Caching, and More
Yum! Tech Team
Yum! Tech Team
Jul 3, 2024 · Backend Development

Implementing Sentinel for Traffic Protection and Rate Limiting in a Large-Scale Restaurant Digital Platform

This article details how a large restaurant chain leveraged the open‑source Sentinel framework to implement comprehensive traffic protection, rate limiting, and circuit‑breaking across millions of daily orders, describing challenges, design choices, high‑availability rule distribution, monitoring, user‑experience considerations, and providing Java code examples for integration.

Backendjavaobservability
0 likes · 11 min read
Implementing Sentinel for Traffic Protection and Rate Limiting in a Large-Scale Restaurant Digital Platform
Top Architect
Top Architect
Jul 3, 2024 · Fundamentals

Step‑by‑Step Guide to Installing and Configuring the CheckStyle Plugin in IntelliJ IDEA

This article provides a step‑by‑step tutorial for installing and configuring the CheckStyle plugin in IntelliJ IDEA, explains how to address common CheckStyle warnings such as missing annotations, spacing, naming, formatting, logical errors and import‑order issues, includes screenshots, and also contains promotional material for ChatGPT services and a community group.

IntelliJ IDEAcheckstylecode style
0 likes · 9 min read
Step‑by‑Step Guide to Installing and Configuring the CheckStyle Plugin in IntelliJ IDEA
Selected Java Interview Questions
Selected Java Interview Questions
Jul 3, 2024 · Artificial Intelligence

Integrating OpenCV with Java and Spring Boot for Face Detection and Recognition

This guide provides a comprehensive walkthrough of installing OpenCV, using its Java API for image and video face detection, implementing face comparison, creating custom GUI windows, and integrating the library into a Spring Boot application with detailed code examples and common troubleshooting tips.

Computer VisionCustom GUIFace Detection
0 likes · 25 min read
Integrating OpenCV with Java and Spring Boot for Face Detection and Recognition
Architect's Guide
Architect's Guide
Jul 3, 2024 · Backend Development

Hot‑Pluggable AOP Implementation in Spring: Dynamically Managing Advice

This article demonstrates how to implement hot‑pluggable AOP in Spring by allowing users to dynamically add or remove advice at runtime, covering prerequisite concepts, core logic, complete code examples, and test scenarios that show logging activation and deactivation without restarting the application.

AdviceBackendDynamic Plugin
0 likes · 9 min read
Hot‑Pluggable AOP Implementation in Spring: Dynamically Managing Advice
Top Architect
Top Architect
Jul 2, 2024 · Backend Development

Cache Preheating in Spring: Abstract Cache, Context Utility, and Implementation

This article explains the concept of cache preheating, provides an abstract cache class, a Spring ApplicationContext utility, a CommandLineRunner handler to load hot data at startup, and demonstrates a concrete NewsCache implementation with Redis integration, followed by a REST endpoint to access the cached data.

AbstractCacheCache PreheatCommandLineRunner
0 likes · 8 min read
Cache Preheating in Spring: Abstract Cache, Context Utility, and Implementation
Code Ape Tech Column
Code Ape Tech Column
Jul 2, 2024 · Backend Development

How to Use Java Stream toMap with Duplicate Keys and Null Values

This article demonstrates how to convert a list of Java objects into a Map using Stream's toMap collector, addresses duplicate key exceptions by providing a merge function, handles null values with Optional, and compares stream-based solutions with traditional for-loop approaches.

DuplicateKeyStreamjava
0 likes · 6 min read
How to Use Java Stream toMap with Duplicate Keys and Null Values
macrozheng
macrozheng
Jul 2, 2024 · Backend Development

How to Speed Up Excel-to-Database Imports with Async and Thread Pool Tuning

Learn how to efficiently import large Excel files into a database using POI, JDBC, MyBatis, and Spring Boot, with step-by-step code examples, performance bottlenecks, and optimization techniques such as caching, asynchronous processing, multi-threaded batch inserts, and thread‑pool configuration for maximum throughput.

AsyncExceldatabase
0 likes · 16 min read
How to Speed Up Excel-to-Database Imports with Async and Thread Pool Tuning
Tencent Cloud Developer
Tencent Cloud Developer
Jul 2, 2024 · Big Data

Apache Flink Deployment with Pulsar Connector: Setup, Demos, and Best Practices

This guide shows how to deploy Apache Flink 1.17 in Docker, configure off‑heap memory, connect it to Pulsar via the 4.1.0‑1.17 connector, run example jobs that copy topics and perform windowed word‑count, and provides Maven dependencies, custom serialization tips, batching settings, and version‑specific best‑practice notes.

Apache FlinkDataStreamDocker deployment
0 likes · 20 min read
Apache Flink Deployment with Pulsar Connector: Setup, Demos, and Best Practices
Su San Talks Tech
Su San Talks Tech
Jul 2, 2024 · Backend Development

11 Ways to Implement Delayed Tasks in Java – From DelayQueue to Quartz

This article explores eleven practical approaches for implementing delayed tasks in Java, covering native APIs like DelayQueue and Timer, thread‑pool executors, popular message‑queue solutions such as RocketMQ and RabbitMQ, as well as Redis‑based techniques, Redisson, Netty, Hutool, Quartz, and simple polling implementations.

concurrencydelayed tasksjava
0 likes · 25 min read
11 Ways to Implement Delayed Tasks in Java – From DelayQueue to Quartz
Java Architect Essentials
Java Architect Essentials
Jul 1, 2024 · Backend Development

Pitfalls of Java Bean Property Copy Tools and Recommended Alternatives

This article explains why generic Java bean property copy utilities like Spring BeanUtils, Apache Commons BeanUtils, and CGLIB can cause runtime type conversion errors and performance issues, demonstrates the problems with code examples, and recommends using custom converters or IDE‑generated mapping code such as MapStruct for safe and efficient object transformation.

BackendBeanUtilsPropertyCopy
0 likes · 8 min read
Pitfalls of Java Bean Property Copy Tools and Recommended Alternatives
Architect
Architect
Jul 1, 2024 · Information Security

Spring Security 6.1 Deep Dive: Architecture, Filters, and Authentication Explained

This article provides a comprehensive analysis of Spring Security 6.1, covering its core architecture, the role of FilterChainProxy, detailed authentication and authorization flows, key interfaces such as SecurityFilterChain, AuthenticationManager, and practical code examples to help developers understand and debug the framework.

AuthenticationAuthorizationFilterChain
0 likes · 34 min read
Spring Security 6.1 Deep Dive: Architecture, Filters, and Authentication Explained
IT Services Circle
IT Services Circle
Jul 1, 2024 · Operations

Understanding Distributed Tracing with SkyWalking: Principles, Architecture, and Practical Implementation

This article explains the fundamentals of distributed tracing in microservice environments, introduces OpenTracing standards, details SkyWalking's architecture and sampling strategies, evaluates its performance against competitors, and shares practical company adaptations such as custom plugins, forced sampling, and trace ID logging.

Distributed TracingOpenTracingSkyWalking
0 likes · 15 min read
Understanding Distributed Tracing with SkyWalking: Principles, Architecture, and Practical Implementation
Java Tech Enthusiast
Java Tech Enthusiast
Jul 1, 2024 · Backend Development

MyBatis OGNL Comparison Pitfall: Single Character vs String

The article reveals that MyBatis’s OGNL treats a single‑character literal like '1' as a Character, causing equality checks against String values in if tags to fail, and shows how using double quotes, toString(), or proper type conversion resolves the comparison pitfall.

ComparisonOGNLPitfall
0 likes · 4 min read
MyBatis OGNL Comparison Pitfall: Single Character vs String
Selected Java Interview Questions
Selected Java Interview Questions
Jul 1, 2024 · Fundamentals

Java Design Patterns: Strategy, Factory, Singleton, Proxy, Observer, Template Method, Adapter and More

This article provides a comprehensive introduction to common Java design patterns—including Strategy, Factory, Singleton, Proxy, Observer, Template Method, and Adapter—explaining their concepts, typical use‑cases, and complete code implementations with Spring Boot integration for practical application development.

Design PatternsFactory PatternSoftware Architecture
0 likes · 20 min read
Java Design Patterns: Strategy, Factory, Singleton, Proxy, Observer, Template Method, Adapter and More
Java Architect Essentials
Java Architect Essentials
Jun 30, 2024 · Backend Development

Integrating jCasbin Permission Management into Spring Boot Applications

This article demonstrates how to add jCasbin to a Spring Boot project, covering Maven dependencies, configuration files, Enforcer initialization, custom policy objects, a servlet filter for authorization, and dynamic add‑remove permission APIs, enabling lightweight, database‑driven access control.

AuthorizationBackendjCasbin
0 likes · 10 min read
Integrating jCasbin Permission Management into Spring Boot Applications
Architect
Architect
Jun 30, 2024 · Backend Development

Introducing retrofit-spring-boot-starter: A Lightweight HTTP Client Framework for Spring Boot

retrofit-spring-boot-starter is a lightweight, type‑safe HTTP client framework for Spring Boot that integrates Retrofit with Spring, offering features such as custom OkHttpClient injection, annotation‑based interceptors, connection pool management, logging, retry, error decoding, circuit‑breaker support, and flexible configuration via YAML.

HTTP clientRetrofitcircuit breaker
0 likes · 21 min read
Introducing retrofit-spring-boot-starter: A Lightweight HTTP Client Framework for Spring Boot
Top Architect
Top Architect
Jun 30, 2024 · Backend Development

Spring Boot vs Quarkus: Comparative Performance Analysis and Migration Guide

This article compares Spring Boot and Quarkus across architecture, startup speed, memory usage, and native image support, presents detailed JMeter performance tests, and offers practical guidance for migrating Spring applications to the cloud‑native Quarkus framework.

MicroservicesPerformance TestingQuarkus
0 likes · 18 min read
Spring Boot vs Quarkus: Comparative Performance Analysis and Migration Guide
21CTO
21CTO
Jun 30, 2024 · Artificial Intelligence

Which Programming Language Is Best for AI? A Comparative Guide

This article surveys the most suitable programming languages for artificial intelligence, examining Python, R, Java, LISP, Prolog, C++, Haskell, JavaScript, and Julia, and outlines their strengths, ecosystem support, and use cases to help developers choose the right tool for AI projects.

AIC++JavaScript
0 likes · 15 min read
Which Programming Language Is Best for AI? A Comparative Guide
Su San Talks Tech
Su San Talks Tech
Jun 30, 2024 · Backend Development

How to Ensure Transaction Rollback Across Asynchronous Threads in Spring

This article explains how to guarantee that when any asynchronous thread fails during a large Excel import, the main thread can roll back all related transactions, covering the limitations of @Transactional and @Async, thread‑local propagation, and practical solutions using Future, CompletableFuture, custom ForkJoinPool, and manual transaction management.

Excel Importasynchronous programmingjava
0 likes · 20 min read
How to Ensure Transaction Rollback Across Asynchronous Threads in Spring
Top Architect
Top Architect
Jun 29, 2024 · Backend Development

Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project

This article details the design and implementation of a Java SpringBoot seckill system, covering its architecture, technology stack, double‑MD5 password encryption, distributed session management with Redis, unified exception handling, page and object caching, static page generation, memory‑flag plus Redis pre‑decrement and RabbitMQ asynchronous order processing, oversell prevention, and API rate limiting, accompanied by key code snippets.

Distributed SessionRabbitMQSeckill
0 likes · 11 min read
Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project
Top Architect
Top Architect
Jun 28, 2024 · Fundamentals

Understanding and Using Java BigDecimal for Precise Arithmetic

This article explains the purpose, constructors, common methods, formatting techniques, and exception handling of Java's BigDecimal class, providing code examples and best‑practice recommendations for performing high‑precision calculations in Java applications.

ArithmeticBigDecimaljava
0 likes · 17 min read
Understanding and Using Java BigDecimal for Precise Arithmetic
Top Architect
Top Architect
Jun 28, 2024 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to create a consistent JSON response format with status codes, messages, and data payloads, and how to automate its generation in Java Spring using a custom @ResponseResult annotation, interceptor, and controller advice to simplify backend development and improve front‑end integration.

APIError HandlingResponse wrapper
0 likes · 9 min read
Designing a Unified API Response Structure for Backend Services
High Availability Architecture
High Availability Architecture
Jun 28, 2024 · Backend Development

Deep Dive into pfinder: Architecture, Bytecode Enhancement, and Tracing Mechanisms

This article provides a comprehensive technical overview of pfinder, JD's next‑generation APM system, covering its core concepts, feature set, comparison with other tracing tools, bytecode modification techniques using ASM, Javassist, ByteBuddy and ByteKit, Java agent injection via JVMTI and Instrumentation, plugin loading, trace‑ID propagation across threads, and a prototype hot‑deployment capability.

APMBytecodeInstrumentationPerformanceTracing
0 likes · 23 min read
Deep Dive into pfinder: Architecture, Bytecode Enhancement, and Tracing Mechanisms
JD Cloud Developers
JD Cloud Developers
Jun 28, 2024 · Backend Development

How JD’s pfinder Achieves Full‑Stack Java Monitoring with Bytecode Magic

pfinder, JD’s in‑house APM system, provides full‑link monitoring, multi‑dimensional metrics, automatic instrumentation, topology mapping, trace analysis, AI‑driven fault detection by leveraging bytecode enhancement techniques such as ASM, Javassist, ByteBuddy and ByteKit, and integrates with JVM agents for hot‑deployment and trace propagation.

APMJVMTIbytecode instrumentation
0 likes · 18 min read
How JD’s pfinder Achieves Full‑Stack Java Monitoring with Bytecode Magic
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 28, 2024 · Backend Development

Master Spring Boot 3.2.5: Custom Failure Analyzer, Environment & Web Server Settings

This guide walks through creating custom FailureAnalyzers, registering EnvironmentPostProcessors, configuring non‑web applications, switching profiles for YAML settings, altering the embedded web server, and customizing server factories in Spring Boot 3.2.5, complete with code examples and screenshots.

Backendfailure-analyzerjava
0 likes · 9 min read
Master Spring Boot 3.2.5: Custom Failure Analyzer, Environment & Web Server Settings
IT Architects Alliance
IT Architects Alliance
Jun 27, 2024 · Backend Development

Understanding ForkJoinPool: Divide‑and‑Conquer, Implementation, and Performance Evaluation

This article explains the Fork/Join model and Java's ForkJoinPool, covering the divide‑and‑conquer algorithm, custom RecursiveTask examples, core source‑code analysis, common pool pitfalls, and performance testing to help developers decide when and how to use ForkJoinPool effectively.

DivideAndConquerForkJoinPoolParallelComputing
0 likes · 27 min read
Understanding ForkJoinPool: Divide‑and‑Conquer, Implementation, and Performance Evaluation
Top Architect
Top Architect
Jun 27, 2024 · Cloud Computing

Comprehensive Guide to Installing and Using MinIO with Spring Boot and Docker

This article provides a detailed tutorial on installing MinIO on CentOS 7 using Docker, configuring it, integrating with Spring Boot for multipart upload, generating presigned URLs, and includes complete Java code examples for utilities and controllers, covering use cases, deployment steps, and troubleshooting tips.

DockerMinioSpringBoot
0 likes · 24 min read
Comprehensive Guide to Installing and Using MinIO with Spring Boot and Docker
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2024 · Backend Development

Caffeine Cache Introduction, Basics, and Spring Boot Integration

This article introduces the Java Caffeine caching library, explains its manual, loading, and async cache APIs, details eviction and refresh strategies, shows how to collect statistics, and demonstrates full integration with Spring Boot using Maven dependencies, cache annotations, constant definitions, configuration classes, and usage examples.

BackendCacheCaffeine
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
High Availability Architecture
High Availability Architecture
Jun 27, 2024 · Backend Development

Understanding and Tuning Z Garbage Collector (ZGC) for Low‑Latency Java Applications

This article explains the principles, features, and workflow of Java's Z Garbage Collector, provides detailed configuration and logging guidance, and shares AutoMQ's practical tuning experiences that achieve sub‑millisecond pause times and improved performance for latency‑sensitive backend services.

AutoMQGarbage CollectionLow latency
0 likes · 26 min read
Understanding and Tuning Z Garbage Collector (ZGC) for Low‑Latency Java Applications
Architect
Architect
Jun 26, 2024 · Backend Development

Understanding the Fork/Join Framework and ForkJoinPool in Java

This article explains the limitations of ThreadPoolExecutor, introduces the Fork/Join model and ForkJoinPool, demonstrates how to implement divide‑and‑conquer tasks with RecursiveTask, provides performance benchmarks, and discusses design details, task submission methods, work‑stealing, and cautions about using the common pool.

DivideAndConquerForkJoinPoolParallelism
0 likes · 23 min read
Understanding the Fork/Join Framework and ForkJoinPool in Java
Programmer DD
Programmer DD
Jun 26, 2024 · Artificial Intelligence

Build a Java Chatbot with Spring AI and Alibaba Tongyi in 5 Minutes

This guide walks you through using Spring AI and Spring Cloud Alibaba AI to quickly create a Java chat application powered by Alibaba's Tongyi large‑model service, covering setup, configuration, core code, and verification steps for a functional generative AI chatbot.

Alibaba CloudChatbotgenerative AI
0 likes · 10 min read
Build a Java Chatbot with Spring AI and Alibaba Tongyi in 5 Minutes
DaTaobao Tech
DaTaobao Tech
Jun 26, 2024 · Backend Development

Using MapStruct for Efficient Java Bean Mapping

MapStruct is a compile‑time Java bean‑mapping generator that, when added as an annotation processor in Maven, Gradle or an IDE, lets developers define @Mapper interfaces to automatically produce type‑safe, high‑performance implementations—including custom field mappings, nested collections, and lifecycle hooks—thereby eliminating boilerplate code and centralizing mapping logic.

Annotation ProcessorObject Mappingjava
0 likes · 17 min read
Using MapStruct for Efficient Java Bean Mapping
Top Architect
Top Architect
Jun 26, 2024 · Backend Development

Visualizing Java Servlet Inheritance Hierarchy with IntelliJ IDEA Diagrams

This article explains how to use IntelliJ IDEA's diagram feature to view, clean up, and explore the inheritance and interface implementation relationships of Java Servlet classes, including tips for removing irrelevant nodes, inspecting class members, adjusting visibility, zooming, and adding related classes to the diagram.

IDE TipsInheritance DiagramIntelliJ IDEA
0 likes · 7 min read
Visualizing Java Servlet Inheritance Hierarchy with IntelliJ IDEA Diagrams
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 26, 2024 · Backend Development

JVM Class Loading Explained: From Loading to Initialization

This article provides a comprehensive, step‑by‑step explanation of the JVM class‑loading mechanism, covering the five phases—Loading, Verification, Preparation, Resolution, and Initialization—along with diagrams and detailed descriptions of each operation performed by the JVM.

JVMRuntimebackend-development
0 likes · 7 min read
JVM Class Loading Explained: From Loading to Initialization
Tencent Cloud Middleware
Tencent Cloud Middleware
Jun 26, 2024 · Cloud Native

How PolarisMesh Server Handles Service Registration: Deep Dive into the Registration Flow

This article explores PolarisMesh’s server-side registration process, detailing how client registration requests are handled, the data flow through apiserver, resource auth filter, service and storage layers, and provides concrete code examples for both Java and Go SDKs, along with MySQL storage schema.

GoPolarisMeshService Registration
0 likes · 19 min read
How PolarisMesh Server Handles Service Registration: Deep Dive into the Registration Flow
JD Cloud Developers
JD Cloud Developers
Jun 26, 2024 · Backend Development

Understanding Java Heap Memory: Prevent OutOfMemory Errors and Optimize GC

This article explains Java heap memory concepts, garbage collection, common memory issues like leaks and OutOfMemoryError, and outlines the team's quality assurance framework—including left‑shift code review, right‑shift monitoring, and continuous delivery practices—to help prevent and resolve production alerts.

Garbage CollectionHeap MemoryOutOfMemoryError
0 likes · 10 min read
Understanding Java Heap Memory: Prevent OutOfMemory Errors and Optimize GC
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 26, 2024 · Backend Development

Master SpringBoot PropertySourcesPlaceholderConfigurer & PropertyOverrideConfigurer

This guide explains how to use SpringBoot's PropertySourcesPlaceholderConfigurer and PropertyOverrideConfigurer to handle missing placeholders, set default values, customize prefixes, load custom property files, and override bean properties—including nested properties—while avoiding common pitfalls like startup errors and NPEs.

Backendjavapropertyoverrideconfigurer
0 likes · 6 min read
Master SpringBoot PropertySourcesPlaceholderConfigurer & PropertyOverrideConfigurer
Architect
Architect
Jun 25, 2024 · Backend Development

Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit

This article explains how to use Spring's TransactionSynchronizationManager to detect active transactions and register callbacks that asynchronously send Kafka messages after a transaction successfully commits, ensuring data consistency in payment‑system archiving scenarios.

BackendKafkaSpringBoot
0 likes · 10 min read
Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit
Top Architect
Top Architect
Jun 25, 2024 · Backend Development

A Comprehensive Guide to Spring Boot Startup Sequence and Extension Points

This article explains the Spring Boot startup process, enumerates the key extension points and their execution order, demonstrates the sequence with practical code examples, and answers common questions about bean initialization, lifecycle callbacks, and the proper timing for opening RPC, MQ, and HTTP traffic.

ExtensionPointsLifecycleSpringBoot
0 likes · 16 min read
A Comprehensive Guide to Spring Boot Startup Sequence and Extension Points
Selected Java Interview Questions
Selected Java Interview Questions
Jun 25, 2024 · Databases

Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot

This article details the end‑to‑end design, configuration, and code implementation of a 50‑table sharding solution for cash repayment and loan application data, covering database schema planning, historical data migration, backend query adaptation, dynamic switches, scheduled consistency checks, and practical pitfalls encountered with Spring Boot 3 and ShardingSphere.

ShardingSphereSpringBootbackend-development
0 likes · 22 min read
Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Jun 25, 2024 · Backend Development

COLA Stateless State Machine: A Lightweight, Thread‑Safe Alternative to Spring StateMachine for Java Backend Order Processing

The article explains why Spring StateMachine is heavyweight and thread‑unsafe for high‑concurrency order management, introduces the open‑source COLA stateless state machine as a simpler, lock‑free solution, and provides detailed design principles, core concepts, and extensive Java code examples.

COLAjavaspring
0 likes · 13 min read
COLA Stateless State Machine: A Lightweight, Thread‑Safe Alternative to Spring StateMachine for Java Backend Order Processing
Top Architect
Top Architect
Jun 24, 2024 · Backend Development

Understanding Tomcat Configuration and Thread Management in Spring Boot 2.7.10

This article explains the default Tomcat settings bundled with Spring Boot 2.7.10, details core parameters such as accept‑count, max‑connections, thread pool sizes, and timeouts, describes the internal Acceptor and Poller threads, provides configuration examples and testing results, and includes reference links.

ThreadPoolTomcatjava
0 likes · 18 min read
Understanding Tomcat Configuration and Thread Management in Spring Boot 2.7.10
Selected Java Interview Questions
Selected Java Interview Questions
Jun 24, 2024 · Backend Development

Using Alibaba Druid Connection Pool in Spring Boot: Configuration, Monitoring, and Customization

This article provides a comprehensive guide on integrating Alibaba's Druid connection pool into Spring Boot applications, covering its advantages, dependency setup, detailed configuration properties, built‑in filters, monitoring pages, ad removal techniques, and programmatic access to runtime statistics.

BackendConnection PoolDruid
0 likes · 13 min read
Using Alibaba Druid Connection Pool in Spring Boot: Configuration, Monitoring, and Customization
Architect's Guide
Architect's Guide
Jun 24, 2024 · Fundamentals

Comprehensive Guide to Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Pitfalls

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, recommended constructors, key arithmetic methods, comparison techniques, formatting with NumberFormat, handling of division exceptions, and best‑practice tips such as using the String constructor and managing immutability.

ArithmeticBigDecimalException
0 likes · 13 min read
Comprehensive Guide to Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Jun 24, 2024 · Backend Development

Applying the Service Locator Pattern in Spring to Decouple File Parsers

The article explains how to replace tightly‑coupled if‑else or switch statements for selecting CSV, JSON, or XML parsers with a Service Locator Pattern in Spring, showing step‑by‑step code examples, configuration, and the resulting adherence to the open‑closed principle.

Factory BeanService Locatordependency-injection
0 likes · 8 min read
Applying the Service Locator Pattern in Spring to Decouple File Parsers
Su San Talks Tech
Su San Talks Tech
Jun 24, 2024 · Fundamentals

How to Break Java’s Parent Delegation Mechanism and Why It Matters

This article explains the purpose of Java's parent delegation class‑loader mechanism, describes its three built‑in loaders, and details common scenarios—such as JNDI, JDBC, Tomcat, and OSGi—where developers intentionally break the delegation to achieve flexibility and isolation.

Custom ClassLoaderJDBCParent Delegation
0 likes · 10 min read
How to Break Java’s Parent Delegation Mechanism and Why It Matters
Architect's Tech Stack
Architect's Tech Stack
Jun 24, 2024 · Backend Development

Implementing a FIFO Export Queue for Large‑Scale Data Export in Java

This article explains how to design and implement a fixed-size FIFO export queue in Java to manage large‑scale MySQL data exports, detailing the ExportQueue class, abstract export logic with EasyExcel, a concrete ExportImpl service, and a test controller, while discussing performance considerations and future enhancements.

ExportQueueeasyexcel
0 likes · 11 min read
Implementing a FIFO Export Queue for Large‑Scale Data Export in Java
IT Architects Alliance
IT Architects Alliance
Jun 23, 2024 · Databases

Configuring Druid DataSource Monitoring and Filters in Spring Boot

This guide explains the fundamentals of Druid as a Java database connection pool, how to add required Maven dependencies, configure various Druid properties and filters for SQL and web monitoring, enable slow‑SQL logging, integrate Spring AOP monitoring, remove the default Alibaba advertisement, and retrieve monitoring data via the DruidStatManagerFacade API.

Connection PoolDatabase MonitoringDruid
0 likes · 14 min read
Configuring Druid DataSource Monitoring and Filters in Spring Boot
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2024 · Fundamentals

Understanding Fail-Fast Iterators and ConcurrentModificationException in Java Collections

The article explains why fail‑fast iterators throw ConcurrentModificationException when a collection is modified during iteration, outlines two common scenarios that trigger the exception, and presents both incorrect and correct Java code examples along with strategies such as avoiding modifications, using synchronization, iterator.remove(), or switching to fail‑safe concurrent collections.

CollectionsConcurrentModificationExceptionFail-Fast Iterator
0 likes · 5 min read
Understanding Fail-Fast Iterators and ConcurrentModificationException in Java Collections
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2024 · Backend Development

Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation

This article explains how Java's parallelStream uses the shared ForkJoinPool, why developers may need to customize the thread pool for better performance and isolation, and provides two approaches—setting the system property and creating a dedicated ForkJoinPool—along with complete code examples and execution results.

ForkJoinPoolParallelStreamThreadPool
0 likes · 4 min read
Customizing Thread Pools for Java parallelStream to Improve Performance and Isolation
Architect
Architect
Jun 22, 2024 · Backend Development

Master Druid: Configure, Monitor, and Optimize Spring Boot Data Sources

This guide explains how to integrate Alibaba's Druid connection pool into Spring Boot, covering basic concepts, Maven dependencies, essential configuration properties, built‑in filters, monitoring pages, SQL and slow‑query logging, Spring AOP monitoring, ad removal, and programmatic access to Druid statistics.

Connection PoolDatabase MonitoringDruid
0 likes · 16 min read
Master Druid: Configure, Monitor, and Optimize Spring Boot Data Sources
IT Services Circle
IT Services Circle
Jun 22, 2024 · Backend Development

Comprehensive Guide to Java Backend Interview Topics: Object Creation, Reflection, Serialization, GC, I/O Multiplexing, and Network Troubleshooting

This article provides an in-depth review of common Java backend interview questions, covering alternative object creation methods, practical reflection scenarios, serialization techniques, garbage‑collection algorithms, I/O multiplexing mechanisms, network port listening, and troubleshooting tips for server‑client communication issues.

Garbage CollectionI/O MultiplexingReflection
0 likes · 24 min read
Comprehensive Guide to Java Backend Interview Topics: Object Creation, Reflection, Serialization, GC, I/O Multiplexing, and Network Troubleshooting
Top Architect
Top Architect
Jun 22, 2024 · Backend Development

Understanding Idempotency and Its Implementation with Custom Annotations in Java

This article explains the concept of idempotency, identifies which HTTP requests are naturally idempotent, discusses why idempotency is essential for retries, async callbacks, and message queues, and demonstrates a practical Java implementation using custom annotations, AOP, and Redis for token management.

Idempotencyannotationsaop
0 likes · 11 min read
Understanding Idempotency and Its Implementation with Custom Annotations in Java
Su San Talks Tech
Su San Talks Tech
Jun 22, 2024 · Backend Development

How to Speed Up Excel-to-Database Imports with Async and Thread‑Pool Tuning in Java

This article explains the common slow approach of reading Excel files with POI and inserting rows via JDBC, then presents three practical optimizations—caching data, using asynchronous multithreaded reads, and per‑file async processing—along with thread‑pool configuration tips and EasyExcel examples to dramatically reduce import time from minutes to seconds.

AsyncExcelThreadPool
0 likes · 17 min read
How to Speed Up Excel-to-Database Imports with Async and Thread‑Pool Tuning in Java
JD Tech
JD Tech
Jun 21, 2024 · Operations

Deep Dive into pfinder: Architecture, Features, and Bytecode Instrumentation

This article provides a comprehensive technical overview of pfinder, a Java‑based APM system, covering its core concepts, feature set, comparison with other tracing tools, bytecode instrumentation techniques, plugin architecture, trace‑ID propagation across threads, and a simple hot‑deployment implementation.

APMAgentBytecodeInstrumentation
0 likes · 22 min read
Deep Dive into pfinder: Architecture, Features, and Bytecode Instrumentation
Top Architect
Top Architect
Jun 21, 2024 · Backend Development

Deep Dive into Spring Boot Startup Sequence and Extension Points

This article provides a comprehensive explanation of Spring Boot's startup process, detailing each lifecycle extension point, the order of execution, common pitfalls with RPC/MQ/HTTP traffic, and includes runnable code examples to help developers master Spring initialization.

DependencyInjectionLifecycleSpringBoot
0 likes · 15 min read
Deep Dive into Spring Boot Startup Sequence and Extension Points
macrozheng
macrozheng
Jun 21, 2024 · Backend Development

Master MyBatis Dynamic SQL: 9 Essential Tag Techniques for Cleaner Code

This article walks through MyBatis dynamic SQL tags—foreach, concat, choose, selectKey, if, where, trim, set, and sql fragments—explaining their attributes, usage patterns, and common pitfalls, and provides complete XML and Java code examples for each technique.

Dynamic SQLXMLdatabase
0 likes · 20 min read
Master MyBatis Dynamic SQL: 9 Essential Tag Techniques for Cleaner Code
Programmer DD
Programmer DD
Jun 21, 2024 · Backend Development

Build a Lightweight Java Logging System with Loki, Loki4j, and Grafana

Learn how to set up a simple yet powerful Java logging solution by installing Loki and Grafana via Docker, configuring Loki4j in a Spring Boot project, and visualizing logs in Grafana dashboards, with step‑by‑step instructions and essential code snippets.

DockerGrafanaLoki
0 likes · 8 min read
Build a Lightweight Java Logging System with Loki, Loki4j, and Grafana
Architecture Digest
Architecture Digest
Jun 21, 2024 · Artificial Intelligence

Getting Started with Spring Cloud Alibaba AI: Integrating Tongyi Large Models in Spring Boot

This article introduces Spring Cloud Alibaba AI, explains its relationship to Spring AI, and provides a step‑by‑step tutorial—including Maven setup, dependency configuration, code examples, and sample calls—to integrate Alibaba's Tongyi large‑model services for text QA, image generation, and speech synthesis in a Java Spring Boot application.

AI integrationAlibaba CloudTutorial
0 likes · 11 min read
Getting Started with Spring Cloud Alibaba AI: Integrating Tongyi Large Models in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Jun 21, 2024 · Backend Development

Debugging a 100 ms Latency Bug in a Spring Boot Channel System Using Arthas

This article documents the step‑by‑step investigation of an unexpected ~100 ms response delay in a Spring Boot channel service, showing how network checks, curl tests, Arthas trace/stack commands, and source analysis revealed a Tomcat‑embed bug caused by Swagger‑ui resources and how upgrading Tomcat resolved the issue.

ArthasBackendPerformance debugging
0 likes · 14 min read
Debugging a 100 ms Latency Bug in a Spring Boot Channel System Using Arthas
Lobster Programming
Lobster Programming
Jun 21, 2024 · Backend Development

How to Implement Efficient Large File Chunked Download with Java and MinIO

Learn how to download massive files—such as multi‑gigabyte videos—by splitting them into chunks using HTTP Range headers, implementing a Java Spring backend with MinIO storage, multi‑threaded retrieval, and seamless merging, while also handling breakpoint resume and Swagger documentation.

Breakpoint ResumeChunked DownloadHTTP Range
0 likes · 13 min read
How to Implement Efficient Large File Chunked Download with Java and MinIO
Top Architect
Top Architect
Jun 20, 2024 · Backend Development

When and How to Use Null Checks in Java: Best Practices and Alternatives

This article discusses the proper use of null‑checking in Java, distinguishes between valid and invalid null returns, proposes alternatives such as returning empty collections, using assertions or throwing exceptions, and demonstrates the Null Object pattern with concrete code examples while also noting related community resources.

Null Objectdefensive programmingjava
0 likes · 9 min read
When and How to Use Null Checks in Java: Best Practices and Alternatives
Huolala Tech
Huolala Tech
Jun 20, 2024 · Backend Development

Why Our Core Service Crashed: Tomcat Thread Pool Bottlenecks & Custom Executor Pitfalls

On October 27, 2023, a sudden surge in request volume and downstream latency caused the bfe‑customer‑application‑query‑svc to exhaust its Tomcat thread pool, triggering health‑check failures and pod restarts; a deep dive revealed that an ill‑designed custom executor and unchecked thread‑waiting calls created a bottleneck that amplified the outage.

ExecutorIncidentAnalysisKubernetes
0 likes · 36 min read
Why Our Core Service Crashed: Tomcat Thread Pool Bottlenecks & Custom Executor Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Jun 20, 2024 · Backend Development

Implementation of Contract Signing Process Using Chain of Responsibility, Strategy, and Composite Patterns in Java

This article explains a Java-based contract signing system that combines the Chain of Responsibility, Composite, and Strategy design patterns within a Spring Boot application, detailing the processing flow, project structure, key code implementations, and how annotations and enums simplify bean injection.

Chain of ResponsibilityDesign PatternsStrategy Pattern
0 likes · 16 min read
Implementation of Contract Signing Process Using Chain of Responsibility, Strategy, and Composite Patterns in Java
Architect
Architect
Jun 19, 2024 · Information Security

Implementing RSA and AES Hybrid Encryption for API Security in Java

This article describes a real‑world API security incident, explains the fundamentals of asymmetric RSA and symmetric AES encryption, and provides a complete Java implementation—including a hybrid encryption strategy, custom @RequestRSA annotation, Spring AOP decryption aspect, and utility classes—to securely transmit and automatically decrypt request parameters.

AESRSAencryption
0 likes · 23 min read
Implementing RSA and AES Hybrid Encryption for API Security in Java
vivo Internet Technology
vivo Internet Technology
Jun 19, 2024 · Big Data

Understanding BitMap and Roaring BitMap: Principles, Containers, and Java API Usage

The article explains BitMap fundamentals and introduces Roaring BitMap’s compressed container architecture—Array, BitMap, and Run containers—detailing their conversion logic, Java implementation snippets, performance advantages over traditional BitSets, and practical API usage for high‑performance, memory‑efficient big‑data applications.

Big DataContainersRoaring Bitmap
0 likes · 18 min read
Understanding BitMap and Roaring BitMap: Principles, Containers, and Java API Usage
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 19, 2024 · Backend Development

Designing Visual Workflow Orchestration with LiteFlow: From Basic Components to Advanced AST Generation

This article explains how to use the LiteFlow rule‑engine framework to define reusable Java components, express execution flows with EL expressions, design a visual canvas that converts JSON into an abstract syntax tree, generate valid EL code via DFS, and manage workflow updates through push‑pull refresh mechanisms, while also outlining benefits and future plans.

ASTEL expressionLiteFlow
0 likes · 18 min read
Designing Visual Workflow Orchestration with LiteFlow: From Basic Components to Advanced AST Generation
Bin's Tech Cabin
Bin's Tech Cabin
Jun 19, 2024 · Fundamentals

Why PhantomReference Can Track GC While WeakReference Can’t in ZGC

Exploring the differences between PhantomReference and WeakReference in Java’s ZGC, this article explains how ZGC’s concurrent phases and the should_drop method use distinct bitmap bits to determine object liveness, revealing why only PhantomReference reliably tracks object reclamation in certain finalization scenarios.

Garbage CollectionJVMPhantomReference
0 likes · 11 min read
Why PhantomReference Can Track GC While WeakReference Can’t in ZGC
Top Architect
Top Architect
Jun 19, 2024 · Backend Development

Standardizing Java API Interfaces and Controller Practices with ResultBean and AOP

The article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, unnecessary parameters, and complex inputs—then proposes a unified ResultBean response model, controller conventions, and AOP-based logging and exception handling to improve code readability and maintainability.

ControllerException HandlingResultBean
0 likes · 12 min read
Standardizing Java API Interfaces and Controller Practices with ResultBean and AOP
Selected Java Interview Questions
Selected Java Interview Questions
Jun 19, 2024 · Backend Development

PowerJob: Introduction, Installation, and Task Configuration Guide

This article introduces the PowerJob Java distributed scheduling framework, explains its features and task types, provides step‑by‑step installation via JAR and Docker, demonstrates database setup, server and worker configuration, and details how to create and configure scheduled tasks with code examples.

BackendDistributed Schedulingjava
0 likes · 11 min read
PowerJob: Introduction, Installation, and Task Configuration Guide
macrozheng
macrozheng
Jun 19, 2024 · Backend Development

Master CheckStyle in IntelliJ IDEA: Step-by-Step Guide to Clean Java Code

This guide walks you through installing and configuring the CheckStyle plugin in IntelliJ IDEA, explains how to import custom rule sets, and details common style violations such as missing annotations, spacing, naming, formatting, logical errors, and import order, offering practical fixes to keep Java code clean and consistent.

IntelliJ IDEAcheckstylecode style
0 likes · 4 min read
Master CheckStyle in IntelliJ IDEA: Step-by-Step Guide to Clean Java Code
Architecture & Thinking
Architecture & Thinking
Jun 19, 2024 · Artificial Intelligence

Build AI‑Native Apps Quickly with Spring AI: From Chat Models to RAG

This guide explains what an AI‑native application is, compares AI‑native and AI‑based approaches, and walks through Spring AI’s core features—including chat models, prompt templates, function calling, structured output, image generation, embedding, and vector stores—showing step‑by‑step code examples and how to assemble a complete AI‑native app with RAG support.

AI native applicationFunction CallingPrompt engineering
0 likes · 43 min read
Build AI‑Native Apps Quickly with Spring AI: From Chat Models to RAG
Code Ape Tech Column
Code Ape Tech Column
Jun 19, 2024 · Backend Development

Implementing Gray Release (Canary Deployment) in Spring Cloud with Nacos and Ribbon

This article explains how to implement a gray (canary) release strategy in a Spring Cloud microservice ecosystem using Nacos for service discovery, Spring Cloud Gateway for request routing, Ribbon for load balancing, and custom filters and interceptors to control traffic based on request headers, IP, city or user ID.

NacosRibbonSpring Cloud
0 likes · 20 min read
Implementing Gray Release (Canary Deployment) in Spring Cloud with Nacos and Ribbon
Java Architect Essentials
Java Architect Essentials
Jun 18, 2024 · Backend Development

Resolving MyBatis‑Plus LocalDateTime Conversion Errors by Upgrading MySQL Connector

This article explains why replacing MyBatis with MyBatis‑Plus caused a LocalDateTime conversion exception, identifies the root cause as an outdated mysql‑connector‑java version, and shows how upgrading the connector (to 5.1.37 or later) resolves the issue while providing code examples and debugging steps.

LocalDateTimebackend-developmentdatabase
0 likes · 16 min read
Resolving MyBatis‑Plus LocalDateTime Conversion Errors by Upgrading MySQL Connector
macrozheng
macrozheng
Jun 18, 2024 · Backend Development

How to Implement Robust API Debounce with Redis and Redisson in Spring Boot 3

This article explains why API debounce is essential, outlines which endpoints need it, describes how to generate unique keys, and provides complete implementations using Redis cache and Redisson distributed locks in a Spring Boot 3 backend, complete with testing results.

APIDebouncedistributed-lock
0 likes · 17 min read
How to Implement Robust API Debounce with Redis and Redisson in Spring Boot 3