Tagged articles
5000 articles
Page 24 of 50
Top Architect
Top Architect
Mar 3, 2025 · Backend Development

Generating and Merging PDFs with iTextPdf in a Java SpringBoot Application

This article demonstrates how to use the iTextPdf library in a Java SpringBoot project to create PDF templates, dynamically fill fixed and tabular invoice data, generate separate PDFs, and merge them into a single document, providing complete code examples and configuration details.

iTextPDFjavapdf-generation
0 likes · 14 min read
Generating and Merging PDFs with iTextPdf in a Java SpringBoot Application
Java Tech Enthusiast
Java Tech Enthusiast
Mar 3, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

Because phone numbers are identifiers that can contain symbols and exceed the numeric range of an int, storing them as a String—despite higher memory use—is semantically correct, avoids overflow, preserves formatting, and benefits from JVM string pooling, making String the preferred type in most Java applications.

Data TypesJVMPerformance
0 likes · 7 min read
Choosing Between int and String for Storing Phone Numbers in Java
Code Ape Tech Column
Code Ape Tech Column
Mar 3, 2025 · Backend Development

Understanding CQRS and Implementing It with Spring Microservices

This article explains the CQRS pattern, its origins, benefits, and challenges, and provides a step‑by‑step guide with Java code examples on how to implement CQRS, event sourcing, and asynchronous communication using Spring Boot, Axon, and Kafka in microservice architectures.

CQRSEvent Sourcingjava
0 likes · 12 min read
Understanding CQRS and Implementing It with Spring Microservices
Su San Talks Tech
Su San Talks Tech
Mar 3, 2025 · Backend Development

Mastering Java Thread Pools: Architecture, Parameters, and Customization

This article provides a comprehensive guide to Java thread pools, explaining their purpose, construction parameters, execution flow, worker reuse, task retrieval with timeout, lifecycle states, shutdown mechanisms, monitoring methods, and best practices for customizing pools in real-world projects.

ExecutorServicePerformanceThreadPool
0 likes · 17 min read
Mastering Java Thread Pools: Architecture, Parameters, and Customization
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Mar 3, 2025 · Backend Development

Implement Custom Annotations in Spring Boot for Logging, Security & Caching

This guide explains common scenarios for using custom Java annotations—such as logging, permission control, data validation, and caching—and walks through the step-by-step process of defining an annotation, applying it in Spring services, handling it with an AOP aspect, and testing the implementation in a Spring Boot application.

Custom Annotationsaopjava
0 likes · 7 min read
Implement Custom Annotations in Spring Boot for Logging, Security & Caching
Java Tech Enthusiast
Java Tech Enthusiast
Mar 2, 2025 · Backend Development

Simplify File Downloads in SpringBoot with a Single @Download Annotation

The Concept‑Download library lets SpringBoot developers replace verbose download code with a single @Download annotation that automatically handles classpath resources, local files, HTTP URLs, custom objects, compression and reactive streaming, simplifying batch and QR‑code ZIP exports.

FileDownloadSpringBootWebFlux
0 likes · 8 min read
Simplify File Downloads in SpringBoot with a Single @Download Annotation
Code Ape Tech Column
Code Ape Tech Column
Mar 2, 2025 · Fundamentals

Advanced IntelliJ IDEA Debugging Techniques: Evaluate and Log, Field, Exception, and Method Breakpoints

This article introduces several advanced IntelliJ IDEA debugging techniques—including Evaluate and Log at breakpoints, field breakpoints, exception breakpoints, and method breakpoints—providing step‑by‑step instructions, code examples, and screenshots to help Java developers debug more efficiently without cluttering source code.

IDE TipsIntelliJ IDEAbreakpoints
0 likes · 6 min read
Advanced IntelliJ IDEA Debugging Techniques: Evaluate and Log, Field, Exception, and Method Breakpoints
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 2, 2025 · Backend Development

Master Java Stream Tricks: Null Handling, Infinite Streams & Collectors

This article showcases a collection of over 100 practical Spring Boot 3 examples, focusing on modern Java Stream techniques such as Stream.ofNullable for null safety, Stream.iterate for infinite sequences, advanced collectors like collectingAndThen, takeWhile/dropWhile, teeing, and summarizingLong, each illustrated with concise code snippets.

Stream APIjavaspring-boot
0 likes · 7 min read
Master Java Stream Tricks: Null Handling, Infinite Streams & Collectors
Java One
Java One
Mar 1, 2025 · Fundamentals

