Tagged articles

Java

5000 articles · Page 21 of 50
Top Architect
Top Architect
Aug 26, 2025 · Backend Development

Master Liteflow: A Lightweight Rule Engine for Complex Business Flows

This article introduces the Liteflow rule engine, explains its architecture, component types, EL rule syntax, data context handling, Spring Boot configuration, and demonstrates a real‑world e‑commerce order processing scenario with code examples and diagrams.

JavaLiteFlowSpring Boot
0 likes · 13 min read
Master Liteflow: A Lightweight Rule Engine for Complex Business Flows
Code Ape Tech Column
Code Ape Tech Column
Aug 26, 2025 · Backend Development

Boost Your Maven Project Setup: One-Click Multi-Module Generation Plugin

This article introduces a custom IntelliJ IDEA plugin that automates the creation of Maven multi‑module projects, allowing developers to generate full directory structures, pom dependencies, and configuration files with a single command, dramatically reducing setup time from minutes to seconds.

IntelliJ IDEAJavaMaven
0 likes · 10 min read
Boost Your Maven Project Setup: One-Click Multi-Module Generation Plugin
Architect's Tech Stack
Architect's Tech Stack
Aug 26, 2025 · Backend Development

10 Proven Ways to Speed Up Spring Boot Startup Time

This article presents ten practical techniques—including lazy loading, lazy database initialization, selective auto‑configuration, log level tuning, JVM flags, dependency trimming, bean optimization, JIT tweaks, classpath scanning reduction, and DevTools restart—to dramatically reduce Spring Boot application startup time.

JavaPerformanceSpring Boot
0 likes · 6 min read
10 Proven Ways to Speed Up Spring Boot Startup Time
Java Web Project
Java Web Project
Aug 26, 2025 · Backend Development

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

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

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

Boost Your Spring Boot Apps with a Reusable MyBatisPlus Controller Layer

This article walks through creating a reusable MyBatisPlus‑based controller framework for Spring Boot, covering dependency setup, utility methods for query building and reflection, a generic BaseController with full CRUD endpoints, pagination configuration, and concrete controller extensions, enabling rapid development of RESTful APIs.

CRUDControllerJava
0 likes · 9 min read
Boost Your Spring Boot Apps with a Reusable MyBatisPlus Controller Layer
IT Services Circle
IT Services Circle
Aug 25, 2025 · Fundamentals

How to Efficiently Compress Strings in Java: Interview‑Ready Solution

The article critiques absurd interview questions, then presents a practical Java solution for compressing strings by replacing consecutive characters with their counts, explains the algorithm’s O(n) time and O(1) extra space, discusses edge cases like multi‑digit counts and Unicode handling, and offers implementation tips.

AlgorithmInterview QuestionJava
0 likes · 6 min read
How to Efficiently Compress Strings in Java: Interview‑Ready Solution
macrozheng
macrozheng
Aug 25, 2025 · Backend Development

How to Refactor Spring Boot Controllers for Clean, Consistent Responses

This article explains why controllers are essential yet often over‑engineered, identifies common problems such as tangled validation and inconsistent responses, and demonstrates how to unify return structures, handle String conversion, apply JSR‑303 validation, create custom validators, and centralize exception handling using Spring Boot features.

ControllerJavaResponseBodyAdvice
0 likes · 19 min read
How to Refactor Spring Boot Controllers for Clean, Consistent Responses
Lin is Dream
Lin is Dream
Aug 25, 2025 · Backend Development

How to Build a Mini‑Netty Pipeline that Decouples Decoding from Business Logic

This article explains how to redesign a Java NIO server by introducing a Netty‑style pipeline that separates decoding, logging, authentication, and business handling into independent handlers, improving extensibility, maintainability, and performance while providing complete sample code and initialization steps.

Design PatternsJavaNetty
0 likes · 15 min read
How to Build a Mini‑Netty Pipeline that Decouples Decoding from Business Logic
Java Architect Essentials
Java Architect Essentials
Aug 24, 2025 · Information Security

How Java Serialization Leaks Passwords—and the Simple Fix with transient

This article explains how Java’s native serialization can expose plain‑text passwords, illustrates real‑world breaches, and shows how using the transient keyword together with encryption, library replacement, security frameworks, and penetration testing creates a five‑layer defense against serialization attacks.

JavaVulnerabilitymitigation
0 likes · 6 min read
How Java Serialization Leaks Passwords—and the Simple Fix with transient
Ubiquitous Tech
Ubiquitous Tech
Aug 24, 2025 · Backend Development

Java Interview Deep Dive: Solving Real‑World Invoice System Challenges

The article walks through a simulated five‑round Java interview where the candidate designs a high‑concurrency invoice‑issuing service, covering gateway architecture, async Kafka processing, cache strategies, JVM thread‑pool and memory tuning, database‑cache coordination, microservice messaging, system design, performance optimization and AI integration, all illustrated with concrete numbers and code snippets.

JVMJavaKafka
0 likes · 35 min read
Java Interview Deep Dive: Solving Real‑World Invoice System Challenges
Architect
Architect
Aug 24, 2025 · Backend Development

