Tagged articles
5000 articles
Page 30 of 50
Java Architecture Stack
Java Architecture Stack
Nov 14, 2024 · Backend Development

How Read‑Write Lock Separation Supercharges E‑Commerce Inventory

This article explains the read‑write lock separation design pattern, its principles, suitable scenarios such as high‑concurrency inventory queries, and provides a complete Java implementation with ReentrantReadWriteLock, including code samples, testing, performance benefits, and a discussion of its advantages and limitations.

BackendInventoryManagementPerformance
0 likes · 9 min read
How Read‑Write Lock Separation Supercharges E‑Commerce Inventory
Architect's Guide
Architect's Guide
Nov 14, 2024 · Backend Development

Implementing the Chain of Responsibility Pattern for Product Validation in Java

This article explains the Chain of Responsibility design pattern, demonstrates its application in a product creation workflow with concrete Java code, shows how to configure and assemble handlers dynamically using Spring, and discusses the pattern's advantages, drawbacks, and testing scenarios.

BackendChain of ResponsibilityHandler
0 likes · 20 min read
Implementing the Chain of Responsibility Pattern for Product Validation in Java
Java Interview Crash Guide
Java Interview Crash Guide
Nov 14, 2024 · Fundamentals

Master IntelliJ IDEA Debugging: From Basics to Advanced Techniques

This guide walks you through every essential feature of IntelliJ IDEA's Debug tool—pre‑setup, main UI, service and debug buttons, watches, variable inspection, conditional breakpoints, expression evaluation, frame rollback, force return, multithreaded, Stream and remote debugging—empowering you to troubleshoot Java code efficiently.

IDEIntelliJ IDEAVariable Inspection
0 likes · 16 min read
Master IntelliJ IDEA Debugging: From Basics to Advanced Techniques
Architect
Architect
Nov 13, 2024 · Backend Development

UniHttp – Declarative HTTP Client Framework for Java Enterprise Projects

UniHttp is a declarative HTTP interface integration framework that simplifies third‑party API calls in Java projects by generating proxy beans, supporting rich annotations for request parameters, lifecycle hooks, custom processors, and seamless Spring integration, thereby improving code cohesion and maintainability.

APIDeclarativeFramework
0 likes · 21 min read
UniHttp – Declarative HTTP Client Framework for Java Enterprise Projects
Architecture Digest
Architecture Digest
Nov 13, 2024 · Backend Development

Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum-based Error Codes

This article explains how to replace repetitive try‑catch blocks in Java backend development with a unified exception handling approach using Spring's @ControllerAdvice, custom Assert utilities, and enum‑based error codes, providing cleaner code, consistent error responses, and easy internationalization.

AssertBackendException Handling
0 likes · 20 min read
Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum-based Error Codes
Top Architect
Top Architect
Nov 13, 2024 · Fundamentals

Comprehensive Guide to IntelliJ IDEA Debugging Features

This article provides a step‑by‑step tutorial on using IntelliJ IDEA's Debug tool, covering preparation, main interface elements, each debugging button, variable inspection and modification, conditional breakpoints, expression evaluation, rollback, force return, multi‑thread, Stream and remote debugging, with code examples and screenshots.

DevelopmentIDEIntelliJ IDEA
0 likes · 20 min read
Comprehensive Guide to IntelliJ IDEA Debugging Features
JD Cloud Developers
JD Cloud Developers
Nov 13, 2024 · Backend Development

Mastering Sentinel: Deep Dive into Java Flow Control and Cloud‑Native Governance

Sentinel, an open‑source flow‑control component born from Alibaba’s ecosystem, offers out‑of‑the‑box circuit‑breaking, rate‑limiting, and real‑time monitoring for Java microservices, with extensive rule types, dashboard visualization, datasource integrations, and adaptable architecture that supports multiple protocols, making it a versatile solution for cloud‑native traffic governance.

Circuit BreakingFlow ControlMicroservices
0 likes · 19 min read
Mastering Sentinel: Deep Dive into Java Flow Control and Cloud‑Native Governance
Architect's Guide
Architect's Guide
Nov 13, 2024 · Backend Development

Designing a Modular Spring Boot Backend Project: Principles, Module Structure, and Maven Configuration

This article presents a comprehensive guide to building a Spring Boot backend system by outlining essential design principles, detailing a multi‑module architecture with clear responsibilities, and providing complete Maven POM configurations for each module to enable scalable and maintainable development.

Backend ArchitectureMicroservicesjava
0 likes · 14 min read
Designing a Modular Spring Boot Backend Project: Principles, Module Structure, and Maven Configuration
Top Architect
Top Architect
Nov 12, 2024 · Backend Development

Preventing Duplicate Submissions in Java Backend with Debounce and Distributed Locks

This article explains how to implement request debouncing and distributed locking in a Java backend using Redis and Redisson, covering the definition of debounce, identifying suitable APIs, generating unique keys, and providing complete code examples for both cache‑based and Redisson‑based lock mechanisms.

DebounceSpringBootdistributed-lock
0 likes · 17 min read
Preventing Duplicate Submissions in Java Backend with Debounce and Distributed Locks
Java Tech Enthusiast
Java Tech Enthusiast
Nov 12, 2024 · Backend Development