Master Java IO Streams: Byte, Character, and Object Streams Explained

This article provides a comprehensive guide to Java I/O streams, covering the distinction between node (low‑level) and processing (high‑level) streams, byte versus character streams, their superclasses, common implementations, buffering techniques, object serialization, and practical code examples for reading and writing data.

ByteStreamCharacterStreamObjectStream
0 likes · 16 min read
Master Java IO Streams: Byte, Character, and Object Streams Explained
FunTester
FunTester
Mar 1, 2025 · Operations

Implementing Rump-Up Functionality for Performance Testing

The article explains the concept of Rump‑Up in performance testing, details the steps to modify multithreaded task and executor classes, and provides Java code examples that enable gradual load increase and controlled data collection for more accurate bottleneck identification.

Load TestingRump-Upjava
0 likes · 6 min read
Implementing Rump-Up Functionality for Performance Testing
Java Web Project
Java Web Project
Feb 27, 2025 · Backend Development

Why Process Orchestration Is Critical for Scalable Backend Systems

The article explains how excessive if‑else logic in multi‑business middle‑platforms leads to maintenance nightmares and demonstrates, with concrete code and a real open‑source project, how a flow engine and plugin‑extension framework provide clean isolation, extensibility, and reliable execution of business processes.

Backend ArchitectureMicroservicesflow engine
0 likes · 8 min read
Why Process Orchestration Is Critical for Scalable Backend Systems
Top Architect
Top Architect
Feb 27, 2025 · Backend Development

Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code

This article examines how Java Stream and Lambda, while powerful for concise data processing, can become cumbersome when misused, and provides practical tips such as proper line breaks, function extraction, careful filter logic, safe Optional handling, and cautious use of parallel streams to keep code readable and maintainable.

Code OptimizationLambdaParallelStream
0 likes · 10 min read
Avoiding the Pitfalls of Java Stream and Lambda: Tips for Clean and Maintainable Code
Selected Java Interview Questions
Selected Java Interview Questions
Feb 27, 2025 · Backend Development

Step-by-Step Guide to Using MybatisX with Spring Boot

This article introduces MybatisX, an IntelliJ IDEA plugin that streamlines MyBatis and MyBatis‑Plus development, and provides a detailed step‑by‑step tutorial on setting up a Spring Boot project, configuring the database, generating code, and writing a simple controller using MyBatis‑Plus.

BackendMyBatisXMybatis-Plus
0 likes · 5 min read
Step-by-Step Guide to Using MybatisX with Spring Boot
Architecture Digest
Architecture Digest
Feb 27, 2025 · Backend Development

Implementing a Flow Engine and Plugin Extension for Business Isolation and Extensibility in Backend Systems

The article explains why excessive conditional logic harms maintainability, introduces a flow‑engine and plugin‑extension architecture to isolate business code, demonstrates configuration and execution with Java examples from the open‑source MemberClub project, and lists the surrounding tech stack for practical learning.

Backend ArchitectureSpringBootflow engine
0 likes · 7 min read
Implementing a Flow Engine and Plugin Extension for Business Isolation and Extensibility in Backend Systems
Java Architect Essentials
Java Architect Essentials
Feb 27, 2025 · Backend Development

How to Enforce Login Attempt Limits with Spring Boot, Redis, and Lua Scripts

This article walks through the problem of locking out users after multiple failed login attempts, explains why IP‑based locking with Redis and Lua scripts is effective, and provides a complete Spring Boot implementation—including front‑end HTML, custom annotations, AOP aspect, Redis configuration, and sample controller code—to enforce a configurable login‑attempt limit.

BackendLogin Rate LimitingLua
0 likes · 18 min read
How to Enforce Login Attempt Limits with Spring Boot, Redis, and Lua Scripts
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 27, 2025 · Backend Development

Understanding and Using Spring's @Import Annotation

This article explains the purpose, usage patterns, and internal mechanics of Spring's @Import annotation, including importing regular classes, ImportSelector implementations, and ImportBeanDefinitionRegistrar implementations, with complete code examples and a discussion of how Spring processes these imports at runtime.

BackendDependencyInjectionImport
0 likes · 9 min read
Understanding and Using Spring's @Import Annotation
Sohu Tech Products
Sohu Tech Products
Feb 26, 2025 · Backend Development

Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus

The article demonstrates how to refactor a large PHP API suite into a Java Spring MVC application by creating a generic AggregateController that, through model‑name mapping, reflection‑based repository registration and a thread‑safe MappingKit, provides CRUD endpoints for any table, collapsing hundreds of endpoints into just two controllers for client and admin.