Avoid Hidden SpringBoot Pitfalls: Optimize Default Settings for Production

This article examines common default configuration issues in SpringBoot—such as Tomcat connection limits, HikariCP pool size, JPA lazy loading, Jackson timezone handling, logging, caching, file upload limits, async execution, and transaction timeouts—and provides practical adjustments to improve performance and reliability in production environments.

JavaPerformance TuningSpringBoot
0 likes · 13 min read
Avoid Hidden SpringBoot Pitfalls: Optimize Default Settings for Production
Architect's Tech Stack
Architect's Tech Stack
Aug 24, 2025 · Backend Development

Why MyBatis-Flex Beats MyBatis-Plus: Features, Performance & More

MyBatis-Flex is a lightweight, high‑performance MyBatis enhancement offering zero third‑party dependencies, flexible QueryWrapper support, superior CRUD speed, advanced relational mappings, built‑in data masking, caching, multi‑datasource handling, and customizable SQL auditing, making it a compelling alternative to MyBatis‑Plus for modern Java backend development.

DataMaskingJavaMyBatis-Flex
0 likes · 19 min read
Why MyBatis-Flex Beats MyBatis-Plus: Features, Performance & More
Architect's Guide
Architect's Guide
Aug 24, 2025 · Information Security

Master Session Management and SSO: From Cookies to CAS with Java Code

This article explains traditional session mechanisms, the challenges of session handling in clustered environments, explores session sharing strategies, introduces single sign‑on concepts, compares CAS and OAuth2, and provides complete Java code examples for implementing SSO with Redis.

CASJavaSession management
0 likes · 14 min read
Master Session Management and SSO: From Cookies to CAS with Java Code
IT Services Circle
IT Services Circle
Aug 23, 2025 · Fundamentals

Master Core Tech: DNS, TCP, Java, MySQL & SpringBoot Interview Essentials

This article combines a look at big‑tech work intensity with a comprehensive interview guide covering website request flow, DNS resolution, HTTP status codes, TCP four‑way handshake, Java abstract classes vs interfaces, HashMap vs ConcurrentHashMap, HashSet internals, MySQL functions, and SpringBoot startup steps.

JavaSpringBoot
0 likes · 19 min read
Master Core Tech: DNS, TCP, Java, MySQL & SpringBoot Interview Essentials
Architect's Guide
Architect's Guide
Aug 23, 2025 · Backend Development

Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks

This article explains why duplicate code harms maintainability and demonstrates three practical techniques—factory/template method patterns, annotation‑driven reflection, and bean‑mapping utilities—to refactor Java backend services and dramatically reduce redundant implementations.

Code RefactoringDesign PatternsJava
0 likes · 23 min read
Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks
Java One
Java One
Aug 23, 2025 · Backend Development

Master Spring Boot Starters, Parent, and DevTools for Faster Backend Development

This guide explains how Spring Boot starters simplify dependency management, how the Spring Boot starter parent centralizes version control, and how to use the built‑in Maven plugin and DevTools for automatic restarts, including step‑by‑step Maven and IntelliJ configurations with code examples.

DevToolsJavaMaven
0 likes · 7 min read
Master Spring Boot Starters, Parent, and DevTools for Faster Backend Development
Cognitive Technology Team
Cognitive Technology Team
Aug 22, 2025 · Backend Development

Unlock MyBatis-Plus: From Zero-Code CRUD to Advanced Plugins

This article introduces MyBatis-Plus as a zero‑intrusion enhancement to MyBatis, explains its core values of convenience, safety, and compatibility, details CRUD methods, condition builders, plugin mechanisms, and best‑practice guidelines for building efficient, secure backend services.

CRUDJavaLambda Query
0 likes · 15 min read
Unlock MyBatis-Plus: From Zero-Code CRUD to Advanced Plugins
Java Architect Essentials
Java Architect Essentials
Aug 22, 2025 · Backend Development

Why MyBatis-Flex Outperforms MyBatis-Plus: Features, Performance & Quick Start

This article introduces MyBatis-Flex, a lightweight yet powerful MyBatis enhancement framework that boosts development efficiency with type‑safe QueryWrapper, extensive features like multi‑tenant and data encryption, supports dozens of databases, and delivers 5‑10× performance gains over MyBatis‑Plus, complete with a step‑by‑step quick‑start guide.

JavaMyBatis-FlexORM
0 likes · 11 min read
Why MyBatis-Flex Outperforms MyBatis-Plus: Features, Performance & Quick Start
Coder Life Journal
Coder Life Journal
Aug 22, 2025 · Operations

Diagnosing Java OOM, High CPU, Disk & Network Issues: A Practical Guide

This guide explains how to troubleshoot common online Java problems—including high CPU, OutOfMemoryError, disk I/O, and network latency—by using tools such as top, jps, jstack, jmap, MAT, df, and ping to pinpoint root causes like infinite loops, memory leaks, lock contention, and resource exhaustion.