Boost Spring Boot API Testing with the Free Open‑Source Cool Request Plugin

The article introduces Cool Request, a free open‑source IntelliJ IDEA plugin that streamlines Spring Boot backend API testing by providing in‑IDE request execution, method timing statistics, interceptor bypass, job triggering, Java pre/post scripts, response preview, and export to third‑party tools, complete with usage examples and code snippets.

API testingCool RequestIDEA Plugin
0 likes · 8 min read
Boost Spring Boot API Testing with the Free Open‑Source Cool Request Plugin
macrozheng
macrozheng
Nov 12, 2024 · Backend Development

Boost Kafka Throughput in Spring Boot: Batch Consumption Guide

This article demonstrates how to integrate Kafka with Spring Boot, add necessary dependencies and configuration, implement both single‑message and batch consumers, and tune batch settings to dramatically improve processing speed for millions of records in a microservice environment.

BackendBatchProcessingKafka
0 likes · 12 min read
Boost Kafka Throughput in Spring Boot: Batch Consumption Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 12, 2024 · Backend Development

Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide

This article introduces the Magic‑API framework for Java, explains its extensive features, walks through environment setup, dependency configuration, and demonstrates real‑world use cases such as data source management, pagination, SQL, MyBatis, HTTP calls, Redis integration, and inline Java execution within a Spring Boot 3 project.

API developmentBackendjava
0 likes · 6 min read
Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide
DeWu Technology
DeWu Technology
Nov 11, 2024 · Backend Development

Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation

The Precise Testing Platform combines a recommendation engine—featuring a link analyzer, diff analyzer, and knowledge base—to automatically construct detailed method‑call graphs from source code, extract HTTP and Dubbo APIs, handle reflections and inheritance, and store billions of nodes in Nebula Graph, thereby eliminating blind, missed, and redundant tests while boosting coverage and reducing testing costs.

ASTGraph DatabaseReflection
0 likes · 54 min read
Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation
Top Architect
Top Architect
Nov 11, 2024 · Backend Development

Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide

This article explains how to use the Flowable BPMN engine in a Spring Boot project, covering workflow basics, related BPMN concepts, Maven dependencies, diagram creation, service‑task implementation, REST API for diagram viewing, unit testing, and common pitfalls such as font configuration and process definition updates.

BPMNFlowablejava
0 likes · 21 min read
Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Nov 11, 2024 · Backend Development

Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor

This article explains how Java's ThreadPoolExecutor handles tasks submitted via execute() and submit(), why execute() prints exceptions directly while submit() defers them until Future.get() is called, and provides detailed source‑code analysis and examples to illustrate the underlying mechanisms.

FutureTaskThreadPoolExecutorexecute
0 likes · 14 min read
Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor
Java Tech Enthusiast
Java Tech Enthusiast
Nov 11, 2024 · Backend Development

LiteFlow: A Java Flow Orchestration Framework Overview

LiteFlow is a lightweight Java flow‑orchestration framework that lets developers break complex business processes into independent Spring‑Boot node components, configure them via XML, and execute them with FlowExecutor, supporting conditional switches and loops while focusing on simple workflow modeling rather than role‑task management.

LiteFlowSpringBootjava
0 likes · 8 min read
LiteFlow: A Java Flow Orchestration Framework Overview
Architecture Digest
Architecture Digest
Nov 11, 2024 · Backend Development

Fluent Mybatis Tutorial: Introduction, Features, Comparison with MyBatis/MyBatis Plus, and Practical CRUD Implementation

This article introduces the Fluent Mybatis ORM framework, explains its design advantages, demonstrates how to implement a complex student‑score aggregation query using Fluent Mybatis, native MyBatis and MyBatis‑Plus, and provides end‑to‑end code examples for entity generation, configuration, and CRUD testing.

Fluent MyBatisORMcode-generation
0 likes · 16 min read
Fluent Mybatis Tutorial: Introduction, Features, Comparison with MyBatis/MyBatis Plus, and Practical CRUD Implementation
Architect
Architect
Nov 10, 2024 · Backend Development

How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks

This article explains why API debouncing is crucial for backend Java services, outlines which endpoints need protection, describes how to identify duplicate requests, and provides step‑by‑step implementations using Redis shared‑cache and Redisson distributed locks with concrete code examples and test results.

BackendDebouncedistributed-lock
0 likes · 14 min read
How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks
Top Architect
Top Architect
Nov 10, 2024 · Backend Development

Understanding Dependency Injection Types in Spring: Constructor, Setter, and Field Injection

This article explains Spring's three dependency injection methods—constructor‑based, setter‑based, and field‑based—illustrates each with code examples, discusses why field injection is discouraged, and recommends using constructor injection for required dependencies and setter injection for optional ones.

Constructor Injectionjavaspring
0 likes · 11 min read
Understanding Dependency Injection Types in Spring: Constructor, Setter, and Field Injection
dbaplus Community
dbaplus Community
Nov 10, 2024 · Cloud Native

