Tagged articles

Java

5000 articles · Page 24 of 50
Lin is Dream
Lin is Dream
Jun 27, 2025 · Backend Development

How to Solve Common RocketMQ Issues: Duplicates, Throttling, Retries, and Loss

This article examines frequent RocketMQ problems such as duplicate sending, flow‑control throttling, message retries, duplicate consumption, backlog, and loss, and provides practical configuration tweaks, scaling strategies, batch sending, idempotent handling, and retry mechanisms to ensure reliable message delivery.

JavaMessage QueuePerformance Tuning
0 likes · 9 min read
How to Solve Common RocketMQ Issues: Duplicates, Throttling, Retries, and Loss
Cognitive Technology Team
Cognitive Technology Team
Jun 26, 2025 · Backend Development

Mastering JVM Argument Prefixes: Boost Java Performance & Debugging

This tutorial explains the purpose and usage of JVM argument prefixes—including system properties, standard, non‑standard, and advanced options—along with execution modes like interpreted, compiled, and mixed, providing code examples and performance comparisons to help Java developers optimize and debug their applications.

GCJVM OptionsJava
0 likes · 13 min read
Mastering JVM Argument Prefixes: Boost Java Performance & Debugging
macrozheng
macrozheng
Jun 26, 2025 · Operations

Master JVM Performance: Visual Tools, JConsole, VisualVM & Arthas Guide

This guide introduces JVM performance monitoring by explaining built‑in tools like JConsole and VisualVM, showcasing third‑party solutions such as Arthas, and providing step‑by‑step commands and screenshots to help developers quickly visualize and troubleshoot Java applications.

ArthasJConsoleJVM
0 likes · 12 min read
Master JVM Performance: Visual Tools, JConsole, VisualVM & Arthas Guide
Lin is Dream
Lin is Dream
Jun 26, 2025 · Backend Development

Unveiling RocketMQ: How Messages Journey Through Storage, Delivery, and Expiration

This article systematically breaks down RocketMQ's core mechanisms—covering message roles, disk storage, push/pull delivery, expiration handling, retry queues, and cluster failover—so developers can understand every stage a message undergoes from creation to cleanup and ensure reliable, high‑performance messaging.

JavaMessage QueueMiddleware
0 likes · 13 min read
Unveiling RocketMQ: How Messages Journey Through Storage, Delivery, and Expiration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 26, 2025 · Backend Development

Avoid Common Spring Boot Mistakes and Write Cleaner Backend Code

This article highlights common pitfalls in Spring Boot development—such as exposing sensitive data, neglecting records, field injection, using RestTemplate, bloated controllers, and poor exception handling—and provides concise, code‑driven solutions to write cleaner, more secure, and maintainable backend applications.

DTOJavaWebClient
0 likes · 8 min read
Avoid Common Spring Boot Mistakes and Write Cleaner Backend Code
Java Web Project
Java Web Project
Jun 25, 2025 · Backend Development

How to Speed Up Nested Loops in Java: Break and Map Tricks

This article walks through a common Java scenario of matching two large lists with nested loops, measures the poor performance, then demonstrates two optimizations—adding a break statement and replacing the inner loop with a HashMap—to dramatically cut execution time.

AlgorithmHashMapJava
0 likes · 6 min read
How to Speed Up Nested Loops in Java: Break and Map Tricks
DeWu Technology
DeWu Technology
Jun 25, 2025 · Artificial Intelligence

Engineering Large Language Models with Spring AI: From Basics to RAG and Function Calls

This article walks through the fundamentals of large language models, their stateless and structured-output nature, explains how Spring‑AI provides a Java‑friendly API for model integration, covers RAG architecture, the MCP protocol, and demonstrates end‑to‑end code examples for building intelligent agents.

AI integrationFunction CallingJava
0 likes · 15 min read
Engineering Large Language Models with Spring AI: From Basics to RAG and Function Calls
macrozheng
macrozheng
Jun 25, 2025 · Backend Development

Master Retrofit in Spring Boot: Seamless HTTP Client Integration Tutorial

This article walks through integrating the Retrofit HTTP client into Spring Boot applications using the retrofit‑spring‑boot‑starter, covering dependency setup, basic request definitions, token handling, custom interceptors, global logging, timeout and retry configurations, and provides concise code examples for each step.

HTTP clientJavaRetrofit
0 likes · 11 min read
Master Retrofit in Spring Boot: Seamless HTTP Client Integration Tutorial
High Availability Architecture
High Availability Architecture
Jun 25, 2025 · Backend Development

How to Build a Java Method Call Stack Tracker for Faster Debugging

This article explains how to address common on‑call debugging pain points by analyzing error screenshots, extracting key information, and developing a lightweight Java tool that leverages StackTraceElement to generate a clear, filtered method‑call chain, dramatically speeding up code‑origin identification and issue resolution.