CRUDGeneric ControllerMyBatisPlus
0 likes · 12 min read
Implementing a Generic Aggregate CRUD Controller with Spring MVC and MyBatisPlus
Architecture Digest
Architecture Digest
Feb 26, 2025 · Artificial Intelligence

DeepSeek4j 1.4: A Java Integration Framework for DeepSeek AI Models

DeepSeek4j 1.4 introduces a Java‑native framework that fully preserves DeepSeek's chain‑of‑thought and billing features, adds reactive streaming support, and provides a Spring Boot starter for effortless integration, accompanied by quick‑start code, configuration examples, and a built‑in debugging UI.

AIAPIDeepSeek
0 likes · 5 min read
DeepSeek4j 1.4: A Java Integration Framework for DeepSeek AI Models
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 26, 2025 · Backend Development

Design and Implementation of a Non‑Sequential Business Transaction ID Generator

This article explains the design and Java Spring‑Boot implementation of a business transaction ID generator that combines business type, date, random digits and a non‑sequential long integer, discusses database schema, concurrency handling, performance testing, and potential duplication pitfalls.

ID generationjavasequence service
0 likes · 8 min read
Design and Implementation of a Non‑Sequential Business Transaction ID Generator
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 26, 2025 · Fundamentals

Why Did Upgrading to JDK 11 Spike Direct Memory Usage? A Deep Dive

This article records and analyzes how upgrading an application to JDK 11 changed the Direct Memory management strategy, causing a sharp increase in memory‑utilization alerts, and demonstrates step‑by‑step troubleshooting, code inspection, and JVM parameter tuning to restore normal memory usage.

DirectMemoryJDK11MemoryManagement
0 likes · 16 min read
Why Did Upgrading to JDK 11 Spike Direct Memory Usage? A Deep Dive
Java Architect Essentials
Java Architect Essentials
Feb 25, 2025 · Backend Development

IntelliJ IDEA Usage Tips and Advanced Features

This article provides a comprehensive guide to IntelliJ IDEA, covering basic operations, advanced shortcuts, Maven integration, debugging, hot‑reload settings, and various UI customizations, offering developers practical tips and code snippets to boost Java development efficiency.

HotReloadIDEAIntelliJ
0 likes · 6 min read
IntelliJ IDEA Usage Tips and Advanced Features
Top Architect
Top Architect
Feb 25, 2025 · Backend Development

Replacing Tomcat with Undertow in SpringBoot: Configuration, Features, and Performance Comparison

This article explains how SpringBoot's default Tomcat container can be swapped for the high‑performance Undertow server, details Undertow's characteristics, provides Maven configuration steps with code snippets, and presents benchmark results showing superior throughput and lower memory usage for high‑concurrency applications.

Tomcatjavaundertow
0 likes · 8 min read
Replacing Tomcat with Undertow in SpringBoot: Configuration, Features, and Performance Comparison
Selected Java Interview Questions
Selected Java Interview Questions
Feb 25, 2025 · Backend Development

Integrating URule Rule Engine with Spring Boot: Installation, Configuration, and Practical Examples

This article introduces the URule rule engine, explains its core concepts, shows how to install and configure it in a Spring Boot project, demonstrates library definitions, rule set creation (wizard and script modes), decision table usage, and provides real‑world scenario code examples for backend developers.

BackendDecision Tableconfiguration
0 likes · 15 min read
Integrating URule Rule Engine with Spring Boot: Installation, Configuration, and Practical Examples
Java Web Project
Java Web Project
Feb 25, 2025 · Artificial Intelligence

How DeepSeek4j 1.4 Solves Spring AI’s Chain‑of‑Thought and Streaming Gaps

The article explains why existing Java AI frameworks struggle with DeepSeek R1’s chain‑of‑thought and streaming features, introduces DeepSeek4j 1.4 as a targeted solution, details its core capabilities, and provides a step‑by‑step guide to integrate it with Spring Boot and Project Reactor.

AI integrationChain-of-ThoughtDeepSeek
0 likes · 5 min read
How DeepSeek4j 1.4 Solves Spring AI’s Chain‑of‑Thought and Streaming Gaps
Top Architect
Top Architect
Feb 25, 2025 · Backend Development

Understanding Tomcat Configuration and Thread Pool Parameters in Spring Boot 2.7.10