CPUJavaMAT
0 likes · 8 min read
Diagnosing Java OOM, High CPU, Disk & Network Issues: A Practical Guide
macrozheng
macrozheng
Aug 22, 2025 · Fundamentals

How Jeandle’s LLVM‑Powered JIT Could Supercharge Java Performance

Jeandle, the new open‑source LLVM‑based JIT compiler released by Ant Group, aims to integrate LLVM’s high‑performance optimizations into the JVM, offering faster execution, future roadmap details, and insights into JIT and LLVM fundamentals for Java developers.

JITJVMJava
0 likes · 6 min read
How Jeandle’s LLVM‑Powered JIT Could Supercharge Java Performance
Architect's Guide
Architect's Guide
Aug 22, 2025 · Backend Development

Can JDBC Batch Insertion Speed Up MySQL? 100M Row Performance Test

This article evaluates the efficiency of inserting massive data into MySQL using Java, comparing three strategies—MyBatis without transactions, plain JDBC with and without transactions, and JDBC batch processing—showing that batch processing combined with transactions yields the fastest insertion speed for hundreds of millions of rows.

Batch ProcessingJDBCJava
0 likes · 13 min read
Can JDBC Batch Insertion Speed Up MySQL? 100M Row Performance Test
Java Captain
Java Captain
Aug 22, 2025 · Backend Development

Designing Clean API Responses in Java: From JSON Structure to Global Wrappers

This article explains how to design a standardized JSON response format for Java back‑end APIs, introduces a Result wrapper class, and shows how to automate response wrapping using a custom @ResponseResult annotation, interceptors, and Spring's ResponseBodyAdvice for cleaner, more maintainable code.

API designJSON responseJava
0 likes · 7 min read
Designing Clean API Responses in Java: From JSON Structure to Global Wrappers
Java Backend Technology
Java Backend Technology
Aug 22, 2025 · Backend Development

How Jeandle’s LLVM‑Powered JIT Could Revolutionize Java Performance

Jeandle, the new open‑source LLVM‑based JIT compiler released by Ant Group, aims to boost Java performance by integrating LLVM’s optimization capabilities into the JVM, explaining JIT and LLVM fundamentals, its architecture, and an ambitious roadmap toward full bytecode support and advanced optimizations.

JITJVMJava
0 likes · 6 min read
How Jeandle’s LLVM‑Powered JIT Could Revolutionize Java Performance
Cognitive Technology Team
Cognitive Technology Team
Aug 22, 2025 · Backend Development

Unlocking Ordered Messaging: How RocketMQ and DDMQ Ensure Sequence

This article deeply explores the sequential consumption mechanisms of RocketMQ and its derivative DDMQ, comparing their source‑code implementations, detailing producer ordering, broker locking, consumer locking, and the architectural differences that allow DDMQ to achieve ordered processing with only proxy‑side locks.

DDMQJavaOrdered Consumption
0 likes · 30 min read
Unlocking Ordered Messaging: How RocketMQ and DDMQ Ensure Sequence
Architect
Architect
Aug 21, 2025 · Artificial Intelligence

Implement OCR in Java with Tess4j and SpringBoot in Just a Few Lines

This tutorial walks you through adding optical character recognition to a Java SpringBoot project using the Tess4j library, covering prerequisites, dependency setup, engine initialization, RESTful API creation, and tips for improving accuracy with custom training data or third‑party services.

Artificial IntelligenceJavaOCR
0 likes · 8 min read
Implement OCR in Java with Tess4j and SpringBoot in Just a Few Lines
Architecture Digest
Architecture Digest
Aug 21, 2025 · Backend Development

Which Java Technologies Are Truly Obsolete? A Practical Guide

The article reviews decades of Java evolution, evaluates JSP, Struts, Hibernate, Servlet and other legacy tools against real‑world usefulness, interview relevance, and learning value, and advises developers on which technologies to drop and which fundamentals to master.

JSPJavaServlet
0 likes · 7 min read
Which Java Technologies Are Truly Obsolete? A Practical Guide
Architect's Tech Stack
Architect's Tech Stack
Aug 21, 2025 · Backend Development

Master Java Servlet Inheritance with IntelliJ IDEA Diagrams

This guide shows how to use IntelliJ IDEA's diagram feature to visualize, clean up, and explore Java Servlet inheritance hierarchies, including removing irrelevant classes, viewing method details, zooming, adding related classes, and jumping directly to source code.

Backend DevelopmentClass DiagramIntelliJ IDEA
0 likes · 6 min read
Master Java Servlet Inheritance with IntelliJ IDEA Diagrams
Top Architect
Top Architect
Aug 21, 2025 · Backend Development

Master 10 Essential Spring Extension Points for Robust Backend Development

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

BeanFactoryBeanPostProcessorConfiguration
0 likes · 17 min read
Master 10 Essential Spring Extension Points for Robust Backend Development
macrozheng
macrozheng
Aug 21, 2025 · Backend Development

Master PO, VO, BO, DTO, DAO & POJO: When and How to Use Each in Java