DebuggingJavaMethod Call Chain
0 likes · 12 min read
How to Build a Java Method Call Stack Tracker for Faster Debugging
Java Architecture Diary
Java Architecture Diary
Jun 25, 2025 · Artificial Intelligence

Build a Text‑to‑SQL Chatbot with Spring AI and DeepSeek LLM

This tutorial walks through creating a natural‑language‑to‑SQL chatbot using Spring AI, configuring a MySQL school database with Flyway, defining system prompts for a DeepSeek LLM, implementing service beans and a REST API, and interacting with the bot via curl commands.

DeepSeekJavaLLM
0 likes · 15 min read
Build a Text‑to‑SQL Chatbot with Spring AI and DeepSeek LLM
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
Selected Java Interview Questions
Selected Java Interview Questions
Jun 24, 2025 · Backend Development

Mastering Large File Uploads with Spring Boot: Chunked Upload Guide

This article explains why traditional file uploads fail for large files, outlines the advantages of chunked uploading, and provides a complete Spring Boot implementation—including backend controllers, high‑performance merging, Vue front‑end code, enterprise‑level optimizations, performance benchmarks, and best‑practice recommendations.

Chunked UploadJavaLarge Files
0 likes · 12 min read
Mastering Large File Uploads with Spring Boot: Chunked Upload Guide
Java Tech Enthusiast
Java Tech Enthusiast
Jun 24, 2025 · Backend Development

Ace Your Java Backend Interview: From Self‑Intro to Redis Strategies and Design Patterns

This guide walks you through the realities of joining state‑owned enterprises, offers practical tips for Java backend interview preparation—including self‑introduction, project presentation, database choices, Redis eviction policies, common design patterns, singleton usage, thread‑safety concepts, and commands to terminate Java processes on Linux, macOS, and Windows.

Design PatternsJavaLinux commands
0 likes · 16 min read
Ace Your Java Backend Interview: From Self‑Intro to Redis Strategies and Design Patterns
Lin is Dream
Lin is Dream
Jun 24, 2025 · Backend Development

Master RocketMQ Console: From Zero to Full Monitoring in Minutes

This article walks you through installing and using the RocketMQ Dashboard to monitor topics, brokers, producers, consumers, and message details, explains common pitfalls such as client‑ID conflicts in Docker, and demonstrates how to troubleshoot consumption issues, TPS metrics, and dead‑letter handling.

DashboardJavaMessage Queue
0 likes · 9 min read
Master RocketMQ Console: From Zero to Full Monitoring in Minutes
Architect's Guide
Architect's Guide
Jun 23, 2025 · Information Security

Discover Sa-Token: The Most Feature‑Rich Java Authentication Framework

Sa-Token is a lightweight Java permission authentication framework that offers zero‑configuration login, comprehensive permission checks, session management, single sign‑on, OAuth2.0 support, distributed sessions, token customization, and many advanced features, with simple one‑line API calls illustrated by clear code examples.

AuthenticationJavaPermission
0 likes · 7 min read
Discover Sa-Token: The Most Feature‑Rich Java Authentication Framework
Su San Talks Tech
Su San Talks Tech
Jun 23, 2025 · Backend Development

How to Build a Million‑QPS Short‑URL Service: Architecture & Code

This article walks through the challenges of handling millions of requests per second for a short‑URL service and presents a complete backend solution—including ID generation, Base62 encoding, cache‑layer design, Nginx redirect optimization, disaster‑recovery strategies, sharding, and performance test results—while providing Java code snippets and design principles for high‑throughput, resilient systems.

JavaSystem Architecturehigh-concurrency
0 likes · 11 min read
How to Build a Million‑QPS Short‑URL Service: Architecture & Code
Architect's Guide
Architect's Guide
Jun 22, 2025 · Backend Development

How to Build a Scalable Delayed Queue with Redis and Java

This article explains why traditional polling fails for large‑scale delayed tasks, compares built‑in Java, RocketMQ, and RabbitMQ delay queues, and provides a detailed Redis‑based design with architecture diagrams, message structures, and a 2.0 version that uses real‑time locking for low‑latency delivery.

Delayed QueueJavaRedis
0 likes · 8 min read
How to Build a Scalable Delayed Queue with Redis and Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 21, 2025 · Artificial Intelligence

Master AI Agent Workflows with Spring Boot 3: From Chains to Orchestrators

This article introduces the fundamentals of augmented large language model agents, explains six workflow patterns—including chain, parallel, routing, orchestrator‑workers, evaluator‑optimizer, and autonomous agents—and provides complete Spring Boot 3 code examples, configuration, and test results for each pattern.

JavaLLMSpring Boot
0 likes · 15 min read
Master AI Agent Workflows with Spring Boot 3: From Chains to Orchestrators
Su San Talks Tech
Su San Talks Tech
Jun 21, 2025 · Backend Development

How to Pick the Right Rule Engine: 5 Popular Choices Compared