This article explains the default Tomcat settings in Spring Boot 2.7.10, details core parameters such as connection queue length, max connections, thread pool sizes, keep-alive and timeout options, and demonstrates how to inspect and test these configurations with code examples and command-line tools.

Tomcatbackend configurationjava
0 likes · 16 min read
Understanding Tomcat Configuration and Thread Pool Parameters in Spring Boot 2.7.10
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 25, 2025 · Backend Development

Build a Code Generator from Scratch: Boost Development Efficiency 10×

This article walks through creating a fully automated Spring Boot and MyBatis code generator using Freemarker templates, detailing each step from extracting table metadata to generating DAO, service, controller, and entity classes, and shows how a single-table CRUD can be produced in seconds.

Freemarkerbackend-developmentcode-generation
0 likes · 25 min read
Build a Code Generator from Scratch: Boost Development Efficiency 10×
Top Architecture Tech Stack
Top Architecture Tech Stack
Feb 25, 2025 · Backend Development

Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations

This tutorial explains how to implement dynamic master‑slave MySQL switching in a SpringBoot 3.0.4 project using AOP and a custom @DataSource annotation, covering configuration, enum definitions, utility classes, aspect handling, and usage examples for both single and multiple data sources, including Oracle integration.

MySQLSpringBootaop
0 likes · 15 min read
Implementing Dynamic MySQL Master‑Slave Switching in SpringBoot Using AOP and Custom Annotations
Cognitive Technology Team
Cognitive Technology Team
Feb 24, 2025 · Backend Development

Resolving Java Class File Version Mismatch Errors

This article explains why the "class file has wrong version" error occurs when Java compilation and runtime versions differ, shows the mapping between Java releases and class file versions, demonstrates the error with sample code, and provides step‑by‑step solutions including version checks, Maven configuration, IDE settings, and best‑practice recommendations.

IntelliJVersion Compatibilitybackend-development
0 likes · 5 min read
Resolving Java Class File Version Mismatch Errors
Code Ape Tech Column
Code Ape Tech Column
Feb 24, 2025 · Backend Development

Using Java 8 Functional Interfaces to Refactor Data Validation and Reduce Duplicate Code

This article demonstrates how Java 8’s functional interfaces, such as Function and SFunction, can be leveraged to refactor repetitive data validation logic, introducing generic methods like ensureColumnValueValid and validateColumnValueMatchesExpected that improve code reuse, readability, and maintainability in backend services.

Lambdadata validationfunctional programming
0 likes · 14 min read
Using Java 8 Functional Interfaces to Refactor Data Validation and Reduce Duplicate Code
Architect's Journey
Architect's Journey
Feb 24, 2025 · Backend Development

Why I Stopped Using Spring’s @Autowired and Adopted Explicit Dependency Management

The article explains how automatic @Autowired injection can tightly couple domain models to the Spring container, hide dependencies, hinder testing, create circular‑dependency risks, and violate clean architecture, then demonstrates an explicit‑dependency approach with a custom SpringContext utility, compares both methods, and offers practical guidelines for layered design and testing.

AutowiredDDDExplicit Dependencies
0 likes · 7 min read
Why I Stopped Using Spring’s @Autowired and Adopted Explicit Dependency Management
Architect's Guide
Architect's Guide
Feb 24, 2025 · Backend Development

Using Java Optional to Prevent NullPointerException

This article introduces Java 8's Optional class, explains its creation methods and common operations such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and shows practical usage scenarios and best‑practice recommendations for handling null values in backend code.

Backendfunctional programmingjava
0 likes · 15 min read
Using Java Optional to Prevent NullPointerException
FunTester
FunTester
Feb 24, 2025 · Cloud Native

Master Kubernetes with Fabric8 Java Client: Quick Guide & Advanced Tips

This article introduces the Fabric8 KubernetesClient for Java, explains why it outperforms the official client, shows how to add the Maven dependency, and provides step‑by‑step code examples for listing, creating, deleting, and watching Pods, as well as advanced operations on ConfigMaps, Deployments, and custom resources, illustrating real‑world use cases such as log collection, self‑healing, and dynamic scaling.

Cloud NativeDevOpsFabric8
0 likes · 8 min read
Master Kubernetes with Fabric8 Java Client: Quick Guide & Advanced Tips
JavaEdge
JavaEdge
Feb 23, 2025 · Artificial Intelligence

How Java Developers Can Build Neural Networks with PyTorch: A Step‑by‑Step Guide