Which JDK Performs Best on Kubernetes? A Detailed Comparison

This article benchmarks several popular JDK distributions on Kubernetes using a Spring Boot 3 application, measuring image size, startup time, memory consumption, and throughput with k6, and concludes that performance differences are minimal after repeated testing.

DockerJDKKubernetes
0 likes · 11 min read
Which JDK Performs Best on Kubernetes? A Detailed Comparison
JavaEdge
JavaEdge
Nov 9, 2024 · Artificial Intelligence

Build an AI‑Powered Airline Ticket Agent with Spring AI Alibaba

This tutorial walks through creating an intelligent airline‑ticket customer‑service agent using Spring AI Alibaba, covering requirements, architecture, RAG integration, function calling, chat memory, core capabilities, code implementation with ChatClient, and a sample running result.

AI AgentAlibabaChat Memory
0 likes · 9 min read
Build an AI‑Powered Airline Ticket Agent with Spring AI Alibaba
Java Tech Enthusiast
Java Tech Enthusiast
Nov 9, 2024 · Databases

Java Connection Pool Optimization with HikariCP

The article examines Java connection pool technologies, comparing Commons Pool 2 with HikariCP and showing through JMH benchmarks that HikariCP delivers up to five‑times higher throughput, while detailing lifecycle management, configuration, eviction strategies, sizing best practices, and real‑world uses such as database, HTTP, and RPC connections.

Connection PoolHikariCPPerformance Optimization
0 likes · 12 min read
Java Connection Pool Optimization with HikariCP
Java Architect Essentials
Java Architect Essentials
Nov 8, 2024 · Backend Development

The Hidden Risks of Using Lombok in Java Projects

This article examines how Lombok reduces boilerplate in Java code, demonstrates the transformation of a typical JavaBean before and after Lombok, and critically discusses five major drawbacks—including JDK compatibility, forced dependency, reduced readability, increased coupling, and technical debt—guiding developers to weigh its benefits against long‑term maintenance costs.

BoilerplateLombokjava
0 likes · 10 min read
The Hidden Risks of Using Lombok in Java Projects
Java Tech Enthusiast
Java Tech Enthusiast
Nov 8, 2024 · Backend Development

Deploy kkfileviewer Container and Integrate MinIO with Spring Boot

This guide walks through building and running the kkfileviewer Docker container, then shows how to add MinIO to a Spring Boot application with configuration, a client bean, utility methods, and REST endpoints for uploading files and retrieving presigned preview URLs to display in the kkfileviewer UI.

DockerMiniofile upload
0 likes · 7 min read
Deploy kkfileviewer Container and Integrate MinIO with Spring Boot
Zhuanzhuan Tech
Zhuanzhuan Tech
Nov 8, 2024 · Backend Development

Investigation of Slow Asynchronous Log Printing in Log4j2: Disruptor Mechanism, JNI Overhead, and Optimization

This article analyzes why asynchronous Log4j2 logging becomes a performance bottleneck when handling massive mapping data, tracing the issue through Disruptor internals, stack‑trace location retrieval, and JNI calls, and proposes practical configuration and code adjustments to eliminate the slowdown.

DisruptorJNIPerformance
0 likes · 18 min read
Investigation of Slow Asynchronous Log Printing in Log4j2: Disruptor Mechanism, JNI Overhead, and Optimization
Code Ape Tech Column
Code Ape Tech Column
Nov 8, 2024 · Backend Development

Implementing a Dynamic Thread Pool with Nacos in Spring Boot

This article explains how to externalize and dynamically adjust a Spring Boot thread pool's core and maximum sizes using Nacos as a configuration center, allowing runtime changes without service restarts and demonstrating the setup, code, and testing procedures.

Dynamic ConfigurationNacosjava
0 likes · 9 min read
Implementing a Dynamic Thread Pool with Nacos in Spring Boot
Java Architect Essentials
Java Architect Essentials
Nov 7, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

This tutorial explains how to use Netty to create a Java backend server with WebSocket support, covering server initialization, channel configuration, pipeline setup, custom handlers, and message‑push services, and includes complete code examples for each component.

Message PushNettyServer
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
macrozheng
macrozheng
Nov 7, 2024 · Backend Development

Automate CRUD Code Generation for Spring Boot: Build 20+ Tables in Hours

This article introduces a Spring Boot code‑generation tool that automatically creates database tables, entity classes, DAO interfaces, service layers and controllers, turning weeks of manual CRUD development for dozens of tables into a matter of minutes, and explains its design, templates, dynamic parameters and usage.

CRUDcode-generationjava
0 likes · 18 min read
Automate CRUD Code Generation for Spring Boot: Build 20+ Tables in Hours
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 7, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains why consistent date formatting is crucial in Spring Boot APIs, outlines common scenarios such as front‑end data exchange, database storage and logging, and presents multiple server‑side and client‑side solutions—including SimpleDateFormat, DateTimeFormatter, global Jackson settings, annotations, custom converters, and timestamp output—complete with code examples.

Date FormattingDateTimeFormatterJackson
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 7, 2024 · Backend Development