This article explains the purpose, responsibilities, and typical pitfalls of six common Java objects—PO, DAO, BO, DTO, VO, and POJO—illustrates their flow in different architectural models, and recommends tools and best‑practice patterns for efficient conversion and clean layer separation.

JavaObject DesignPOJO
0 likes · 12 min read
Master PO, VO, BO, DTO, DAO & POJO: When and How to Use Each in Java
Java Architect Essentials
Java Architect Essentials
Aug 20, 2025 · Backend Development

How to Prevent Java StackOverflow Crashes: Tuning JVM Stack Size and Monitoring Tips

This article explains why JVM stack overflow is a critical issue, illustrates common causes such as uncontrolled recursion and massive thread creation, provides practical stack‑size tuning guidelines, special‑scenario adjustments for SpringBoot and cloud‑native deployments, and outlines diagnostic tools and monitoring metrics to detect and avoid crashes.

JVMJavaPerformance
0 likes · 6 min read
How to Prevent Java StackOverflow Crashes: Tuning JVM Stack Size and Monitoring Tips
Java Captain
Java Captain
Aug 20, 2025 · Information Security

Build a Secure Spring Boot App in Minutes with Spring Security

This tutorial walks you through adding Spring Security to a Spring Boot project, from adding the starter dependency and creating a simple controller to observing the default login page, understanding the auto‑generated password mechanism, and customizing usernames and passwords for production use.

AuthenticationJavaSpring Boot
0 likes · 9 min read
Build a Secure Spring Boot App in Minutes with Spring Security
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 20, 2025 · Backend Development

Unlock MyBatis-Plus: From Zero-Code CRUD to Advanced Plugins

This article introduces MyBatis-Plus, explains its core zero‑injection CRUD capabilities, demonstrates powerful condition builders, plugin extensions, and best practices for secure, efficient data access, including custom query objects, micro‑service integration, and advanced mapper customization, helping developers boost backend productivity.

CRUDJavaORM
0 likes · 16 min read
Unlock MyBatis-Plus: From Zero-Code CRUD to Advanced Plugins
Tech Freedom Circle
Tech Freedom Circle
Aug 20, 2025 · Backend Development

P0 Eureka Service Discovery Collapse Cost a Top E‑commerce $120M During Double‑11

During the Double‑11 shopping festival, a leading e‑commerce platform suffered a P0 outage when its Eureka service‑discovery cluster overloaded, triggering a full‑chain failure that lasted 2 hours 42 minutes and caused losses exceeding 1.2 billion yuan; the article dissects the timeline, root causes, capacity mis‑planning, monitoring gaps, and remediation strategies.

EurekaJavaMicroservices
0 likes · 34 min read
P0 Eureka Service Discovery Collapse Cost a Top E‑commerce $120M During Double‑11
Architect's Guide
Architect's Guide
Aug 20, 2025 · Backend Development

How to Tune JVM for 1M Daily Logins on an 8GB Server Node

This article walks through a systematic, interview‑style guide for sizing and configuring JVM heap, young generation, GC choice, and related parameters to reliably support a platform that processes one million login requests per day on an 8 GB memory node.

Garbage CollectionJVMJava
0 likes · 24 min read
How to Tune JVM for 1M Daily Logins on an 8GB Server Node
Senior Tony
Senior Tony
Aug 20, 2025 · Backend Development

Why Volatile Solves Memory Visibility and Reordering in Java?

This article explains how the volatile keyword guarantees visibility of shared variables and prevents instruction reordering in Java, covering the Java Memory Model, memory barriers, practical code examples, and the Happens‑Before principle for reliable multithreaded programming.

JavaMemory ModelVolatile
0 likes · 10 min read
Why Volatile Solves Memory Visibility and Reordering in Java?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 19, 2025 · Backend Development

Jackson‑jr in Spring Boot: Lightning‑Fast JSON Serialization & Benchmarks

This article introduces the lightweight Jackson‑jr library for Java, demonstrates how to create JSON objects and arrays, use the Composer API, customize serialization with annotations, and presents JMH performance comparisons showing Jackson‑jr’s superior speed over Jackson‑databind and Gson in Spring Boot 3.4.2 environments.

Jackson-jrJavaPerformance Benchmark
0 likes · 9 min read
Jackson‑jr in Spring Boot: Lightning‑Fast JSON Serialization & Benchmarks
Programmer DD
Programmer DD
Aug 19, 2025 · Backend Development

What’s New in Spring Boot 4? Explore the Latest Features and Enhancements

Spring Boot 4, built on Spring Framework 7, introduces elegant API versioning, streamlined Bean registration, null‑safety annotations, simplified HTTP proxy creation, upgraded SPEL, GraalVM native support, Jackson 3.x, newer Servlet/WebSocket versions, and numerous other enhancements, offering developers more powerful and convenient tools.

Bean RegistrationGraalVMJava
0 likes · 8 min read
What’s New in Spring Boot 4? Explore the Latest Features and Enhancements
dbaplus Community
dbaplus Community
Aug 18, 2025 · Cloud Native