This tutorial walks Java developers through the complete workflow of building, training, and evaluating a neural network in PyTorch, covering network definition, data iteration, forward and backward passes, loss calculation, and parameter updates with detailed code examples and Java‑centric analogies.

BackpropagationDeep LearningNeural Network
0 likes · 12 min read
How Java Developers Can Build Neural Networks with PyTorch: A Step‑by‑Step Guide
Java Web Project
Java Web Project
Feb 23, 2025 · Artificial Intelligence

Build Your First AI Chatbot with Spring Boot and DeepSeek LLM

This guide walks you through creating a Spring Boot project, configuring DeepSeek's large language model via SiliconFlow, setting up OpenAI‑compatible parameters, and implementing a REST controller that returns weather forecasts using the model, complete with step‑by‑step code snippets, configuration files, and deployment instructions.

AIChatbotDeepSeek
0 likes · 7 min read
Build Your First AI Chatbot with Spring Boot and DeepSeek LLM
FunTester
FunTester
Feb 23, 2025 · Operations

How to Efficiently Process Test Data in a Multithreaded Performance Engine

This article explains two design approaches for handling test data in a multithreaded performance testing engine, compares their trade‑offs, and provides complete Java code for data aggregation, statistical analysis, TPS calculation, and refactoring the tool for cleaner extensibility.

BackendData StatisticsPerformance Testing
0 likes · 14 min read
How to Efficiently Process Test Data in a Multithreaded Performance Engine
Java Architect Essentials
Java Architect Essentials
Feb 23, 2025 · Backend Development

Designing a Modular Spring Boot Backend Management Project (XiaoLe)

This article explains how to design a modular Spring Boot backend management system called XiaoLe, covering essential design principles such as single responsibility, high cohesion, low coupling, reusability, clear interfaces, layered architecture, and testability, and provides detailed Maven module structures and POM configurations for each component.

backend-developmentdesign principlesjava
0 likes · 14 min read
Designing a Modular Spring Boot Backend Management Project (XiaoLe)
Top Architect
Top Architect
Feb 21, 2025 · Artificial Intelligence

DeepSeek4j 1.4: Java Integration Framework for DeepSeek with Full Chain‑of‑Thought and Streaming Support

The article introduces DeepSeek4j 1.4, a Java‑based framework that overcomes Spring AI’s limitations by fully preserving DeepSeek’s chain‑of‑thought and billing features, adding reactive streaming, providing Spring Boot starter integration, and offering quick‑start code samples and configuration guidance.

AIChain-of-ThoughtDeepSeek
0 likes · 8 min read
DeepSeek4j 1.4: Java Integration Framework for DeepSeek with Full Chain‑of‑Thought and Streaming Support
FunTester
FunTester
Feb 21, 2025 · Backend Development

FastClasspathScanner: High-Performance Java Classpath Scanning Library Overview

FastClasspathScanner (formerly ClassGraph) is a high-performance Java library that dramatically speeds up classpath scanning by using multithreaded processing, smart caching, and efficient handling of complex hierarchies, making reflection-heavy frameworks, plugin systems, web applications, and code-analysis tools faster and more memory-efficient.

Classpath ScanningFastClasspathScannerPerformance
0 likes · 9 min read
FastClasspathScanner: High-Performance Java Classpath Scanning Library Overview
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 21, 2025 · Backend Development

Master Spring Boot 3 Config: @ConfigurationProperties, Constructor Binding & Default Values

This article introduces a comprehensive Spring Boot 3 case collection and provides a detailed guide on using @ConfigurationProperties, constructor binding, @DefaultValue, and record types for type‑safe configuration, including examples of nested properties, collections, and default values, while promising ongoing updates and free source code for subscribers.

ConfigurationPropertiesDefaultValueconstructorbinding
0 likes · 9 min read
Master Spring Boot 3 Config: @ConfigurationProperties, Constructor Binding & Default Values
Selected Java Interview Questions
Selected Java Interview Questions
Feb 20, 2025 · Backend Development

Loading External JARs into Spring Boot: Four Practical Approaches

This article explains how to make custom classes visible to Spring Boot by loading external JAR files through four methods—extending the classpath, using Spring Boot's loader.path parameter, creating a custom ClassLoader, and modifying the boot classpath—while also showing how to configure scanning and packaging details.

backend-developmentclassloaderjar-loading
0 likes · 8 min read
Loading External JARs into Spring Boot: Four Practical Approaches
macrozheng
macrozheng
Feb 20, 2025 · Backend Development