Integrating XXL‑Job for Scheduled Hot‑Search Crawlers in a Java Backend

This tutorial explains how to replace the basic @Scheduled annotation with the flexible XXL‑Job distributed scheduler, covering repository download, admin deployment, database initialization, Spring‑Boot executor configuration, job registration for Douyin and Bilibili hot‑search crawling, and a Vue front‑end component for displaying ranked results with real‑time update timestamps.

Scheduled TasksWeb CrawlingXXL-JOB
0 likes · 14 min read
Integrating XXL‑Job for Scheduled Hot‑Search Crawlers in a Java Backend
Su San Talks Tech
Su San Talks Tech
Nov 7, 2024 · Backend Development

Optimizing JVM GC for High‑Throughput E‑Commerce Order Systems

This article explains how to analyze per‑second object memory usage in a 100k TPS e‑commerce order flow, choose an appropriate garbage collector, set heap and young‑generation sizes, and apply common JVM tuning parameters to reduce Full GC pauses and improve latency and throughput.

Garbage CollectionJVMjava
0 likes · 6 min read
Optimizing JVM GC for High‑Throughput E‑Commerce Order Systems
Bin's Tech Cabin
Bin's Tech Cabin
Nov 7, 2024 · Backend Development

How Netty Detects Memory Leaks: Deep Dive into LeakAwareBuffer and ResourceLeakDetector

This article provides a comprehensive analysis of Netty's memory‑leak detection mechanism, covering the design principles, leak‑aware buffers, reference handling, sampling strategies, detection levels, and the internal models that enable accurate identification of unreleased native memory in both pooled and unpooled ByteBuf allocations.

NettyResourceLeakDetectorjava
0 likes · 44 min read
How Netty Detects Memory Leaks: Deep Dive into LeakAwareBuffer and ResourceLeakDetector
Architect
Architect
Nov 6, 2024 · Databases

Storing IPv4 as Unsigned Int in MySQL: Benefits, Drawbacks & Code

Using an unsigned INT to store IPv4 addresses in MySQL saves space and enables efficient range queries, while strings are larger and slower; the article explains these advantages, outlines conversion functions INET_ATON/INET_NTOA, shows equivalent handling for IPv6, and provides Java utilities for bidirectional conversion.

IPv4MySQLPerformance
0 likes · 6 min read
Storing IPv4 as Unsigned Int in MySQL: Benefits, Drawbacks & Code
DaTaobao Tech
DaTaobao Tech
Nov 6, 2024 · Fundamentals

Understanding Java Generics: Origins, Features, and the PECS Principle

Java generics, introduced in Java 5 to replace unsafe Object usage, provide compile‑time type safety, clearer code, and eliminate unchecked casts by allowing type‑parameterized classes, methods, and collections, while type erasure and bridge methods preserve backward compatibility, and the PECS rule (producer extends consumer super) guides safe use of wildcards through covariance and contravariance.

GenericsPECSType Erasure
0 likes · 11 min read
Understanding Java Generics: Origins, Features, and the PECS Principle
Java Tech Enthusiast
Java Tech Enthusiast
Nov 6, 2024 · Backend Development

Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance

The article recounts a recent Hikvision interview, outlining campus salary ranges and providing a technical Q&A that explains Spring Boot’s startup sequence, Spring MVC request handling, MySQL index structures, creation rules, and performance diagnostics, as well as Redis’s in‑memory, single‑threaded architecture and optional I/O threading.

BackendMySQLSpringBoot
0 likes · 20 min read
Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance
Code Ape Tech Column
Code Ape Tech Column
Nov 6, 2024 · Backend Development

Implementing a Snapchat-like Self-Destructing Image Feature with Spring Boot and MySQL

This article presents a step‑by‑step guide on building a Snapchat‑style “burn after reading” image sharing system using Spring Boot, MySQL, Thymeleaf, and optional cloud storage, covering background analysis, architecture design, environment setup, code implementation, optimization, testing, and deployment.

MySQLSelf-Destructing Imagesfile upload
0 likes · 19 min read
Implementing a Snapchat-like Self-Destructing Image Feature with Spring Boot and MySQL
Architect's Tech Stack
Architect's Tech Stack
Nov 6, 2024 · Backend Development

Optimizing MyBatis Batch Insert Performance with ExecutorType.BATCH and Proper Value Chunking

This article explains why using MyBatis foreach for bulk inserts can cause severe performance degradation, analyzes the underlying cost of large prepared statements, and demonstrates how switching to ExecutorType.BATCH or limiting each INSERT to 20‑50 rows dramatically improves insertion speed.

Batch InsertExecutorType.BATCHPerformance
0 likes · 8 min read
Optimizing MyBatis Batch Insert Performance with ExecutorType.BATCH and Proper Value Chunking
Java Architect Essentials
Java Architect Essentials
Nov 5, 2024 · Backend Development

Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Environment Setup, Deployment, and Usage

This article provides a detailed tutorial on the Activiti 7 workflow engine, covering workflow concepts, BPMN modeling, environment configuration, Maven dependencies, database schema creation, deployment methods, process instance management, task handling, and historical data querying, with complete code examples for Java developers.