Why Ubuntu 22.04 Upgrade Crashes Java Apps on Kubernetes: The cgroup v2 Trap

Upgrading a Kubernetes cluster from CentOS 7.9 to Ubuntu 22.04 caused Java pods to crash with OOMKilled errors; increasing memory limits only hid the issue, and the root cause was cgroup v2 making the JVM misinterpret its resource limits, resulting in excessive threads and heap sizes. The article advises upgrading to a JVM that supports cgroup v2 or reverting the node to cgroup v1.

JVMJavaKubernetes
0 likes · 8 min read
Why Ubuntu 22.04 Upgrade Crashes Java Apps on Kubernetes: The cgroup v2 Trap
Architect
Architect
Aug 18, 2025 · Backend Development

Simplify Java Stream with JDFrame: A DataFrame‑Style API for Cleaner Code

This article introduces JDFrame/SDFrame, a JVM‑level DataFrame‑style library that provides a more semantic and concise API for Java 8 Stream processing, covering dependency setup, quick start, filtering, aggregation, distinct, grouping, sorting, joining, and advanced features such as percent conversion, partitioning, ranking, and missing‑data replenishment.

APIDataFrameDataProcessing
0 likes · 16 min read
Simplify Java Stream with JDFrame: A DataFrame‑Style API for Cleaner Code
Tech Freedom Circle
Tech Freedom Circle
Aug 18, 2025 · Interview Experience

How to Hand‑Write a Simple AbstractQueuedSynchronizer (AQS) for High‑Pay Java Interviews

This article walks through the fundamentals of Java's AbstractQueuedSynchronizer, covering lock‑queue relationships, CLH lock internals, dummy head nodes, state management, and step‑by‑step implementations of acquire, addWaiter, acquireQueued, shouldParkAfterFailedAcquire, and release methods, complete with runnable example code.

AQSAbstractQueuedSynchronizerConcurrency
0 likes · 29 min read
How to Hand‑Write a Simple AbstractQueuedSynchronizer (AQS) for High‑Pay Java Interviews
macrozheng
macrozheng
Aug 18, 2025 · Backend Development

Simplify Java Stream Processing with JDFrame: A Semantic DataFrame Alternative

This article introduces JDFrame/SDFrame, a JVM‑level DataFrame‑style library that offers a more semantic and concise API for Java 8 streams, provides quick‑start instructions, detailed code examples, and a comprehensive overview of its SQL‑like operations such as filtering, aggregation, distinct, grouping, joining, and pagination.

DataFrameJDFrameJava
0 likes · 13 min read
Simplify Java Stream Processing with JDFrame: A Semantic DataFrame Alternative
Java One
Java One
Aug 18, 2025 · Backend Development

Master Spring Boot 3: From Environment Setup to a Running Hello‑World REST API

This comprehensive guide walks Java beginners through installing IDEA and JDK, explains Spring Boot 3 fundamentals, demonstrates project creation with Spring Initializr, shows Maven standard layout, configures a simple Hello World REST controller, and covers essential topics such as POM files, GAV coordinates, Maven Wrapper, static resources, templates and unit testing.

IDEJavaMaven
0 likes · 17 min read
Master Spring Boot 3: From Environment Setup to a Running Hello‑World REST API
Lin is Dream
Lin is Dream
Aug 18, 2025 · Backend Development

Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model

This article explains how to overcome the single‑threaded bottleneck of Java NIO by introducing a Boss‑Worker architecture, detailing the design of multiple Selectors, thread binding, client implementation, performance considerations, and provides complete open‑source code examples.

Boss-WorkerJavaNIO
0 likes · 11 min read
Boost Java NIO Performance with a Multi‑Threaded Boss‑Worker Server Model
Su San Talks Tech
Su San Talks Tech
Aug 18, 2025 · Information Security

Mastering Token Renewal: 5 Strategies to Boost Security and Performance

This article explores the fundamentals of token renewal, analyzes common pitfalls, and presents five practical schemes—including single‑token, blacklist, double‑token, automatic renewal, and distributed‑environment solutions—while offering a comparison matrix, selection guidance, and best‑practice recommendations for secure, high‑performance authentication systems.

AuthenticationJavaToken Renewal
0 likes · 10 min read
Mastering Token Renewal: 5 Strategies to Boost Security and Performance
Architect
Architect
Aug 17, 2025 · Databases

Mastering Database Sharding in Spring Boot: A Complete Guide with ShardingSphere

This comprehensive tutorial explains database sharding concepts, types, strategies, and implementation in Spring Boot using ShardingSphere, covering configuration, entity and repository code, service and controller layers, integration with pagination, Swagger, ActiveMQ, security, batch processing, FreeMarker, WebSockets, AOP, performance testing, FAQs, real‑world cases, and future trends.

JavaMicroservicesShardingSphere
0 likes · 32 min read
Mastering Database Sharding in Spring Boot: A Complete Guide with ShardingSphere
Ubiquitous Tech
Ubiquitous Tech
Aug 17, 2025 · Backend Development

MCP Lesson 12: Implementing a Trend‑Aggregating MCP Server for Weibo, Douyin, Toutiao, and Juejin