Mastering Java 8 Streams: Clean Code Tips and Common Pitfalls

This article explores how Java 8 streams and lambda expressions can make code shorter and more elegant, while highlighting common mistakes such as poor formatting, oversized functions, misuse of Optional, and over‑reliance on parallel streams, and offers practical guidelines for writing readable, maintainable backend code.

BackendLambdaStreams
0 likes · 13 min read
Mastering Java 8 Streams: Clean Code Tips and Common Pitfalls
Top Architecture Tech Stack
Top Architecture Tech Stack
Feb 20, 2025 · Backend Development

Implementing the Chain of Responsibility Pattern for Product Validation and Workflow Approval in Java

This article explains the Chain of Responsibility design pattern, demonstrates its application in multi‑step product validation and expense‑approval workflows with detailed Java code, configuration handling, Spring bean injection, and discusses its advantages and drawbacks.

Chain of Responsibilitydesign patternjava
0 likes · 21 min read
Implementing the Chain of Responsibility Pattern for Product Validation and Workflow Approval in Java
Cognitive Technology Team
Cognitive Technology Team
Feb 20, 2025 · Backend Development

Understanding the Java Memory Model and Diagnosing OutOfMemoryError

This article explains the Java memory model, outlines common OutOfMemoryError types, and provides a step‑by‑step guide for diagnosing, fixing, and preventing memory‑related issues in large‑scale Java applications, including heap, metaspace, and stack analysis, JVM flag tuning, and best‑practice recommendations for resource handling and monitoring.

JVMMemory ManagementOutOfMemoryError
0 likes · 8 min read
Understanding the Java Memory Model and Diagnosing OutOfMemoryError
FunTester
FunTester
Feb 20, 2025 · Backend Development

How to Build a Custom Multithreaded Test Engine in Java

This article walks through designing and implementing a Java multithreaded execution class for performance testing, covering thread‑pool creation, task coordination with CountDownLatch, start/stop control, and a complete demo that runs concurrent tasks with timed logging.

CountDownLatchPerformance TestingThreadPoolExecutor
0 likes · 10 min read
How to Build a Custom Multithreaded Test Engine in Java
Lobster Programming
Lobster Programming
Feb 20, 2025 · Backend Development

Will a JVM Exit When a Thread Runs Out of Memory? Deep Dive with Code

This article investigates whether the JVM terminates when a thread encounters an OutOfMemoryError, demonstrating through Spring Boot controllers and multithreaded examples how main and child threads, daemon settings, and explicit OOM handling affect JVM shutdown behavior.

JVMOutOfMemoryErrorThread
0 likes · 6 min read
Will a JVM Exit When a Thread Runs Out of Memory? Deep Dive with Code
Java Architect Essentials
Java Architect Essentials
Feb 19, 2025 · Artificial Intelligence

Integrating DeepSeek AI Assistant into IntelliJ IDEA for Java Development

This guide walks Java developers through preparing the environment, installing the CodeGPT plugin, configuring DeepSeek API keys, and using the AI-powered code assistant within IntelliJ IDEA, including code completion, explanation, and question‑answer features, with usage statistics and sample code.

AI code assistantCodeGPTDeepSeek
0 likes · 9 min read
Integrating DeepSeek AI Assistant into IntelliJ IDEA for Java Development
Sohu Tech Products
Sohu Tech Products
Feb 19, 2025 · Backend Development

Using Apache Commons Pool for Object Pooling and Jedis Connection Pool in Java

The article explains how to use Apache Commons Pool to create reusable object pools in Java—showing Maven setup, a custom PooledObjectFactory, pool configuration, borrowing and returning objects, and demonstrates a Redis Jedis connection pool built on the same framework while detailing the pool’s initialization, borrowing, and return mechanisms.

Apache Commons PoolConnection PoolJedis
0 likes · 8 min read
Using Apache Commons Pool for Object Pooling and Jedis Connection Pool in Java
JD Tech
JD Tech
Feb 19, 2025 · Backend Development

Understanding the Design and Implementation of Caffeine Cache

This article provides a comprehensive walkthrough of Caffeine cache's architecture, explaining its fixed-size eviction policy, underlying data structures such as ConcurrentHashMap, MPSC buffers, Count‑Min Sketch frequency tracking, and the dynamic window‑probation‑protected zones, while detailing key methods like put, getIfPresent, and maintenance.