This article examines the conflict between rapidly changing business rules and system stability, introduces rule engines as a solution, compares five widely used Java rule engines—including Drools, Easy Rules, QLExpress, Aviator, and LiteFlow—by their scenarios, advantages, disadvantages, performance, and provides practical guidance for selecting and avoiding common pitfalls.

AviatorDroolsEasy Rules
0 likes · 12 min read
How to Pick the Right Rule Engine: 5 Popular Choices Compared
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.

AuthenticationJWTJava
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
macrozheng
macrozheng
Jun 20, 2025 · Backend Development

Why UUIDv7 Outperforms Traditional UUIDs for Database Primary Keys

This article explains the drawbacks of traditional random UUIDs as database primary keys, introduces the time‑ordered UUIDv7 design, shows how its ordered structure improves index performance and storage efficiency, provides Java generation and SQL usage examples, and answers common questions about collisions and clock rollback.

DatabaseJavaprimary key
0 likes · 9 min read
Why UUIDv7 Outperforms Traditional UUIDs for Database Primary Keys
JD Tech Talk
JD Tech Talk
Jun 20, 2025 · Operations

Mastering SNMP: A Complete Guide to Network Monitoring and Automation

This comprehensive tutorial explains the fundamentals of SNMP, its architecture, versions, message types, MIB structure, and practical usage—including command‑line tools and Java code examples—to help network administrators efficiently monitor and manage devices.

CLIJavaMIB
0 likes · 15 min read
Mastering SNMP: A Complete Guide to Network Monitoring and Automation
Lin is Dream
Lin is Dream
Jun 20, 2025 · Backend Development

Unlocking RocketMQ: What Every SendResult Field Means

This article explains the composition of RocketMQ's SendResult object returned after a successful synchronous send, detailing each field such as sendStatus, msgId, offsetMsgId, messageQueue, and queueOffset, and provides practical examples and a full field‑by‑field breakdown for Java developers.

JavaMessage QueueRocketMQ
0 likes · 6 min read
Unlocking RocketMQ: What Every SendResult Field Means
Java Architecture Diary
Java Architecture Diary
Jun 20, 2025 · Backend Development

What’s New in Spring Boot 3.5.3? Key Fixes, Features, and Upgrade Guide

Spring Boot 3.5.3, the first patch of the 3.5 series, introduces critical fixes for a severe issue in 3.5.1, upgrades Tomcat to 10.1.42 with multipart limits, adds ConfigData options support, resolves numerous performance, configuration, actuator, and binding bugs, improves documentation, and updates a wide range of core, database, server, and monitoring dependencies, making the upgrade strongly recommended.

JavaSpring BootTomcat
0 likes · 8 min read
What’s New in Spring Boot 3.5.3? Key Fixes, Features, and Upgrade Guide
Code Ape Tech Column
Code Ape Tech Column
Jun 19, 2025 · Fundamentals

Master the Chain of Responsibility Pattern: Concepts, Benefits, and Java Example

This article explains the Chain of Responsibility design pattern, detailing its definition, key characteristics, integration with the Strategy pattern, and practical Java code examples—including abstract interfaces, handlers, context management, and execution flow—illustrating how to build flexible, decoupled processing pipelines for complex business logic.

Chain of ResponsibilityDesign PatternJava
0 likes · 11 min read
Master the Chain of Responsibility Pattern: Concepts, Benefits, and Java Example
Lin is Dream
Lin is Dream
Jun 19, 2025 · Backend Development

Master RocketMQ with Spring Boot: Complete Guide to Messaging APIs

This tutorial walks through integrating Alibaba's RocketMQ into a Spring Boot application, covering Maven dependencies, producer and consumer configurations, and detailed examples of synchronous, asynchronous, one‑way, delayed, ordered, transactional, request‑response, batch, and pull messaging APIs, along with best‑practice recommendations.

JavaMessage QueueMessaging API
0 likes · 21 min read
Master RocketMQ with Spring Boot: Complete Guide to Messaging APIs
Architect's Must-Have
Architect's Must-Have
Jun 18, 2025 · Backend Development

How to Dynamically Load External JARs into Spring Boot at Runtime

This guide explains step‑by‑step how to load external JAR files into the JVM, configure Spring Boot to recognize them, and choose among four practical solutions—including classpath expansion, Spring Boot loader.path, custom class loaders, and JVM boot classpath tweaks—while highlighting their pros, cons, and required Maven settings.

Class LoadingCustom ClassLoaderJVM
0 likes · 10 min read
How to Dynamically Load External JARs into Spring Boot at Runtime
vivo Internet Technology
vivo Internet Technology
Jun 18, 2025 · Backend Development

Cutting Spring Boot Startup Time by 50%: From 280 s to 159 s

This article systematically analyzes a Spring Boot project's 280‑second startup, identifies bottlenecks such as bean initialization and sharding data source loading, and applies listener‑based timing, bean‑post‑processor profiling, and asynchronous initialization to reduce launch time to 159 seconds, improving developer efficiency.