This article walks through the open‑source mcp‑trends‑hub project, explains its one‑stop hot‑trend aggregation features, shows how to configure the MCP Server in a client, and provides step‑by‑step Java implementations for Weibo, Douyin, Toutiao, NetEase News and Juejin trend tools, including code, architecture diagrams and registration flow.

DouyinJavaJuejin
0 likes · 23 min read
MCP Lesson 12: Implementing a Trend‑Aggregating MCP Server for Weibo, Douyin, Toutiao, and Juejin
Cognitive Technology Team
Cognitive Technology Team
Aug 17, 2025 · Backend Development

synchronized vs Lock in Java: When to Choose Each for Thread Safety

This article examines the core differences between Java's synchronized keyword and the Lock interface, covering their principles, performance, flexibility, visibility guarantees, reentrancy, interruption handling, and practical selection guidelines with code examples, tables, and real‑world scenarios to help developers choose the appropriate locking mechanism.

JavaLockPerformance
0 likes · 9 min read
synchronized vs Lock in Java: When to Choose Each for Thread Safety
Selected Java Interview Questions
Selected Java Interview Questions
Aug 15, 2025 · Backend Development

Master Spring Boot Controllers: Design Patterns, Best Practices & Code Samples

This comprehensive guide explains how to design high‑quality Spring Boot controller layers, covering architecture planning, RESTful API conventions, parameter validation, unified response structures, exception handling, logging, security, testing, asynchronous processing, and performance optimization with practical code examples and clear best‑practice recommendations.

ControllerJavaRESTful API
0 likes · 15 min read
Master Spring Boot Controllers: Design Patterns, Best Practices & Code Samples
Architect's Tech Stack
Architect's Tech Stack
Aug 15, 2025 · Backend Development

Why Upgrading to MyBatis‑Plus Triggers LocalDateTime Errors and How to Resolve Them

This article walks through a real‑world scenario where replacing MyBatis with MyBatis‑Plus caused a LocalDateTime conversion exception due to changes in MyBatis 3.5.1 and an outdated mysql‑connector‑java driver, demonstrates how to pinpoint the root cause via stack traces, and provides step‑by‑step fixes including driver upgrades and version considerations, while also sharing lessons learned from related validation bugs.

JavaLocalDateTimeORM
0 likes · 16 min read
Why Upgrading to MyBatis‑Plus Triggers LocalDateTime Errors and How to Resolve Them
Java Backend Technology
Java Backend Technology
Aug 15, 2025 · Backend Development

Simplify Java Stream Processing with JDFrame – A JVM‑Level DataFrame Library

This article introduces JDFrame, a JVM‑level DataFrame‑style library that provides a more expressive, SQL‑like API for Java 8 streams, shows how to add the Maven dependency, demonstrates common operations such as filtering, grouping, sorting, joining, and explains the differences between SDFrame and JDFrame with practical code examples.

Data ProcessingDataFrameJDFrame
0 likes · 19 min read
Simplify Java Stream Processing with JDFrame – A JVM‑Level DataFrame Library
Lin is Dream
Lin is Dream
Aug 15, 2025 · Backend Development

Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming

This article explains what network programming is, why it matters beyond HTTP, compares BIO and NIO models, dives into Java NIO's design with selectors, channels, and ByteBuffer methods, provides full server/client code examples, and shows how Netty simplifies high‑performance networking.

ByteBufferJavaNIO
0 likes · 23 min read
Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming
Java Web Project
Java Web Project
Aug 14, 2025 · Backend Development

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

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

AOPAPI designController
0 likes · 11 min read
Why a Unified Controller Response Format Is Essential: Best Practices and AOP Implementation
Didi Tech
Didi Tech
Aug 14, 2025 · Backend Development

How RocketMQ and DDMQ Achieve Ordered Consumption: Deep Source Code Dive

This article deeply explores the ordered consumption mechanisms of RocketMQ and its derivative DDMQ, explaining the implementation differences, source‑code details of sequential sending, broker locking, client‑side processing, and compares the two systems' approaches to guarantee message order.

DDMQJavaMessage Queue
0 likes · 30 min read
How RocketMQ and DDMQ Achieve Ordered Consumption: Deep Source Code Dive
Tech Freedom Circle
Tech Freedom Circle
Aug 14, 2025 · Backend Development

10 Proven Techniques to Optimize API Latency from 11 s to 170 ms – A Meituan Interview Case

The article presents a step‑by‑step analysis of how to shrink a 11‑second API response to 170 ms by applying batch database writes, Redis pipeline, asynchronous processing, thread‑pool design, local‑memory buffering, MQ integration, and other performance‑tuning patterns, backed by real‑world benchmarks and code samples.

API optimizationConcurrencyDatabase
0 likes · 48 min read
10 Proven Techniques to Optimize API Latency from 11 s to 170 ms – A Meituan Interview Case
Selected Java Interview Questions
Selected Java Interview Questions
Aug 14, 2025 · Backend Development

Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques

This guide walks through creating Spring MVC controllers using @Controller, implementing the Controller interface, extending AbstractController, mapping URLs and HTTP methods, handling request parameters, returning ModelAndView, performing redirects, processing forms, uploading files, autowiring services, and adhering to the single‑responsibility principle.

ControllerJavaModelAndView
0 likes · 14 min read
Master Spring MVC Controllers: From @Controller Basics to Advanced Techniques
JD Cloud Developers
JD Cloud Developers
Aug 13, 2025 · Backend Development

Why Do MySQL PhantomReferences Cause Long GC Pauses and How to Fix Them?

This article analyzes frequent timeout alerts caused by the getUiToken API, investigates JVM garbage‑collection pauses linked to excessive PhantomReference objects from MySQL connections, and presents configuration, code, and scheduling solutions that dramatically reduce GC latency and improve service stability.

ConnectionPoolGCJVM
0 likes · 12 min read
Why Do MySQL PhantomReferences Cause Long GC Pauses and How to Fix Them?
JD Tech Talk
JD Tech Talk
Aug 13, 2025 · Backend Development

Why MySQL getUiToken Times Out: PhantomReference GC Bottleneck & Fix

The article investigates frequent timeout alerts on the getUiToken API, tracing the issue to excessive PhantomReference objects causing long GC pauses, explains how MySQL’s AbandonedConnectionCleanupThread and default Druid pool settings generate these references, and presents configuration tweaks, JVM flags, and cleanup tasks that reduced GC pause times from 1.25 s to 0.1 s.

DruidGCJava
0 likes · 11 min read
Why MySQL getUiToken Times Out: PhantomReference GC Bottleneck & Fix
21CTO
21CTO
Aug 13, 2025 · Artificial Intelligence

Spring AI 1.0.1 Released: Key Features, Enhancements, and Roadmap Highlights

Spring AI 1.0.1 has been officially released, introducing over 150 changes that improve stability, add new AI model provider capabilities, advanced features like vector store enhancements and MCP streaming, and outline upcoming roadmap priorities for developers and enterprises.

AI FrameworkJavaSpring AI
0 likes · 3 min read
Spring AI 1.0.1 Released: Key Features, Enhancements, and Roadmap Highlights
Huolala Tech
Huolala Tech
Aug 13, 2025 · Backend Development

Why Do Inherited ThreadLocals Cause Task Failures in XXL‑Job?

An in‑depth analysis reveals that stale parameters stored in InheritableThreadLocal objects during thread‑pool reuse cause XXL‑Job tasks to process incorrect data, and provides debugging steps and best‑practice recommendations to prevent context pollution.

Context propagationDebuggingInheritableThreadLocal
0 likes · 10 min read
Why Do Inherited ThreadLocals Cause Task Failures in XXL‑Job?
Java Backend Technology
Java Backend Technology
Aug 13, 2025 · Backend Development

Why Stream.toList() Throws UnsupportedOperationException vs collect(Collectors.toList())

This article explains the key differences between Java's Stream toList() method introduced in JDK 16, which returns an unmodifiable list, and the traditional collect(Collectors.toList()) which yields a mutable ArrayList, illustrating behavior with code examples, performance considerations, and practical usage tips.

CollectionsImmutable ListJDK16
0 likes · 8 min read
Why Stream.toList() Throws UnsupportedOperationException vs collect(Collectors.toList())
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 12, 2025 · Backend Development

Unlock the JVM Method Area: 6 Key Components Every Java Developer Should Know

This article explains the JVM Method Area, its purpose in storing class metadata, constants, static variables and JIT-compiled code, and details its six internal components—including the runtime constant pool, field data, method data, class data, constant data, and compiled code—providing essential knowledge for Java developers and interview preparation.

Backend DevelopmentJVMJava
0 likes · 3 min read
Unlock the JVM Method Area: 6 Key Components Every Java Developer Should Know
Code Ape Tech Column
Code Ape Tech Column
Aug 12, 2025 · Operations

How to Use Meteor for Real-Time Java App Diagnosis and Performance Tuning

Meteor, built on Alibaba's Arthas, is a non‑intrusive Java diagnostic console that lets developers monitor running applications, locate performance bottlenecks, memory leaks, and thread deadlocks without restarting services, offering a SpringBoot‑based architecture, quick start commands, and features such as class inspection, live code editing, method monitoring, thread management, and dashboards.

ArthasJavaPerformance Monitoring
0 likes · 4 min read
How to Use Meteor for Real-Time Java App Diagnosis and Performance Tuning
dbaplus Community
dbaplus Community
Aug 11, 2025 · Backend Development

How to Choose and Implement a High‑Performance Local Cache in Java

This article explains why a first‑level local cache is essential for high‑performance services, outlines required cache features, compares four Java implementations (ConcurrentHashMap, Guava, Caffeine, Encache), and provides solutions for consistency, hit‑rate improvement, and technology selection, concluding that Caffeine offers the best performance.

CaffeineEhcacheGuava
0 likes · 11 min read
How to Choose and Implement a High‑Performance Local Cache in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 11, 2025 · Backend Development