CacheCaffeineCount-Min Sketch
0 likes · 71 min read
Understanding the Design and Implementation of Caffeine Cache
Java Architecture Diary
Java Architecture Diary
Feb 19, 2025 · Information Security

How Spring Security 6.4’s One-Time Token Login Enhances Security and UX

Spring Security 6.4 introduces One-Time Token Login, allowing users to authenticate via a magic link sent by email instead of passwords; the article explains its core concepts, token lifecycle, essential components, and provides step‑by‑step code examples for configuring and implementing this secure, user‑friendly authentication method.

AuthenticationMagic Linkjava
0 likes · 5 min read
How Spring Security 6.4’s One-Time Token Login Enhances Security and UX
Ma Wei Says
Ma Wei Says
Feb 19, 2025 · Fundamentals

Safe List Operations: Remove, SubList Casting, and Efficient Traversal in Java

This article explains why modifying a List inside a foreach loop causes ConcurrentModificationException, shows the proper ways to remove elements using iterators or lambda expressions, warns against casting subList to ArrayList, clarifies correct toArray and Arrays.asList usage, compares LinkedList and ArrayList performance, and recommends the most efficient traversal techniques.

CollectionsIteratorList
0 likes · 9 min read
Safe List Operations: Remove, SubList Casting, and Efficient Traversal in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 19, 2025 · Backend Development

9 Powerful Ways to Build Spring Boot 3 APIs – Full Code Collection

This guide showcases nine distinct Spring Boot 3 API development techniques—from classic @RestController annotations to functional RouterFunction beans and custom Actuator endpoints—providing complete code samples, configuration details, and a promise of ongoing updates with a downloadable PDF of over 90 practical cases.

API developmentActuatorSpring MVC
0 likes · 8 min read
9 Powerful Ways to Build Spring Boot 3 APIs – Full Code Collection
Top Architect
Top Architect
Feb 18, 2025 · Backend Development

Introducing LiteFlow: A Lightweight Rule Engine for Java Backend Development

This article introduces LiteFlow, a lightweight yet powerful Java rule engine, explains its architecture, component types, EL rule file syntax, configuration options, and demonstrates a real‑world e‑commerce workflow example, providing code snippets and deployment tips for backend developers.

LiteFlowbackend-developmentjava
0 likes · 11 min read
Introducing LiteFlow: A Lightweight Rule Engine for Java Backend Development
Selected Java Interview Questions
Selected Java Interview Questions
Feb 18, 2025 · Backend Development

Why Java synchronized Is Insufficient in Distributed Systems and Alternative Lock Solutions

The article explains how Java's synchronized keyword works only within a single JVM, why it fails to provide mutual exclusion across multiple processes in distributed systems, and presents alternative distributed locking mechanisms such as database locks and Redis-based locks with code examples.

concurrencydatabase lockdistributed-lock
0 likes · 8 min read
Why Java synchronized Is Insufficient in Distributed Systems and Alternative Lock Solutions
macrozheng
macrozheng
Feb 18, 2025 · Backend Development

Mastering LiteFlow: A Lightweight Rule Engine for Spring Boot Workflows

This article introduces LiteFlow, a lightweight yet powerful rule engine for Spring Boot, explains its architecture, supported rule formats, core components, EL rule files, data context handling, configuration options, and demonstrates a real‑world e‑commerce order processing workflow with code examples.

LiteFlowjava
0 likes · 10 min read
Mastering LiteFlow: A Lightweight Rule Engine for Spring Boot Workflows
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 18, 2025 · Backend Development

Why Spring MVC Auto‑Binds Header Data to Your DTO – The Hidden Mechanism Explained

This article explores why Spring MVC automatically binds HTTP header values to controller method parameters, demonstrates the issue with a sample Spring Boot 3.4.0 project, analyzes the underlying HandlerMethodArgumentResolver and ServletModelAttributeMethodProcessor code, and provides two practical solutions to prevent unwanted header binding.

HandlerMethodArgumentResolverHeader BindingSpring MVC
0 likes · 8 min read
Why Spring MVC Auto‑Binds Header Data to Your DTO – The Hidden Mechanism Explained
Java Tech Enthusiast
Java Tech Enthusiast
Feb 17, 2025 · Fundamentals

Why a Java Volatile Example May Terminate Without Volatile

The program that loops on a non‑volatile boolean flag sometimes terminates because changing the counter to a volatile int or to an Integer causes the JVM to emit hidden memory barriers on reference writes, making the flag visible, but this behavior is JVM‑specific and not a reliable substitute for declaring the flag volatile.