JavaPerformanceSpring Boot
0 likes · 13 min read
Cutting Spring Boot Startup Time by 50%: From 280 s to 159 s
JD Tech
JD Tech
Jun 18, 2025 · Backend Development

How to Instantly Spot Problematic SQL with a MyBatis Coloring Interceptor

This article explains how to implement a lightweight MyBatis interceptor that annotates SQL statements with their mapper ID and execution stack, enabling developers to quickly locate performance bottlenecks during high‑traffic events, and also shows an AspectJ alternative for non‑MyBatis projects.

DebuggingInterceptorJava
0 likes · 30 min read
How to Instantly Spot Problematic SQL with a MyBatis Coloring Interceptor
Top Architect
Top Architect
Jun 18, 2025 · Backend Development

Unlock Spring Boot’s Hidden Power: Master Built‑in Features for Faster Development

This article explores Spring Boot’s powerful built‑in utilities—including request logging, content caching, once‑per‑request filters, AOP helpers, starter auto‑configuration, flexible property binding, asynchronous execution, Actuator monitoring, and SpEL expressions—showing how they streamline development, improve maintainability, and boost production‑grade reliability.

AOPBackend DevelopmentConfiguration
0 likes · 15 min read
Unlock Spring Boot’s Hidden Power: Master Built‑in Features for Faster Development
DaTaobao Tech
DaTaobao Tech
Jun 18, 2025 · Backend Development

How to Eliminate GC Pauses in High‑QPS Java Services: A Step‑by‑Step JVM Tuning Guide

This article investigates a high‑concurrency Java service that suffers from long GC pauses during large index swaps, identifies YGC Object Copy as the root cause, and presents a series of JVM tuning techniques—including MaxTenuringThreshold, InitialTenuringThreshold, AlwaysTenure, G1HeapRegionSize, ZGC, and an Eden‑preheat strategy—to achieve near‑zero service disruption and 99.995% success rate.

GC TuningJVMJava
0 likes · 20 min read
How to Eliminate GC Pauses in High‑QPS Java Services: A Step‑by‑Step JVM Tuning Guide
Cognitive Technology Team
Cognitive Technology Team
Jun 18, 2025 · Backend Development

How Spring Boot’s Fat Jar Enables One‑Click Java Deployment

Spring Boot’s Fat Jar packages all application code, dependencies, and an embedded server into a single executable JAR, breaking the parent‑delegation model with a custom class loader and protocol handler, enabling simple ‘java -jar’ execution, streamlined deployment, and benefits for microservices and Docker layering.

Class LoaderFat JarJava
0 likes · 10 min read
How Spring Boot’s Fat Jar Enables One‑Click Java Deployment
macrozheng
macrozheng
Jun 18, 2025 · Fundamentals

Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow

This article explains the State (State Machine) pattern, its typical scenarios, core roles, and provides complete Java implementations—including a user login example and a Spring StateMachine‑driven order processing workflow—while comparing it with related patterns and outlining its pros and cons.

Design PatternsJavaSoftware Architecture
0 likes · 15 min read
Mastering the State Pattern: Theory, Java Examples, and Real‑World Order Workflow
macrozheng
macrozheng
Jun 18, 2025 · Backend Development

Mastering TinyID: A High‑Performance Distributed ID System for Java Backend

This article introduces TinyID, a distributed ID service originally developed by Didi, explains its features, segment‑based architecture, database schema, HTTP and client APIs, configuration steps, and provides practical code examples for integrating the system into Java backend applications.

JavaTinyidbackend
0 likes · 11 min read
Mastering TinyID: A High‑Performance Distributed ID System for Java Backend
Java Architecture Diary
Java Architecture Diary
Jun 18, 2025 · Backend Development

What’s New in Java 24? 8 Game‑Changing Features You Must Try

Java 24 arrives with a suite of groundbreaking enhancements—including a simplified Hello World syntax, primitive type pattern matching, flexible constructor bodies, ScopedValue API, module import declarations, structured concurrency, AOT class loading, and the removal of 32‑bit Windows support—each detailed with code examples and JEP references.

JEPJavajdk24
0 likes · 12 min read
What’s New in Java 24? 8 Game‑Changing Features You Must Try
Java Architect Essentials
Java Architect Essentials
Jun 17, 2025 · Backend Development

Transforming Task Systems: Configurable Completion Rules with QLExpress

This article explains how to redesign a company's activity middle‑platform task system by standardizing message formats, introducing a rule engine (QLExpress) for configurable task completion conditions, and enabling dynamic backend configuration, dramatically reducing integration time from weeks to minutes.

ConfigurationJavaRocketMQ
0 likes · 11 min read
Transforming Task Systems: Configurable Completion Rules with QLExpress
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Jun 17, 2025 · Backend Development

How to Run Multiple SpringBoot Microservices on a Single Tomcat with Minimal Resources