Boost Excel Processing in Spring Boot 3 with FastExcel – High‑Performance Read/Write Guide

This article introduces the FastExcel library as a high‑performance alternative to Apache POI for handling massive Excel files in Spring Boot 3, presents benchmark results, and provides detailed code examples for writing, reading, and uploading large spreadsheets with multithreading and memory‑efficient settings.

Apache POI alternativeExcel performanceFastExcel
0 likes · 13 min read
Boost Excel Processing in Spring Boot 3 with FastExcel – High‑Performance Read/Write Guide
Ubiquitous Tech
Ubiquitous Tech
Aug 9, 2025 · Backend Development

Build a Streamable HTTP MCP Server with Java’s New 0.11 SDK (Lesson 10)

The article explains how the Java MCP SDK 0.11 adds Streamable HTTP support, compares it with the traditional HTTP+SSE approach, and walks through adding Maven dependencies, configuring Spring AI, creating custom auto‑configuration classes, implementing a Weibo trending tool, and deploying a fully functional Streamable HTTP MCP server.

JavaSDK 0.11Server
0 likes · 19 min read
Build a Streamable HTTP MCP Server with Java’s New 0.11 SDK (Lesson 10)
FunTester
FunTester
Aug 8, 2025 · Backend Development

How FixrLeak Uses Generative AI to Automatically Fix Java Resource Leaks

FixrLeak combines AST analysis with generative AI to detect and automatically repair Java resource leaks, dramatically reducing manual effort, improving code quality, and demonstrating the transformative potential of AI‑driven solutions in large‑scale software engineering.

ASTJavaStatic Analysis
0 likes · 9 min read
How FixrLeak Uses Generative AI to Automatically Fix Java Resource Leaks
macrozheng
macrozheng
Aug 8, 2025 · Backend Development

Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP

This guide covers evaluating engineer hourly wages, interview self‑introduction tips, local vs distributed cache choices, ThreadLocal usage, memory‑leak detection with MAT, deadlock troubleshooting, Spring Bean lifecycle, AOP implementation, and Redis‑based distributed locks, plus resources for Spring Boot projects.

AOPJavaThreadLocal
0 likes · 20 min read
Master Java Backend: ThreadLocal, Memory Leaks, Spring Bean Lifecycle & AOP
Code Ape Tech Column
Code Ape Tech Column
Aug 7, 2025 · Backend Development

Replace Cluttered if…else with Java 8 Functional Interfaces

This article shows how to eliminate repetitive if…else statements in Java code by leveraging Java 8 functional interfaces such as Supplier, Consumer, Runnable, and custom interfaces for exception handling, branch processing, and null‑value handling, complete with code examples and diagrams.

Functional InterfaceJavaJava8
0 likes · 6 min read
Replace Cluttered if…else with Java 8 Functional Interfaces
Shepherd Advanced Notes
Shepherd Advanced Notes
Aug 7, 2025 · Backend Development

From Java 8 Stubbornness to Java 21: My Upgrade Journey and New Language Features

The article walks through the author's personal upgrade from Java 8 to Java 21, comparing preview features, pattern‑matching instanceof, switch expressions, text blocks, the new HTTP client, var inference, virtual threads, records, immutable collections, try‑with‑resources improvements and other enhancements, while rating each feature’s practicality.

JDK21JavaJava8
0 likes · 16 min read
From Java 8 Stubbornness to Java 21: My Upgrade Journey and New Language Features
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 7, 2025 · Backend Development

Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions

This article explains why proper date formatting matters in Spring Boot applications, compares the default Jackson behavior, and presents five concrete approaches—including global configuration, @JsonFormat, custom ObjectMapper, @JsonComponent, and @JsonSerialize—detailing their implementations, advantages, and drawbacks.

JacksonJavaSpring Boot
0 likes · 8 min read
Mastering Date Formatting in Spring Boot 3: 5 Practical Solutions
Java Captain
Java Captain
Aug 6, 2025 · Fundamentals

Unlock Java 17: Records, Sealed Classes, Pattern Matching and More

This article explores the major Java 17 language enhancements—including records, sealed classes, pattern matching, text blocks, var, and the new switch expression—showing how they reduce boilerplate, improve readability, and boost performance compared to legacy Java 8 code.

JDK 17JavaRecord
0 likes · 13 min read
Unlock Java 17: Records, Sealed Classes, Pattern Matching and More
Code Ape Tech Column
Code Ape Tech Column
Aug 6, 2025 · Backend Development

Implement Role‑Based Data Permissions in MyBatis‑Plus Using Annotations & Interceptors

This article explains how to enforce data‑access restrictions in MyBatis‑Plus by creating a custom @UserDataPermission annotation, building an InnerInterceptor that rewrites SQL queries, handling role‑based scopes, and integrating the interceptor into the MyBatis‑Plus plugin for both basic and advanced use cases.

Backend DevelopmentData PermissionInterceptor
0 likes · 17 min read
Implement Role‑Based Data Permissions in MyBatis‑Plus Using Annotations & Interceptors