ActivitiBPMNProcessEngine
0 likes · 38 min read
Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Environment Setup, Deployment, and Usage
Architect
Architect
Nov 5, 2024 · Backend Development

Implementing Transactional Messages with RocketMQ in Microservices

This article explains RocketMQ's transactional message mechanism, covering half‑message concepts, back‑check processes, implementation steps with code examples, and how to achieve reliable event handling and distributed transaction consistency in a microservice architecture.

MicroservicesRocketMQTransactional Messaging
0 likes · 12 min read
Implementing Transactional Messages with RocketMQ in Microservices
Architecture Digest
Architecture Digest
Nov 5, 2024 · Backend Development

Spring Annotation-Based Development and MyBatis Integration Tutorial

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates using @Component, @Scope, @Autowired, @Qualifier, @Value, and @PropertySource for dependency injection and property loading, and shows step‑by‑step integration of MyBatis with Spring, including required dependencies and configuration classes.

Backendannotationsconfiguration
0 likes · 8 min read
Spring Annotation-Based Development and MyBatis Integration Tutorial
Top Architect
Top Architect
Nov 5, 2024 · Backend Development

Spring Boot Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils

This article introduces a comprehensive set of Spring Boot utility classes—including assertion helpers, object and string utilities, collection operations, file and resource handling, reflection tools, and AOP utilities—providing code examples and usage guidelines for Java backend development.

File I/OReflectionUtility Classes
0 likes · 16 min read
Spring Boot Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils
Selected Java Interview Questions
Selected Java Interview Questions
Nov 5, 2024 · Backend Development

Best Practices for Handling Exceptions in Java

This article presents comprehensive Java exception‑handling guidelines, covering why exceptions should not be ignored, how to use global handlers, capture specific exceptions, properly close I/O streams, employ try‑with‑resources, avoid returning in finally blocks, log detailed errors, and design custom exceptions for clean, maintainable backend code.

Exception HandlingSpringBootbest practices
0 likes · 13 min read
Best Practices for Handling Exceptions in Java
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 5, 2024 · Backend Development

When to Place try‑catch Inside or Outside a for Loop in Java

This article explains the functional differences, performance impact, and practical considerations of placing a try‑catch block either outside or inside a Java for loop, illustrating each approach with code examples, execution results, and recommendations based on business requirements.

Exception HandlingPerformancebackend-development
0 likes · 6 min read
When to Place try‑catch Inside or Outside a for Loop in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 5, 2024 · Artificial Intelligence

How to Build a Java Spring AI Alibaba Chat Service with React Frontend

Learn step‑by‑step how to integrate Spring AI Alibaba into a Spring Boot backend, configure API keys, add necessary dependencies, create a CORS‑enabled chat controller, and then develop a matching React frontend that streams AI responses, enabling a complete Java‑to‑React AI chat application.

Chatbotjavaspring-ai
0 likes · 13 min read
How to Build a Java Spring AI Alibaba Chat Service with React Frontend
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Nov 5, 2024 · Backend Development

How CGLIB Powers Faster Java Dynamic Proxies – Inside FastClass and Bytecode Generation

This article explains CGLIB, a high‑performance bytecode library for creating Java dynamic proxies without interfaces, walks through implementation steps and core source‑code analysis, details the FastClass optimization that bypasses reflection, and compares CGLIB with JDK dynamic proxies.

Bytecode GenerationDynamic ProxyFastClass
0 likes · 22 min read
How CGLIB Powers Faster Java Dynamic Proxies – Inside FastClass and Bytecode Generation
Su San Talks Tech
Su San Talks Tech
Nov 5, 2024 · Backend Development

Mastering Sentinel: From Setup to Advanced Flow Control in Spring Cloud

This comprehensive guide walks you through installing Sentinel, configuring its dashboard, integrating it with Spring Cloud microservices, and mastering flow control, circuit breaking, hotspot parameter limiting, system adaptive protection, custom block handling, rule persistence with Nacos, and cluster-wide rate limiting.

NacosSpring Cloudcircuit breaker
0 likes · 37 min read
Mastering Sentinel: From Setup to Advanced Flow Control in Spring Cloud
macrozheng
macrozheng
Nov 4, 2024 · Backend Development

Deploy Spring Boot Apps Instantly with IDEA + Docker: One‑Click Remote Deployment

Learn how to replace manual jar uploads and java -jar commands by configuring IntelliJ IDEA and Docker for one‑click remote deployment of Spring Boot applications, covering prerequisite setup, Docker daemon basics, Dockerfile creation, and step‑by‑step configuration to streamline and automate the deployment process.

DevOpsDockerIntelliJ IDEA
0 likes · 9 min read
Deploy Spring Boot Apps Instantly with IDEA + Docker: One‑Click Remote Deployment
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 4, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains various Spring Boot approaches for formatting dates in API responses, covering frontend JavaScript utilities, Java SimpleDateFormat and DateTimeFormatter, global Jackson settings, annotation‑based formatting, custom converters, ControllerAdvice initBinder, and timestamp output methods.