HotSpotJVMMemory Model
0 likes · 11 min read
Why a Java Volatile Example May Terminate Without Volatile
Su San Talks Tech
Su San Talks Tech
Feb 17, 2025 · Fundamentals

Why Changing int to Integer Lets a Non‑volatile Java Loop Terminate

This article explores a classic Java concurrency puzzle where a non‑volatile flag causes an infinite loop, examines how modifying the loop variable from int to Integer or adding volatile affects termination, and explains the underlying JVM memory‑barrier behavior revealed by DeepSeek.

HotSpotJMMjava
0 likes · 11 min read
Why Changing int to Integer Lets a Non‑volatile Java Loop Terminate
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 16, 2025 · Backend Development

Unlock Remote Server Access in Spring Boot 3 with JSch: Read Files & Run Commands

This article introduces the Java JSch library for Spring Boot 3, demonstrating how to read remote files without downloading, execute commands on a remote host, and obtain an interactive shell prompt, complete with Maven dependency setup, code examples, and execution results, while promising ongoing updates to the case collection.

JSchbackend-developmentjava
0 likes · 7 min read
Unlock Remote Server Access in Spring Boot 3 with JSch: Read Files & Run Commands
FunTester
FunTester
Feb 16, 2025 · Operations

Master Byteman: Install, Build, and Configure Java Fault Injection

This guide walks you through downloading Byteman, setting up BYTEMAN_HOME, using Ant or Maven for integration, building from source, configuring the Java agent with detailed options, and leveraging tutorials for effective fault‑injection testing in Java applications.

AntBytemanFault Injection
0 likes · 8 min read
Master Byteman: Install, Build, and Configure Java Fault Injection
Top Architect
Top Architect
Feb 15, 2025 · Information Security

Designing Secure Third‑Party API Authentication with AK/SK, Signatures and Token Mechanisms

The article presents a comprehensive design for securing third‑party API calls by generating unique Access Key/Secret Key pairs, defining permission scopes, implementing signature generation and verification, employing timestamps and nonces to prevent replay attacks, and outlining practical API endpoint specifications and response standards.

access controljava
0 likes · 33 min read
Designing Secure Third‑Party API Authentication with AK/SK, Signatures and Token Mechanisms
Architect's Guide
Architect's Guide
Feb 15, 2025 · Backend Development

Using @TableLogic Annotation for Logical Deletion in MyBatis-Plus

This article explains how the @TableLogic annotation in MyBatis-Plus implements logical deletion by converting delete operations into updates, details its parameters, supported field types, global configuration, and provides complete Java and SQL code examples for practical usage.

BackendLogical DeletionMyBatis-Plus
0 likes · 8 min read
Using @TableLogic Annotation for Logical Deletion in MyBatis-Plus
Java Captain
Java Captain
Feb 14, 2025 · Fundamentals

Understanding Apache Commons StringUtils: isEmpty, isBlank, and Related Methods

This article explains the differences and usage of Apache Commons Lang3 StringUtils methods such as isEmpty, isNotEmpty, isAnyEmpty, isNoneEmpty, isBlank, isNotBlank, isAnyBlank, and isNoneBlank, providing code examples and behavioral details for handling null, empty, and whitespace strings in Java.

Apache CommonsStringUtilsisBlank
0 likes · 6 min read
Understanding Apache Commons StringUtils: isEmpty, isBlank, and Related Methods
Top Architect
Top Architect
Feb 14, 2025 · Backend Development

Liteflow Rule Engine: Concepts, Configuration, and Practical Usage in Java Backend Development

This article introduces the Liteflow lightweight rule engine for Java, explains its architecture, configuration, component types, EL rule file syntax, data context handling, and demonstrates a practical e‑commerce workflow, highlighting hot‑deployment and performance benefits for backend development.

backend-developmentjavarule engine
0 likes · 11 min read
Liteflow Rule Engine: Concepts, Configuration, and Practical Usage in Java Backend Development
Java Tech Enthusiast
Java Tech Enthusiast
Feb 14, 2025 · Information Security

Electronic Signature Implementation Using Java and PDF

This tutorial explains China’s electronic‑seal regulations, shows how to generate a CA‑based X.509 certificate and a custom seal image with BouncyCastle, and demonstrates signing a PDF in Java using iText 5 to embed a visible seal and a verifiable digital signature.

BouncyCastlePDFdigital certificate
0 likes · 16 min read
Electronic Signature Implementation Using Java and PDF