This guide explains how to adapt a distributed micro‑service architecture to run all SpringBoot services inside one external Tomcat instance by changing packaging to WAR, configuring server.xml, setting memory options, adjusting virtual addresses, handling logs, and registering services with Nacos for low‑memory environments.

JavaNacosSpringBoot
0 likes · 17 min read
How to Run Multiple SpringBoot Microservices on a Single Tomcat with Minimal Resources
Java Captain
Java Captain
Jun 17, 2025 · Backend Development

Mastering Client‑Side Load Balancing with Spring Cloud Ribbon

This article explains how Spring Cloud Ribbon provides client‑side load balancing, outlines its classification, core mechanisms, common algorithms, and shows step‑by‑step code to replace the default balancing rule in a Spring Boot microservice.

JavaMicroservicesRibbon
0 likes · 5 min read
Mastering Client‑Side Load Balancing with Spring Cloud Ribbon
FunTester
FunTester
Jun 17, 2025 · Backend Development

How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies

This article explains why using Thread.sleep() in Java ExecutorService unit tests is unreliable and inefficient, and introduces three robust alternatives—Future.get(), CountDownLatch, and shutdown/awaitTermination—to achieve stable and performant testing of asynchronous code.

CountDownLatchFutureJava
0 likes · 13 min read
How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies
Java Captain
Java Captain
Jun 16, 2025 · Backend Development

Master MyBatis-Plus with Spring Boot: CRUD, Pagination & Multi-DataSource Guide

A comprehensive step‑by‑step tutorial shows how to integrate MyBatis‑Plus into a Spring Boot project, covering dependencies, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum handling, automatic field filling, multi‑datasource support, and testing.

CRUDJavaMulti-DataSource
0 likes · 13 min read
Master MyBatis-Plus with Spring Boot: CRUD, Pagination & Multi-DataSource Guide
Java Tech Enthusiast
Java Tech Enthusiast
Jun 16, 2025 · Fundamentals

Why Java Is Turning 30: The Surprising History of a Programming Giant

The article recounts Java’s three‑decade journey—from its original name Oak and trademark‑driven rename, through its birth in Sun’s Green Project, to its core “write once, run anywhere” philosophy—highlighting its enduring dominance despite criticism and the legacy of its creator James Gosling.

James GoslingJavaProgramming Language History
0 likes · 5 min read
Why Java Is Turning 30: The Surprising History of a Programming Giant
macrozheng
macrozheng
Jun 16, 2025 · Backend Development

Hot‑Deploying User‑Defined Interfaces in Spring Boot: Reflection vs Annotation

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (annotation‑managed and reflection‑based), and achieve hot deployment of user‑supplied JARs in a Spring Boot application, including loading, registering, and removing beans dynamically.

Hot DeploymentJavaSpring Boot
0 likes · 9 min read
Hot‑Deploying User‑Defined Interfaces in Spring Boot: Reflection vs Annotation
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
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Jun 16, 2025 · Backend Development

How RocketMQ Guarantees No Message Loss, Duplication, or Disorder

This article explains RocketMQ’s architecture, the roles of NameServer, Broker, Producer, Consumer, and how each component ensures reliable message delivery—covering synchronous, asynchronous, and one‑way sending, storage mechanisms, consumer retries, dead‑letter queues, installation steps, and Java client integration with code examples.

InstallationJavaMessage Queue
0 likes · 20 min read
How RocketMQ Guarantees No Message Loss, Duplication, or Disorder
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jun 16, 2025 · Backend Development

Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples

ZooKeeper is an open‑source distributed coordination service that provides a simple, efficient mechanism for managing shared state, and this guide explores seven typical scenarios—including distributed locks, service registration, configuration management, queues, leader election, notifications, and barriers—complete with Java code examples and usage details.

Distributed CoordinationJavaLeader Election
0 likes · 9 min read
Mastering ZooKeeper: 7 Real-World Use Cases and Code Samples
Architect's Guide
Architect's Guide
Jun 15, 2025 · Backend Development

Mastering Read‑Write Splitting in Spring Boot: A Complete Guide

This article explains how to implement database read‑write separation in a Spring Boot application by configuring master and slave data sources, creating a routing datasource, managing thread‑local context, and using an AOP‑based annotation to switch between read and write operations.

AOPDataSource RoutingDatabase
0 likes · 10 min read
Mastering Read‑Write Splitting in Spring Boot: A Complete Guide
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jun 15, 2025 · Backend Development

Understanding Zookeeper’s One‑Time Watch and Persistent Listener Techniques

This article explains why Zookeeper's watch mechanism triggers only once, outlines the performance, reliability, and design reasons behind it, describes its asynchronous eventual consistency, and provides Java code examples for basic watches, manual re‑registration, and using the Curator framework for persistent listeners.

CuratorJavaOne-time Trigger
0 likes · 7 min read
Understanding Zookeeper’s One‑Time Watch and Persistent Listener Techniques
Java Tech Enthusiast
Java Tech Enthusiast
Jun 14, 2025 · Backend Development

Java vs Go: Which Language Should You Learn for a Successful Backend Career?

This article compares Java and Go across language features, market demand, ecosystem support, learning difficulty, and future trends, ultimately advising beginners and job‑seekers to prioritize Java for broader opportunities while acknowledging Go’s niche advantages in cloud‑native and blockchain projects.

Backend DevelopmentGoJava
0 likes · 11 min read
Java vs Go: Which Language Should You Learn for a Successful Backend Career?
Java Architect Essentials
Java Architect Essentials
Jun 14, 2025 · Backend Development

Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It

This article explains why MyBatis's default StdOutImpl logging, which relies on System.out.println, blocks threads and creates severe concurrency bottlenecks, and demonstrates how to replace it with asynchronous logging implementations like Slf4jImpl, configure log levels, and even create custom Log classes for optimal performance.

ConcurrencyJavaLogging
0 likes · 8 min read
Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It
Architect
Architect
Jun 13, 2025 · Fundamentals

Mastering the State Pattern: Real‑World Java Examples and Spring State Machine

This article explains the State (State Machine) pattern, its typical scenarios such as order processing and elevator control, presents a complete Java implementation with abstract, concrete, and context classes, demonstrates how to model order workflows using Spring State Machine, compares related patterns, and discusses the pattern’s advantages and drawbacks.

JavaSpring State MachineState Pattern
0 likes · 14 min read
Mastering the State Pattern: Real‑World Java Examples and Spring State Machine
macrozheng
macrozheng
Jun 13, 2025 · Backend Development

Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It

This article explains a puzzling Spring Boot transaction rollback caused by MyBatis-Plus's saveBatch method, reproduces the error with nested @Transactional calls, analyzes why the rollback flag is set, and offers a practical workaround by replacing the framework batch operation with a custom mapper implementation.

JavaSpringBootbackend
0 likes · 6 min read
Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It
Lin is Dream
Lin is Dream
Jun 13, 2025 · Backend Development

How to Seamlessly Integrate SFTP Upload/Download in Spring Boot

This guide walks you through adding SFTP capabilities to a Spring Boot application, covering Maven dependencies, configuration properties, a reusable SFTP helper class, service and controller layers for file transfer, optional ZIP compression, and practical tips like retries, multithreading, and scheduling.

FileUploadJSchJava
0 likes · 9 min read
How to Seamlessly Integrate SFTP Upload/Download in Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 13, 2025 · Backend Development

Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol

This guide shows how to integrate Spring Boot with the Model Context Protocol (MCP) to let large language models interact with existing services via natural language, covering entity definitions, Maven dependencies, configuration, tool annotations, and testing to create an AI‑enabled book management API.

AI integrationJavaMCP
0 likes · 18 min read
Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol
Programmer1970
Programmer1970
Jun 12, 2025 · Backend Development

Understanding Spring's Transaction Management: PlatformTransactionManager and TransactionSynchronizationManager

The article explains how Spring's PlatformTransactionManager and TransactionSynchronizationManager work together to provide both declarative and programmatic transaction management, detailing their core responsibilities, lifecycle handling, synchronization callbacks, practical use cases, and common troubleshooting steps.

JavaPlatformTransactionManagerSpring
0 likes · 8 min read
Understanding Spring's Transaction Management: PlatformTransactionManager and TransactionSynchronizationManager
Java Captain
Java Captain
Jun 12, 2025 · Backend Development

How to Securely Encrypt Nacos Config Passwords in Spring Cloud Applications

Learn how to replace plain‑text passwords in Spring Cloud’s Nacos configuration with encrypted values by extending NacosConfigProperties, overriding its initialization, and registering a custom bootstrap auto‑configuration, ensuring your application complies with corporate security policies.

Backend DevelopmentJavaNacos
0 likes · 5 min read
How to Securely Encrypt Nacos Config Passwords in Spring Cloud Applications
Architect's Guide
Architect's Guide
Jun 12, 2025 · Backend Development

How to Build QR Code Login with WebSocket in Spring Boot

This tutorial walks through designing a QR‑code login flow, defining a token table, outlining client and server roles, implementing two REST endpoints, configuring Spring Boot WebSocket support, and handling real‑time login notifications with Java and JavaScript code examples.

JavaJavaScriptQR Code Login
0 likes · 13 min read
How to Build QR Code Login with WebSocket in Spring Boot
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.

AuthenticationCASJava
0 likes · 15 min read
How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java
Java Architect Essentials
Java Architect Essentials
Jun 12, 2025 · Backend Development

Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide

Concept Plugin 2 introduces a lightweight, annotation‑driven plug‑in system for Spring Boot that separates core business logic from device integration code, enabling independent testing, dynamic loading, and easy configuration through a management UI, while supporting various injection patterns, nested dependencies, and Spring features.