Date FormattingDateTimeFormatterJackson
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 4, 2024 · Backend Development

Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics

This article provides a comprehensive walkthrough of FastJSON 2.0.31's serialization and deserialization process, covering its core architecture, step‑by‑step execution flow, common pitfalls such as getter misuse and circular references, and practical guidance on annotations and SerializerFeature options.

ASMReflectionannotations
0 likes · 20 min read
Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics
FunTester
FunTester
Nov 4, 2024 · Backend Development

Mastering Java Fault Injection with Byteman: A Hands‑On Guide

Byteman is a dynamic Java fault‑injection tool that lets developers simulate network delays, service crashes, and resource exhaustion without altering source code, offering seamless integration with JUnit/TestNG, detailed rule definitions, and convenient shell scripts for installing, submitting, and removing fault‑injection rules.

BytemanFault InjectionJVM
0 likes · 12 min read
Mastering Java Fault Injection with Byteman: A Hands‑On Guide
Top Architect
Top Architect
Nov 3, 2024 · Backend Development

Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how to refactor messy controllers into clean, maintainable code using @Valid for input validation and a centralized exception handler, and highlights best‑practice guidelines for backend development.

Controller Designbackend-developmentjava
0 likes · 11 min read
Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling
Java Tech Enthusiast
Java Tech Enthusiast
Nov 3, 2024 · Backend Development

Using @Service to Replace @Controller in Spring Boot

In Spring Boot, a class annotated with @Service can act as a web controller if it is discovered by component scanning and carries @RequestMapping (or method‑level mapping) annotations, allowing HTTP requests to be handled just like a traditional @Controller‑annotated bean.

ControllerDependencyInjectionService
0 likes · 7 min read
Using @Service to Replace @Controller in Spring Boot
Architecture Digest
Architecture Digest
Nov 3, 2024 · Backend Development

Using Easy-Query ORM for Strongly Typed OLTP and OLAP Queries in Java

This article introduces Easy-Query, a Java ORM that offers strong‑typed OLTP and OLAP query capabilities, demonstrates how to define entity classes with many‑to‑many and one‑to‑one relationships, and provides multiple code examples for complex queries, DTO generation, and automatic inclusion of related data.

Easy-QueryOLAPOLTP
0 likes · 11 min read
Using Easy-Query ORM for Strongly Typed OLTP and OLAP Queries in Java
Su San Talks Tech
Su San Talks Tech
Nov 3, 2024 · Backend Development

Mastering Java Locks: From Optimistic to Biased – A Complete Guide

This article offers a comprehensive overview of Java's lock mechanisms, detailing each lock type, its underlying principle, typical use cases, differences between synchronized and Lock, and practical code examples for implementing read‑write locks and optimizing concurrency.

LocksSynchronizationconcurrency
0 likes · 19 min read
Mastering Java Locks: From Optimistic to Biased – A Complete Guide
Top Architect
Top Architect
Nov 2, 2024 · Backend Development

Optimizing MyBatis-Plus Batch Insert Performance with rewriteBatchedStatements and Multithreading

This article explains how to dramatically speed up MyBatis-Plus batch inserts by enabling the rewriteBatchedStatements JDBC property, creating custom batch insert/update methods, and applying multithreading, providing code examples, performance test results, and practical recommendations for handling large data synchronizations.

Batch InsertPerformance Optimizationdatabase
0 likes · 15 min read
Optimizing MyBatis-Plus Batch Insert Performance with rewriteBatchedStatements and Multithreading
Top Architect
Top Architect
Nov 2, 2024 · Backend Development

Optimizing Excel Export with EasyExcel: Performance Improvements and Merged‑Cell Strategies

This article demonstrates how to boost performance when exporting large datasets to Excel using EasyExcel, covering single‑batch, paginated, and concurrent writes, and explains multiple approaches—including annotations and custom WriteHandlers—to efficiently create merged cells in the generated spreadsheets.

Cell Mergingconcurrencyeasyexcel
0 likes · 18 min read
Optimizing Excel Export with EasyExcel: Performance Improvements and Merged‑Cell Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Nov 2, 2024 · Backend Development

Comprehensive Guide to Using Ctrip’s Open‑Source Apollo Distributed Configuration Center

This article provides an in‑depth tutorial on Apollo, Ctrip’s open‑source distributed configuration center, covering its concepts, features, four‑dimensional model, client architecture, deployment steps, SpringBoot integration, Kubernetes deployment, and practical testing scenarios for real‑time configuration updates.

ApolloConfiguration ManagementKubernetes
0 likes · 22 min read
Comprehensive Guide to Using Ctrip’s Open‑Source Apollo Distributed Configuration Center
macrozheng
macrozheng
Nov 2, 2024 · Backend Development

Is Hutool Worth Using? A Deep Dive into Java’s Popular Utility Library

This article examines the popular Chinese Java utility library Hutool, discussing its features, recent updates, pros and cons, and provides practical code examples for integration, covering dependency setup, type conversion, email, ID generation, HTTP requests, caching, encryption, threading, and more.

Code ExamplesUtility Librarybackend-development
0 likes · 18 min read
Is Hutool Worth Using? A Deep Dive into Java’s Popular Utility Library
21CTO
21CTO
Nov 1, 2024 · Information Security

Google Launches PipelineDP4J: Open-Source Java Library for Differential Privacy

Google has open‑sourced PipelineDP4J, a Java library that brings large‑scale differential privacy to developers, enabling privacy‑preserving data analysis across billions of devices while lowering the barrier for Java programmers and introducing tools for auditing privacy guarantees.

GoogleOpen-sourcedifferential privacy
0 likes · 3 min read
Google Launches PipelineDP4J: Open-Source Java Library for Differential Privacy
Architect
Architect
Nov 1, 2024 · Backend Development

Designing and Implementing a Workflow Approval System with Activiti

This article explains how to design, configure, and code a multi‑level leave‑approval workflow using the Activiti BPM engine, covering process diagram creation, deployment, task handling, exclusive gateways, and database schema while providing complete Java examples and best‑practice recommendations.

ActivitiBPMNProcessEngine
0 likes · 25 min read
Designing and Implementing a Workflow Approval System with Activiti
Top Architect
Top Architect
Nov 1, 2024 · Backend Development

Using Spring Transaction Hooks with TransactionSynchronizationManager for Asynchronous Kafka Messaging

The article explains how to leverage Spring's TransactionSynchronizationManager to detect active transactions and register synchronization callbacks that asynchronously send Kafka messages after a transaction commits, ensuring reliable fund‑flow archiving in payment systems while avoiding thread‑switch issues.

Kafkajavaspring
0 likes · 11 min read
Using Spring Transaction Hooks with TransactionSynchronizationManager for Asynchronous Kafka Messaging
Architecture Digest
Architecture Digest
Nov 1, 2024 · Backend Development

Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling

Spring WebClient, the reactive replacement for the deprecated RestTemplate in Spring 5+, offers non‑blocking I/O, functional style, streaming support, and improved error handling; this article explains its benefits, demonstrates synchronous and asynchronous request patterns, timeout configuration, and comprehensive error processing with code examples.

ErrorHandlingHTTPjava
0 likes · 12 min read
Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling
Lobster Programming
Lobster Programming
Nov 1, 2024 · Backend Development

How to Parse PDFs and Extract Metadata with Apache Tika and Spring Boot

This guide explains Apache Tika's document parsing capabilities, shows how to download and run the Tika app, demonstrates extracting text and metadata from a PDF, and provides step‑by‑step instructions for integrating Tika into a Spring Boot project with full code examples.

Apache TikaDocument ProcessingMetadata Extraction
0 likes · 7 min read
How to Parse PDFs and Extract Metadata with Apache Tika and Spring Boot
Java Architect Essentials
Java Architect Essentials
Oct 31, 2024 · Backend Development

How to Read Excel, Word, PDF, and Text Files in Java

This article explains how to use Java libraries such as Apache POI, PDFBox, and EasyExcel to read Excel, DOC/DOCX, PDF, and plain text files, providing complete code examples, required Maven dependencies, and step‑by‑step usage instructions for each file type.

Apache POIFile I/OPDF
0 likes · 13 min read
How to Read Excel, Word, PDF, and Text Files in Java
Top Architect
Top Architect
Oct 31, 2024 · Backend Development

Using Java 8 Stream API for POJO Collection Processing

This article introduces Java 8 Stream API, demonstrates filtering, mapping, sorting, collecting, and parallel streams with POJO examples, including code snippets, performance tips, and links to related resources, while also containing promotional messages for ChatGPT services.

CollectionsJava 8Parallel Stream
0 likes · 11 min read
Using Java 8 Stream API for POJO Collection Processing
G7 EasyFlow Tech Circle
G7 EasyFlow Tech Circle
Oct 31, 2024 · Backend Development

Mastering Zero‑Downtime Deployments with Spring Boot Microservices

This article explains how to achieve lossless releases for Spring Boot microservices by deregistering old instances, handling shutdown hooks, configuring graceful shutdown in Spring Boot 2.3+, and integrating custom interceptors for various containers and registration centers.

Graceful ShutdownMicroservicesZero Downtime
0 likes · 15 min read
Mastering Zero‑Downtime Deployments with Spring Boot Microservices
Code Ape Tech Column
Code Ape Tech Column
Oct 31, 2024 · Backend Development

Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide

This article explains why RestTemplate is deprecated in Spring Framework 5+, outlines the advantages of the reactive WebClient such as non‑blocking I/O, functional style, streaming and improved error handling, and provides complete Java code examples for creating, configuring, and using WebClient synchronously and asynchronously, including timeout and error management.

ErrorHandlingHTTPjava
0 likes · 13 min read
Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide
JD Tech Talk
JD Tech Talk
Oct 31, 2024 · Backend Development

Transforming Monolithic Order Processing with LiteFlow: A Component‑Based Workflow Blueprint

This article examines the challenges of sprawling order‑processing code in logistics systems and presents a strategic component‑based approach using the open‑source LiteFlow framework, detailing its architecture, execution rules, example XML flow, Java implementations, and key advantages for scalable backend development.