JavaModular DesignSpring Boot
0 likes · 10 min read
Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide
Continuous Delivery 2.0
Continuous Delivery 2.0
Jun 12, 2025 · Backend Development

Why Over‑Engineering and Bad Code Kill Your Project—and How to Fix It

This article reveals how common bad coding practices such as over‑engineering, hidden business logic in utility classes, deep inheritance trees, excessive DTO layers, unnecessary interfaces, and contract‑less microservices degrade team efficiency and project quality, and offers concrete, principle‑driven remedies.

Backend DevelopmentJavaanti-patterns
0 likes · 8 min read
Why Over‑Engineering and Bad Code Kill Your Project—and How to Fix It
Programmer1970
Programmer1970
Jun 11, 2025 · Backend Development

A Comprehensive Overview of Spring Framework’s Transaction Management

This article dissects Spring's transaction management system, detailing its layered architecture, core interfaces such as PlatformTransactionManager, TransactionDefinition and TransactionSynchronization, the lifecycle of transaction start, commit and rollback, programmatic and declarative usage, advanced features like distributed and nested transactions, common pitfalls, and optimization recommendations.

AOPJTAJava
0 likes · 13 min read
A Comprehensive Overview of Spring Framework’s Transaction Management
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 11, 2025 · Backend Development

Transform JSON Seamlessly with Jolt: From Hard‑Coded Logic to Configurable Rules

This article introduces Jolt, an open‑source Java library for JSON‑to‑JSON transformation, explains its advantages over traditional hard‑coded conversion, demonstrates core operations and custom extensions with code examples, shows how to integrate it into Spring Boot, and outlines future plans for a visual drag‑and‑drop configuration tool.

Data MappingJSON transformationJava
0 likes · 17 min read
Transform JSON Seamlessly with Jolt: From Hard‑Coded Logic to Configurable Rules
Selected Java Interview Questions
Selected Java Interview Questions
Jun 11, 2025 · Backend Development

Master Java Enums: Eliminate if/else and Boost Code Quality

This article revisits Java's enum type, explaining its definition, constructors, methods, and practical uses such as replacing if/else logic, implementing interfaces, enhancing type safety, and applying enums in switch statements and singleton patterns, complete with code examples and best‑practice tips.

Design PatternsEnumJava
0 likes · 9 min read
Master Java Enums: Eliminate if/else and Boost Code Quality
Top Architect
Top Architect
Jun 11, 2025 · Backend Development

How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution

The author shares a personal journey from early backend work to full‑stack responsibilities, critiques heavyweight admin frameworks, and explains how they rebuilt a lightweight enterprise admin using MyBatisPlus, Lombok, and streamlined architecture, while outlining future enhancements such as email, payment, multi‑tenant, and distributed scheduling.

JavaLombokMybatisPlus
0 likes · 9 min read
How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution
Lin is Dream
Lin is Dream
Jun 11, 2025 · Information Security

Why SFTP Beats FTP: Secure File Transfer for Java Projects

Learn why SFTP, built on SSH, offers encrypted, authenticated file transfers unlike plain FTP, and how Java developers can securely integrate SFTP using libraries like JSch, with practical comparisons, usage scenarios, and a visual illustration of protocol differences.

JavaSFTPSSH
0 likes · 7 min read
Why SFTP Beats FTP: Secure File Transfer for Java Projects
Java Captain
Java Captain
Jun 10, 2025 · Backend Development

Why Spring Batch? Real‑World Scenarios, Core Architecture and Hands‑On Guide

This article explains the necessity of batch processing, presents typical use cases such as daily interest calculation, e‑commerce order archiving, log analysis and medical data migration, then dives deep into Spring Batch's core components, provides step‑by‑step code examples, performance‑tuning tips, production‑grade fault‑tolerance, monitoring solutions and a comprehensive FAQ.

Batch ProcessingData IntegrationJava
0 likes · 20 min read
Why Spring Batch? Real‑World Scenarios, Core Architecture and Hands‑On Guide
Java Captain
Java Captain
Jun 10, 2025 · Fundamentals

Understanding Java Monitors: How Thread Synchronization Works

Java monitors provide a mechanism for thread synchronization by associating each object with a monitor lock, comprising an entry list, owner thread, and wait set, and the article explains their structure, thread state transitions, and demonstrates usage with a practical code example.

ConcurrencyJavaThread Synchronization
0 likes · 6 min read
Understanding Java Monitors: How Thread Synchronization Works
IT Services Circle
IT Services Circle
Jun 10, 2025 · Backend Development

Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies

The article shares a personal experience of TP-Link's early campus recruitment and salary expectations, then provides a comprehensive Java backend interview guide covering class‑loader delegation, JVM memory layout, garbage‑collector types, synchronized lock mechanics, and common Redis cache pitfalls with practical solutions.

Garbage CollectionJVMJava
0 likes · 18 min read
Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies
macrozheng
macrozheng
Jun 10, 2025 · Backend Development

Simplify Java Stream Processing with JDFrame: A Semantic DataFrame API

This article introduces JDFrame/SDFrame, a JVM‑level DataFrame‑style library that provides semantic, chainable APIs for Java 8 streams, covering quick start, dependency setup, example use cases, and detailed API categories such as matrix view, filtering, aggregation, distinct, grouping, sorting, joining, slicing, parameter settings, percentage conversion, partitioning, row‑number generation, and data replenishment, all illustrated with concise code snippets.

DataFrameJDFrameJava
0 likes · 16 min read
Simplify Java Stream Processing with JDFrame: A Semantic DataFrame API
Code Ape Tech Column
Code Ape Tech Column
Jun 10, 2025 · Information Security

Securing OpenAPI Interfaces with AppId, AppSecret, and RSA Signatures

This article explains how to standardize and protect OpenAPI interfaces by using globally unique AppId/AppSecret pairs, generating RSA‑based signatures, implementing timestamp and nonce checks, and applying common security measures such as rate limiting, whitelist/blacklist controls, and sensitive data handling, all illustrated with complete Java code examples.

API securityAppIdAppSecret
0 likes · 28 min read
Securing OpenAPI Interfaces with AppId, AppSecret, and RSA Signatures
JD Tech Talk
JD Tech Talk
Jun 10, 2025 · Backend Development

Instantly Spot Problematic SQL with MyBatis Interceptor Coloring

This article explains how to use SQL coloring in MyBatis by implementing a lightweight interceptor or an AspectJ weave to annotate each SELECT statement with its mapper ID and execution stack, enabling rapid identification of performance bottlenecks during high‑traffic events.

AspectJDatabase MonitoringJava
0 likes · 29 min read
Instantly Spot Problematic SQL with MyBatis Interceptor Coloring
JD Cloud Developers
JD Cloud Developers
Jun 10, 2025 · Backend Development

How to Instantly Spot Problematic SQL with MyBatis Interceptor Coloring

This article introduces a lightweight SQL‑coloring technique for MyBatis that annotates each executed query with its mapper ID and call‑stack, enabling developers to pinpoint performance bottlenecks instantly without hunting through multiple code paths, and provides both MyBatis interceptor and AspectJ weaving implementations.

AspectJInterceptorJava
0 likes · 30 min read
How to Instantly Spot Problematic SQL with MyBatis Interceptor Coloring
Programmer XiaoFu
Programmer XiaoFu
Jun 10, 2025 · Backend Development

Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition

This tutorial shows how to add OCR capabilities to a SpringBoot application using the Tess4j library, covering dependency setup, Tesseract engine initialization, RESTful endpoint implementation, training data choices, and practical tips for handling resources and deployment.

JavaOCRSpringBoot
0 likes · 7 min read
Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 10, 2025 · Backend Development

Master Spring Data JPA: 131 Real‑World Spring Boot 3 Cases & Best Practices

This article presents a comprehensive guide to Spring Data JPA in Spring Boot 3, covering 131 practical cases, core repository interfaces, Specification and Criteria Builder techniques, and dozens of performance‑optimizing tips such as lazy loading, caching, batch processing, transaction management, projections, and stream queries.

Backend DevelopmentJavaJpaRepository
0 likes · 15 min read
Master Spring Data JPA: 131 Real‑World Spring Boot 3 Cases & Best Practices
Top Architect
Top Architect
Jun 9, 2025 · Backend Development

Mastering Liteflow: A Lightweight Rule Engine for Java Backend Development

This article introduces Liteflow, a lightweight yet powerful Java rule engine, explains its architecture, shows how to integrate it with Spring Boot, details its component types and EL rule syntax, and demonstrates a real‑world e‑commerce workflow using XML rule files.

Backend DevelopmentJavaLiteFlow
0 likes · 13 min read
Mastering Liteflow: A Lightweight Rule Engine for Java Backend Development
Architecture Digest
Architecture Digest
Jun 9, 2025 · Backend Development

How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware

This article introduces FolkMQ, a pure Chinese message middleware, explains its lightweight 7 MB embedded version with a web console, and provides step‑by‑step integration instructions, configuration files, code samples, testing procedures, and a link to a complete SpringBoot example.

Embedded MiddlewareFolkMQJava
0 likes · 6 min read
How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware
Java Tech Enthusiast
Java Tech Enthusiast
Jun 9, 2025 · Backend Development

Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT

This article presents a production‑tested, six‑step solution for automatically handling common entity fields such as createTime, updateTime, createUser, and updateUser in Java backend systems, covering MyBatis‑Plus auto‑fill, AOP interception, multi‑data‑source adaptation, distributed ID generation, pitfalls avoidance, performance tuning, and audit logging.

AOPBackend DevelopmentJava
0 likes · 9 min read
Eliminate Repetitive Audit Fields in Java: 6 Proven Strategies with MyBatis‑Plus, AOP, and JWT