Component ArchitectureLiteFlowWorkflow Engine
0 likes · 10 min read
Transforming Monolithic Order Processing with LiteFlow: A Component‑Based Workflow Blueprint
JD Cloud Developers
JD Cloud Developers
Oct 31, 2024 · Backend Development

Transform Complex Order Processing with LiteFlow’s Component‑Based Workflow Engine

This article examines the challenges of scaling order‑processing logic in logistics systems and presents a component‑oriented solution using the open‑source LiteFlow framework, detailing its strategic “workbench” pattern, tactical component design, execution rules, and practical Java code examples for building flexible, decoupled workflows.

Component ArchitectureLiteFlowWorkflow Engine
0 likes · 11 min read
Transform Complex Order Processing with LiteFlow’s Component‑Based Workflow Engine
FunTester
FunTester
Oct 31, 2024 · Backend Development

Understanding Java ExecutorService: Core Concepts, Thread Pools, and Practical Usage

This article explains how Java's ExecutorService abstracts and simplifies asynchronous task execution, covering core features, thread‑pool configurations, task submission methods, future management, shutdown procedures, rejection policies, and real‑world code examples for network requests, image processing, and background tasks.

AsynchronousExecutorServiceThreadPool
0 likes · 20 min read
Understanding Java ExecutorService: Core Concepts, Thread Pools, and Practical Usage
Java Architect Essentials
Java Architect Essentials
Oct 30, 2024 · Backend Development

Optimizing Excel Export with EasyExcel: Performance, Pagination, Concurrency, and Cell‑Merging Strategies

This article demonstrates how to use EasyExcel to efficiently export large volumes of data to Excel by improving performance through pagination, concurrent queries, and custom cell‑merging strategies, including built‑in annotations and WriteHandler implementations, while providing complete Java code examples.

Cell MergingPerformanceconcurrency
0 likes · 16 min read
Optimizing Excel Export with EasyExcel: Performance, Pagination, Concurrency, and Cell‑Merging Strategies
Architect
Architect
Oct 30, 2024 · Backend Development

How to Build Distributed WebSocket Messaging with Spring, Redis, and Kafka

This article explains how to enable cross‑node WebSocket communication in a distributed Spring application by using a message queue (Redis or Kafka) to broadcast messages, tracking user connections with Redis, and providing a complete step‑by‑step implementation with code samples and configuration details.

Distributed SystemsKafkajava
0 likes · 20 min read
How to Build Distributed WebSocket Messaging with Spring, Redis, and Kafka
Programmer DD
Programmer DD
Oct 30, 2024 · Fundamentals

Boost Your Java Coding Speed with IntelliJ IDEA Live Templates

Learn how to accelerate Java development in IntelliJ IDEA by using Live Templates to auto‑complete code snippets, create custom shortcuts, organize templates with groups, employ parameters, and share templates through import/export, turning repetitive typing into a few keystrokes.

IDE shortcutsIntelliJ IDEALive Templates
0 likes · 5 min read
Boost Your Java Coding Speed with IntelliJ IDEA Live Templates
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2024 · Backend Development

Implementing Short URL Redirection with SpringBoot

This article explains the concept of short‑URL redirection, its benefits, and provides a complete SpringBoot implementation—including database schema, entity, DAO, service, controller, and testing code—to convert long links into short, trackable links and handle redirects.

BackendRedirectSpringBoot
0 likes · 11 min read
Implementing Short URL Redirection with SpringBoot
Java Architecture Stack
Java Architecture Stack
Oct 30, 2024 · Operations

Why ZGC Is Revolutionizing Java Memory Management for Low‑Latency Apps

This article explains ZGC’s ultra‑low pause times, massive heap support, colored pointers, concurrent compaction, and generational optimizations, then shows how these features benefit real‑time analytics, high‑performance servers, and online transaction systems, and provides step‑by‑step instructions for enabling and tuning ZGC in Java.

Garbage CollectorLow latencyMemory Management
0 likes · 9 min read
Why ZGC Is Revolutionizing Java Memory Management for Low‑Latency Apps
Java Architect Essentials
Java Architect Essentials
Oct 29, 2024 · Backend Development

Optimizing Batch Insert Performance with MyBatis-Plus: Configuration, Custom Methods, and Multithreading

This article explains why MyBatis-Plus's saveBatch() can be slow for large data sets, shows how enabling rewriteBatchedStatements in the JDBC URL dramatically speeds up inserts, and demonstrates custom batch insert/update methods and multithreaded execution to further improve performance, complete with code examples and test results.

Batch InsertPerformance Optimizationdatabase
0 likes · 14 min read
Optimizing Batch Insert Performance with MyBatis-Plus: Configuration, Custom Methods, and Multithreading
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 29, 2024 · Backend Development

Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers

This tutorial explains how to design a MySQL table for hot‑search records, generate Java entity and mapper classes using MyBatis Generator, create unique IDs for each entry, and implement scheduled Java crawlers for Douyin and Baidu hot‑search data that persist the results via Spring‑Boot services.

BackendDatabase designMySQL
0 likes · 19 min read
Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers