Tagged articles
5000 articles
Page 18 of 50
Lin is Dream
Lin is Dream
May 27, 2025 · Backend Development

Master Maven: Essential Tips for Java Backend Projects

This guide walks you through Maven installation, local repository configuration, dependency coordinates, common Maven commands, profile usage, multi‑module project setup, the difference between dependencyManagement and dependencies, and practical Maven tricks such as installing local jars, removing version numbers from generated artifacts, and resolving dependency conflicts.

build toolsdependency managementjava
0 likes · 11 min read
Master Maven: Essential Tips for Java Backend Projects
Lin is Dream
Lin is Dream
May 27, 2025 · Backend Development

Master Maven Mirrors: Configure Repositories, Mirrors, and Private Deployments

This guide explains how Maven repositories and mirrors work, the role of the mirrorOf attribute, how to set up central and third‑party repositories in pom.xml, configure mirrors in settings.xml with various matching rules, and properly configure private repository deployment with authentication and profile activation.

MirrorRepositorySettings.xml
0 likes · 7 min read
Master Maven Mirrors: Configure Repositories, Mirrors, and Private Deployments
Architect's Guide
Architect's Guide
May 27, 2025 · Backend Development

Understanding CopyOnWrite (COW) Concept and Its Implementation in Java

The article explains the CopyOnWrite (COW) concept, its read‑write separation benefits for thread‑safe, read‑heavy scenarios, key implementation details in Java’s CopyOnWriteArrayList—including volatile and transient usage—and discusses its memory overhead and eventual‑consistency drawbacks.

CopyOnWriteDataStructureThreadSafety
0 likes · 5 min read
Understanding CopyOnWrite (COW) Concept and Its Implementation in Java
FunTester
FunTester
May 27, 2025 · Backend Development

Java Serialization: Ten Common Pitfalls and Safer Alternatives

Java serialization, while convenient for persisting objects, suffers from versioning issues, hidden fields, mutable data snapshots, performance overhead, security vulnerabilities, singleton breaches, final field tampering, external dependencies, maintenance burdens, and format limitations, and the article recommends explicit serialVersionUID, custom methods, and JSON/Protobuf alternatives.

JSONProtobufbest practices
0 likes · 18 min read
Java Serialization: Ten Common Pitfalls and Safer Alternatives
Big Data Technology & Architecture
Big Data Technology & Architecture
May 26, 2025 · Artificial Intelligence

Spring AI 1.0 Released: Maven Dependency, Comparison with LangChain4j, and Future Trends

The article announces the Spring AI 1.0 release, provides the Maven BOM dependency, compares Spring AI with LangChain4j for Java AI development, and outlines upcoming integration, performance, and observability improvements for both frameworks amid rapid large‑model advancements.

Artificial IntelligenceLangChain4jjava
0 likes · 4 min read
Spring AI 1.0 Released: Maven Dependency, Comparison with LangChain4j, and Future Trends
Lin is Dream
Lin is Dream
May 26, 2025 · Backend Development

Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations

This article consolidates essential Java date and time utilities—including start/end calculations for days, weeks, months, quarters and years, time arithmetic, formatting, parsing, and conversions between LocalDateTime, Date, and Instant—providing a handy reference for developers working with the Java Time API.

DurationLocalDateTimeTime API
0 likes · 15 min read
Master Java Date & Time APIs: Quick Reference for Daily, Weekly, Monthly and Quarterly Operations
Code Ape Tech Column
Code Ape Tech Column
May 26, 2025 · Backend Development

Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT

This article presents a production‑validated solution that combines MyBatis‑Plus auto‑fill, AOP, JWT, multi‑data‑source handling, distributed ID generation, performance tuning, and audit logging to eliminate repetitive maintenance of common fields such as createTime, updateTime, createUser, and updateUser in Java backend order services.

Backendaopautomation
0 likes · 9 min read
Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT
Java Web Project
Java Web Project
May 26, 2025 · Backend Development

How to Integrate WebSocket with Spring Boot for Real‑Time Messaging

This guide walks through the problem of server‑initiated push in a Spring Boot project, explains why WebSocket is needed over HTTP, and provides step‑by‑step Maven setup, configuration classes, controller code, a test HTML page, and troubleshooting tips for proper initialization.

BackendMessagingReal-Time
0 likes · 12 min read
How to Integrate WebSocket with Spring Boot for Real‑Time Messaging
FunTester
FunTester
May 26, 2025 · Backend Development

Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger

This article explains how to implement a thread‑safe round‑robin load balancer in Java using AtomicInteger, discusses its advantages and limitations, provides sample code for single‑thread and multithreaded scenarios, and suggests further optimizations such as health checks, weighted routing, and dynamic server updates.

AtomicIntegerBackendRound Robin
0 likes · 11 min read
Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger
JakartaEE China Community
JakartaEE China Community
May 26, 2025 · Industry Insights

Why Jakarta EE Is the Right Choice for Modern Java Applications

The whitepaper outlines Jakarta EE's strategic importance, citing adoption surveys, open‑source benefits, deep ecosystem integration, stability, flexibility for cloud‑native and monolithic architectures, and a vibrant community that together make it a compelling platform for today’s and future Java development.

Cloud NativeEnterprise JavaMicroProfile
0 likes · 18 min read
Why Jakarta EE Is the Right Choice for Modern Java Applications
Java Architect Essentials
Java Architect Essentials
May 25, 2025 · Backend Development

Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation

Spring Boot's @Async annotation enables developers to replace manual thread and thread‑pool management with simple method annotations, providing automatic asynchronous execution, customizable thread pools, and flexible return types such as Future and CompletableFuture, thereby streamlining code, improving efficiency, and reducing complexity in backend services.

AsyncSpringBootjava
0 likes · 7 min read
Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation
Architect
Architect
May 25, 2025 · Backend Development

Using Project Loom Virtual Threads in Spring Boot: Setup, Code Samples, and Performance Testing

This article demonstrates how to integrate Project Loom virtual threads into a Spring Boot application, provides the necessary Maven configuration and Java code, runs load tests with JMeter to compare response times against traditional threads, and shows the significant throughput improvements achieved on the same hardware.

Performance TestingProject LoomVirtual Threads
0 likes · 9 min read
Using Project Loom Virtual Threads in Spring Boot: Setup, Code Samples, and Performance Testing
Architect's Guide
Architect's Guide
May 25, 2025 · Backend Development

Integrating Elasticsearch with MySQL in a Spring Boot Backend: Technical Selection, Common Package, Repository, Mapper, and Service Implementation

This article explains how to combine Elasticsearch and MySQL in a Spring Boot backend by selecting the technology stack, creating a shared Elasticsearch package, defining ES and MySQL entity classes, implementing repository and mapper interfaces, writing service logic, and demonstrating query testing.

ElasticsearchMySQLRepository
0 likes · 17 min read
Integrating Elasticsearch with MySQL in a Spring Boot Backend: Technical Selection, Common Package, Repository, Mapper, and Service Implementation
Architect
Architect
May 24, 2025 · Backend Development

Implement End‑to‑End TraceId Logging Across Rest, MQ, and RPC in Java

This article walks through a practical approach to generate a unique traceId at request entry, propagate it through REST, RocketMQ, and Dubbo RPC modules, and configure Log4j2 to print the traceId so that logs from different services can be correlated into a single request chain.

Distributed TracingMicroservicesjava
0 likes · 8 min read
Implement End‑to‑End TraceId Logging Across Rest, MQ, and RPC in Java
Java One
Java One
May 24, 2025 · Backend Development

How to Secure Your Spring Boot Application with HTTPS: A Step‑by‑Step Guide

This tutorial walks you through obtaining or generating SSL certificates, configuring Spring Boot to use JKS or PKCS12 keystores, redirecting HTTP to HTTPS, and distributing the certificate to clients, with complete command‑line examples and code snippets for a production‑ready setup.

HTTPSSSLTLS
0 likes · 13 min read
How to Secure Your Spring Boot Application with HTTPS: A Step‑by‑Step Guide
Su San Talks Tech
Su San Talks Tech
May 24, 2025 · Backend Development

12 Proven SpringBoot Performance Hacks to Boost Your API Speed

Discover twelve practical SpringBoot performance optimization techniques—from connection pool tuning and JVM memory settings to caching, async processing, and full‑stack monitoring—each illustrated with code snippets and actionable guidance to prevent full‑table scans, OOM errors, and latency spikes in high‑traffic applications.

JVMSpringBootdatabase indexing
0 likes · 13 min read
12 Proven SpringBoot Performance Hacks to Boost Your API Speed
FunTester
FunTester
May 24, 2025 · Backend Development

How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive

This article presents advanced WebSocket testing techniques—including asynchronous connection creation, result statistics, price verification, latency measurement, TPS modeling—and demonstrates a Netty‑WebSocket subscription test for 10,000 users plus Java‑ and Netty‑based keepalive implementations for high‑concurrency scenarios.

KeepaliveNettyPerformance Testing
0 likes · 7 min read
How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive
Java Architect Essentials
Java Architect Essentials
May 23, 2025 · Backend Development

Master SpringBoot Caching: How @Cacheable Simplifies Cache Management

This article explains how SpringBoot’s @Cacheable annotation automates cache handling, reducing boilerplate code, improving performance, and simplifying maintenance, while also covering related annotations like @CacheEvict and @CachePut, with practical code examples for user and product data caching in real-world applications.

@CacheableBackendSpringBoot
0 likes · 6 min read
Master SpringBoot Caching: How @Cacheable Simplifies Cache Management
Java Captain
Java Captain
May 23, 2025 · Backend Development

Resolving Spring Boot Resource Loading Errors When Running from a JAR

This article explains why a Spring Boot application fails to locate a template file when packaged as a JAR, details the step‑by‑step debugging process, and provides code solutions using ClassPathResource or PathMatchingResourcePatternResolver to correctly read resources inside the JAR.

BackendJARdebugging
0 likes · 5 min read
Resolving Spring Boot Resource Loading Errors When Running from a JAR
Top Architect
Top Architect
May 23, 2025 · Backend Development

Secure File Upload and Preview with Spring Boot, Minio, and KKFile

This article demonstrates how to securely upload files to Minio, stream them for preview via KKFile without exposing the Minio endpoint, and protect download URLs with token validation, providing complete Java code examples for upload, download, and preview URL generation.

Miniofile uploadjava
0 likes · 10 min read
Secure File Upload and Preview with Spring Boot, Minio, and KKFile
macrozheng
macrozheng
May 23, 2025 · Backend Development

Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know

This article introduces 17 practical Java utility classes—including Collections, CollectionUtils, Lists, Objects, BooleanUtils, StringUtils, Assert, IOUtils, MDC, ClassUtils, BeanUtils, ReflectionUtils, Base64Utils, StandardCharsets, DigestUtils, SerializationUtils, and HttpStatus—showing how to use them with clear code examples to streamline everyday development tasks.

Backendcode-examplesjava
0 likes · 30 min read
Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know
FunTester
FunTester
May 23, 2025 · Operations

Mastering JVM Thread Dumps: From Diagnosis to Kubernetes Automation

This article explains what JVM thread dumps are, why they are crucial for fault testing, outlines common scenarios such as deadlocks and resource leaks, and provides step‑by‑step methods—including jstack, kill‑3, VisualVM, programmatic APIs, and Fabric8‑driven Kubernetes automation—to capture and analyze them effectively.

Fabric8JVMKubernetes
0 likes · 15 min read
Mastering JVM Thread Dumps: From Diagnosis to Kubernetes Automation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 23, 2025 · Backend Development

11 Must‑Know Spring Boot 3.5 Features with Ready‑to‑Use Code Samples

This article walks through eleven notable Spring Boot 3.5 enhancements—including stricter .enabled flags, renamed TaskExecutor beans, Redis URL handling, annotation‑based servlet/filter registration, multi‑property environment loading, structured logging tweaks, WebClient connector settings, task decorators, custom executors, bootstrapExecutor auto‑configuration, and secured heapdump actuator endpoint—providing concise explanations and runnable code snippets.

ActuatorCode Samplesconfiguration
0 likes · 10 min read
11 Must‑Know Spring Boot 3.5 Features with Ready‑to‑Use Code Samples
Architect
Architect
May 22, 2025 · Backend Development

How to Build Real‑Time Device Monitoring with WebSocket and Spring Boot

This article demonstrates how to implement a real‑time device‑monitoring system using WebSocket, covering the problem scenario, front‑end Vue.js visualization, Spring Boot back‑end configuration, WebSocket server setup, and step‑by‑step testing to achieve instant status updates.

backend-developmentfrontend developmentjava
0 likes · 11 min read
How to Build Real‑Time Device Monitoring with WebSocket and Spring Boot
Su San Talks Tech
Su San Talks Tech
May 22, 2025 · Backend Development

30 Practical Java Code Optimization Tips to Boost Performance

A comprehensive guide presenting thirty proven Java optimization techniques, from efficient string handling and buffered I/O to proper resource management, connection pooling, multithreading, naming conventions, and safe use of APIs, each illustrated with concise code examples.

best practicescodingjava
0 likes · 41 min read
30 Practical Java Code Optimization Tips to Boost Performance
FunTester
FunTester
May 22, 2025 · Operations

How to Stress‑Test a WebSocket Product Query API with Java

This guide walks you through designing, implementing, and analyzing a Java‑based performance test for a WebSocket product‑query interface, covering request/response formats, thread‑driven load generation, TPS control, console metrics, and response validation techniques.

BackendLoad TestingPerformance Testing
0 likes · 9 min read
How to Stress‑Test a WebSocket Product Query API with Java
JD Tech
JD Tech
May 21, 2025 · Backend Development

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

This article examines the common pain points of on‑call debugging, explains how to extract useful information from error screenshots, and presents a Java‑based method call stack tracing tool that filters and visualizes stack frames to quickly locate code origins and improve troubleshooting efficiency.

MethodTracingStackTracedebugging
0 likes · 12 min read
How to Build a Java Method Call Stack Tracker for Faster Debugging
Java Architect Essentials
Java Architect Essentials
May 21, 2025 · Backend Development

How @Slf4j Instantly Simplifies Logging in Spring Boot

This article explains why repetitive logger boilerplate in Spring Boot is a problem, introduces Lombok's @Slf4j annotation that auto‑generates a logger, shows basic and advanced usage with code examples, and outlines the benefits for real‑world backend projects.

BackendLombokSpringBoot
0 likes · 7 min read
How @Slf4j Instantly Simplifies Logging in Spring Boot
Instant Consumer Technology Team
Instant Consumer Technology Team
May 21, 2025 · Backend Development

How a Java‑Based Traffic Replay Platform Boosts Test Efficiency and Coverage

The article describes the challenges of testing complex systems, proposes a traffic‑replay platform built on Java and jvm‑sandbox‑repeater, outlines its four‑stage construction, layered architecture, core functions, technical challenges with solutions, and future integration plans to improve automated testing and reduce noise.

Backend testingMicroservicesjava
0 likes · 13 min read
How a Java‑Based Traffic Replay Platform Boosts Test Efficiency and Coverage
Code Ape Tech Column
Code Ape Tech Column
May 21, 2025 · Backend Development

Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, and demonstrates advanced features such as expression‑based mappings, qualifiedByName for custom conversions, nullValueMappingStrategy for handling nulls, and the use of Decorator classes to apply global post‑processing logic.

Decoratorbackend-developmentbean-mapping
0 likes · 6 min read
Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator
Programmer DD
Programmer DD
May 21, 2025 · Artificial Intelligence

What’s New in Spring AI 1.0 GA? A Deep Dive into Java AI Features

Spring AI 1.0 GA introduces a comprehensive suite of AI capabilities for Java developers, including a ChatClient supporting 20 models, vector‑store integrations, RAG pipelines, advanced chat memory, @Tool function calling, model evaluation, observability, Model Context Protocol, and autonomous agents, with examples for major cloud providers.

AI modelsMCPObservability
0 likes · 6 min read
What’s New in Spring AI 1.0 GA? A Deep Dive into Java AI Features
Java Captain
Java Captain
May 21, 2025 · Backend Development

Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator

The article explains how to achieve graceful shutdown of Spring Boot services by handling Linux kill signals, registering JVM shutdown hooks, and exposing an Actuator REST endpoint that safely releases resources, stops beans, and terminates the JVM without data loss.

ActuatorGraceful ShutdownJVM
0 likes · 11 min read
Graceful Shutdown of Spring Boot Applications Using JVM Signals and Actuator
Java Captain
Java Captain
May 21, 2025 · Fundamentals

Understanding Java Thread States and Their Transitions with Example Code

This article explains the six Java thread states defined in java.lang.Thread.State, describes the meaning of each state, illustrates the possible state transitions, and provides three runnable code examples that demonstrate NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING and TERMINATED states along with their console outputs.

ThreadThreadStateconcurrency
0 likes · 11 min read
Understanding Java Thread States and Their Transitions with Example Code
Top Architecture Tech Stack
Top Architecture Tech Stack
May 21, 2025 · Backend Development

Understanding DTO, BO, PO, and VO in Backend Development

This article explains the concepts of Data Transfer Object (DTO), Business Object (BO), Persistent Object (PO), and Value Object (VO) in backend development, shows how they differ and interact across layers, and provides Java code examples and a global configuration to filter null fields during serialization.

Model LayerPObackend-development
0 likes · 7 min read
Understanding DTO, BO, PO, and VO in Backend Development
Alibaba Cloud Developer
Alibaba Cloud Developer
May 21, 2025 · Artificial Intelligence

How to Seamlessly Integrate MCP Protocol with Spring AI for Powerful LLM Tool Calls

This article explains the challenges of integrating diverse tools without MCP, then demonstrates step‑by‑step how to configure Spring‑AI and the native MCP SDK to call LLMs, register tools, handle SSE and stdio services, and troubleshoot common issues, providing code snippets and best‑practice recommendations.

AI tool integrationLLMMCP
0 likes · 16 min read
How to Seamlessly Integrate MCP Protocol with Spring AI for Powerful LLM Tool Calls
Java Architect Essentials
Java Architect Essentials
May 20, 2025 · Backend Development

How @ModelAttribute Simplifies SpringBoot Form Data Binding

When handling complex forms in SpringBoot, developers often write repetitive code to extract each field, but the @ModelAttribute annotation automatically binds all form parameters to Java objects, reducing boilerplate, improving readability, and supporting custom binding scenarios.

@ModelAttributeForm BindingSpringBoot
0 likes · 7 min read
How @ModelAttribute Simplifies SpringBoot Form Data Binding
Architect
Architect
May 20, 2025 · Backend Development

Why Is Spring Boot So Slow to Start? A Deep Dive into Its Startup Process

This article analyses why Spring Boot startup can take dozens of seconds, breaks down the most time‑consuming phases such as prepareEnvironment and refreshContext, shows profiling code and screenshots, compares a simple MVC demo with a real‑world project, and identifies external client connections and configuration loading as the biggest bottlenecks.

ProfilingSpringBootStartup Performance
0 likes · 13 min read
Why Is Spring Boot So Slow to Start? A Deep Dive into Its Startup Process
macrozheng
macrozheng
May 20, 2025 · Backend Development

10 Logging Rules Every Backend Engineer Should Follow

This article shares ten practical rules for producing high‑quality logs in Java backend systems, covering unified formatting, stack traces, log levels, complete parameters, data masking, asynchronous logging, traceability, dynamic level adjustment, structured storage, and intelligent monitoring to help developers quickly diagnose issues and improve system reliability.

javalogbacklogging
0 likes · 12 min read
10 Logging Rules Every Backend Engineer Should Follow
Code Ape Tech Column
Code Ape Tech Column
May 20, 2025 · Backend Development

Dynamic Chain of Responsibility in Spring: A Practical Implementation

This article explains how to split a multi‑function OpenAPI endpoint into independent steps using the responsibility‑chain pattern in Spring, detailing the abstract component, context sharing, bean retrieval via ApplicationContext, and a controller that dynamically orders execution through a query parameter, with full code examples.

Chain of ResponsibilityLiteFlowaop
0 likes · 9 min read
Dynamic Chain of Responsibility in Spring: A Practical Implementation
JD Tech Talk
JD Tech Talk
May 20, 2025 · Fundamentals

Java Code Style Guidelines: Standards, Tool Integration, and Best Practices

This article explains why consistent Java code style matters, reviews major industry standards such as Google and Alibaba, guides the selection and customization of a style guide, and demonstrates how to configure IntelliJ IDEA, Checkstyle, and Maven to enforce the rules throughout development.

IntelliJ IDEAcheckstylecode style
0 likes · 12 min read
Java Code Style Guidelines: Standards, Tool Integration, and Best Practices
Java Architect Essentials
Java Architect Essentials
May 20, 2025 · Backend Development

Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend

This article explains how using a custom @DistributeLock annotation together with @Transactional can cause idempotency issues due to aspect execution order, and demonstrates how to prioritize the lock aspect using @Order to ensure the lock is applied before the transaction, with code examples and best‑practice recommendations.

Idempotencyaspect orderdistributed-lock
0 likes · 6 min read
Ensuring Idempotency with Distributed Locks: Adjusting Aspect Order in Java Backend
Top Architecture Tech Stack
Top Architecture Tech Stack
May 20, 2025 · Backend Development

Global Exception Handling in Spring Boot: Techniques and Code Examples

This article explains how to efficiently handle exceptions in Spring Boot applications by using @ControllerAdvice and @ExceptionHandler annotations, providing step-by-step code examples for custom global exception classes, error response structures, and handling specific exceptions such as business, null pointer, and type conversion errors.

BackendSpringBootannotations
0 likes · 9 min read
Global Exception Handling in Spring Boot: Techniques and Code Examples
JD Tech Talk
JD Tech Talk
May 19, 2025 · Backend Development

Detailed Explanation of Java ConcurrentHashMap Source Code: Constructors, put, get, resize, and Concurrency Mechanisms

This article provides an in‑depth analysis of the Java ConcurrentHashMap implementation, covering its constructor logic, hash‑table sizing, the core put and get operations, element counting with addCount, multi‑threaded resizing via transfer, treeification of bins, removal, computeIfAbsent, and the design choices that forbid null keys and values to simplify concurrency handling.

CASConcurrentHashMaphash table
0 likes · 36 min read
Detailed Explanation of Java ConcurrentHashMap Source Code: Constructors, put, get, resize, and Concurrency Mechanisms
JD Cloud Developers
JD Cloud Developers
May 19, 2025 · Backend Development

Unlocking Java’s ConcurrentHashMap: Inside Constructors, Put, and Resizing

This article provides a thorough, English‑language walkthrough of Java 8+ ConcurrentHashMap’s source code, covering its constructor logic, load‑factor handling, CAS‑based insertion, node optimizations, the put method, element‑count updates, multi‑threaded resizing, treeification, and auxiliary operations such as get, remove, and computeIfAbsent.

ConcurrentHashMapData Structuresconcurrency
0 likes · 42 min read
Unlocking Java’s ConcurrentHashMap: Inside Constructors, Put, and Resizing
ITPUB
ITPUB
May 19, 2025 · Fundamentals

Why Developers Prefer if…else Over switch: Pros, Cons, and Performance

The article examines why many programmers favor if...else over switch statements, outlining switch's intended clarity, its limitations such as lack of range support and fall‑through pitfalls, performance considerations across languages, and scenarios where each construct shines.

Control Flowcoding best practicesif-else
0 likes · 8 min read
Why Developers Prefer if…else Over switch: Pros, Cons, and Performance
Java Tech Enthusiast
Java Tech Enthusiast
May 19, 2025 · Information Security

Why Validation Matters: Java Bean Validation and Permission Checks

This article explains why both front‑end and back‑end data validation are essential for secure and user‑friendly web applications, introduces Java Bean Validation annotations, shows how to integrate them with Spring MVC, and compares common Java permission‑control frameworks such as Spring Security, Shiro and Sa‑Token.

Bean Validationdata validationjava
0 likes · 16 min read
Why Validation Matters: Java Bean Validation and Permission Checks
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
May 19, 2025 · Cloud Native

Master Spring Cloud Gateway in 3 Minutes – Complete Service Gateway Guide

This article introduces Spring Cloud Gateway as a high‑performance replacement for Zuul, explains its core components (Route, Predicate, Filter) and request flow, provides step‑by‑step setup of a gateway project, demonstrates route configuration, custom GlobalFilter and GatewayFilter implementations, and validates the behavior with example requests.

Custom FilterMicroservicesSpring Cloud Gateway
0 likes · 17 min read
Master Spring Cloud Gateway in 3 Minutes – Complete Service Gateway Guide
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 18, 2025 · Fundamentals

Strategy Design Pattern in Java: Definition, Structure, Example, and Refactoring

This article explains the behavioral Strategy design pattern, describes its definition and structure, demonstrates a real‑world e‑commerce discount scenario with both a tangled if‑else implementation and a clean refactoring using Java interfaces, concrete strategy classes, a context, and a client, and finally discusses its advantages and drawbacks.

Design PatternsStrategy Patternjava
0 likes · 9 min read
Strategy Design Pattern in Java: Definition, Structure, Example, and Refactoring
Architect's Tech Stack
Architect's Tech Stack
May 18, 2025 · Backend Development

Six Practical File Upload and Download Solutions for Spring Boot

This article presents six commonly used file upload and download techniques for Spring Boot, covering basic Multipart handling, stream-based download, integration with Alibaba Cloud OSS and MinIO, as well as high‑concurrency chunked uploads with Nginx, each accompanied by complete code examples and usage scenarios.

File DownloadMinioOSS
0 likes · 16 min read
Six Practical File Upload and Download Solutions for Spring Boot
FunTester
FunTester
May 18, 2025 · Backend Development

Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing

This article explains how to build a high‑performance Netty‑based WebSocket client for large‑scale performance testing, covering Netty fundamentals, custom handler implementation, client bootstrap configuration, message sending, connection closing, batch operations, and client encapsulation to reduce resource consumption and improve scalability.

BackendNettyPerformance Testing
0 likes · 14 min read
Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing
Java Architect Essentials
Java Architect Essentials
May 17, 2025 · Backend Development

Simplify SpringBoot Time Handling with @DateTimeFormat Annotation

This article explains how SpringBoot’s @DateTimeFormat annotation automatically converts timestamps and date strings to Date, LocalDate, or LocalDateTime objects, eliminating manual parsing code, and provides practical examples ranging from simple date parameters to custom datetime patterns for more efficient backend development.

@DateTimeFormatSpringBootTime Conversion
0 likes · 7 min read
Simplify SpringBoot Time Handling with @DateTimeFormat Annotation
Java Tech Enthusiast
Java Tech Enthusiast
May 17, 2025 · Backend Development

How to Implement Distributed API Debounce in Java with Redis and Redisson

This article explains why API debounce is needed in web back‑ends, identifies the types of endpoints that require it, outlines how to detect duplicate requests, and provides two concrete distributed solutions—shared Redis cache and Redisson lock—complete with annotation design, key generation logic, and full Java code examples.

API DebounceIdempotencydistributed-lock
0 likes · 15 min read
How to Implement Distributed API Debounce in Java with Redis and Redisson
FunTester
FunTester
May 17, 2025 · Backend Development

Detailed Explanation of Java WebSocket Client Development

This article provides a comprehensive walkthrough of building a Java WebSocket client, covering client creation, connection establishment, message sending, graceful closure, header handling, and code encapsulation, with complete example code and best practices for performance testing and robust error handling.

NetworkingPerformanceTestingclient
0 likes · 11 min read
Detailed Explanation of Java WebSocket Client Development
Cognitive Technology Team
Cognitive Technology Team
May 17, 2025 · Fundamentals

Why Your Multithreaded Code Might Misbehave: A Deep Dive into Language Memory Models

This article explains how programming‑language memory models define the guarantees for shared‑memory concurrency, illustrates common pitfalls such as ordinary‑variable problems and instruction‑reordering, and surveys the evolution of memory models in Java, C++, Rust, Swift, JavaScript and hardware architectures.

JavaScriptMemory ModelRust
0 likes · 38 min read
Why Your Multithreaded Code Might Misbehave: A Deep Dive into Language Memory Models
Programmer DD
Programmer DD
May 17, 2025 · Backend Development

Unlock Dynamic Fields in Hibernate: Master @Formula for Read‑Only Calculations

The article explains Hibernate's @Formula annotation, showing how to define dynamic, read‑only fields with SQL expressions, provides code examples for simple concatenations, aggregate calculations, and multi‑table integrations, and offers best‑practice guidelines to optimize performance and avoid common pitfalls.

@FormulaHibernateORM
0 likes · 7 min read
Unlock Dynamic Fields in Hibernate: Master @Formula for Read‑Only Calculations
Java Architect Essentials
Java Architect Essentials
May 16, 2025 · Backend Development

Simplifying Session Management in Spring Boot with @SessionAttributes

Spring Boot's @SessionAttributes annotation enables automatic session data handling, eliminating repetitive HttpSession code, simplifying development, improving maintainability, and supporting multi-attribute management and cleanup, as demonstrated through detailed examples and best practices for user login and shopping cart scenarios.

@SessionAttributesBackendSessionManagement
0 likes · 7 min read
Simplifying Session Management in Spring Boot with @SessionAttributes
Code Ape Tech Column
Code Ape Tech Column
May 16, 2025 · Backend Development

Mastering JXLS: Generate Complex Excel Reports with Java

This guide explains how to use the JXLS Java library to create complex, template‑driven Excel reports, covering setup, core concepts like XlsArea, looping, conditional rendering, dynamic grids, merging cells, image insertion, and formula handling with practical code examples.

ExcelTemplate Enginebackend-development
0 likes · 9 min read
Mastering JXLS: Generate Complex Excel Reports with Java
Cognitive Technology Team
Cognitive Technology Team
May 16, 2025 · Fundamentals

Why Java Switched HashMap Insertion to Tail and How It Affects Concurrency

This article examines the evolution of Java's HashMap from head‑insertion in JDK 1.7 to tail‑insertion in JDK 1.8, explains how the change eliminates circular‑list deadlocks during concurrent resizing, discusses remaining concurrency pitfalls such as red‑black tree conversion, and offers best‑practice solutions like using ConcurrentHashMap and proper initial capacity settings.

Data StructuresHashMapJDK
0 likes · 10 min read
Why Java Switched HashMap Insertion to Tail and How It Affects Concurrency
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 16, 2025 · Backend Development

Explore 8 Ways to Define Web Interfaces in Spring Boot 3 – Practical Code Samples

This article presents a comprehensive collection of 124 Spring Boot 3 practical cases, detailing eight distinct methods for defining web interfaces—including @Controller, @RestController, HttpRequestHandler, ServletRegistrationBean, HandlerFunction, @HttpExchange, and static resource registration—complete with code snippets, configuration steps, and usage explanations.

Code ExamplesWeb Interfacebackend-development
0 likes · 11 min read
Explore 8 Ways to Define Web Interfaces in Spring Boot 3 – Practical Code Samples
Java Architect Essentials
Java Architect Essentials
May 15, 2025 · Backend Development

How @PageableDefault Simplifies SpringBoot Pagination

The article explains how the SpringBoot @PageableDefault annotation automatically provides default pagination parameters, reducing boilerplate code, improving readability, and offering flexible control for various query endpoints in Java backend development.

BackendSpringBootannotation
0 likes · 6 min read
How @PageableDefault Simplifies SpringBoot Pagination
Top Architect
Top Architect
May 15, 2025 · Backend Development

Using Undertow as an Alternative to Tomcat in Spring Boot

This article explains how Spring Boot’s default embedded Tomcat container can be replaced with the high‑performance Undertow server, provides step‑by‑step Maven configuration, compares their performance and memory usage, and concludes with a recommendation for high‑concurrency applications while also containing promotional material for AI services.

TomcatWeb serverjava
0 likes · 10 min read
Using Undertow as an Alternative to Tomcat in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
May 15, 2025 · Backend Development

Automate CRUD with a Generic BaseController in Spring Boot

This guide shows how to create a reusable BaseController using MyBatis‑Plus, reflection utilities, and Spring Boot annotations to provide automatic CRUD, list, pagination and count endpoints for any entity with minimal code.

CRUDGeneric ControllerREST API
0 likes · 10 min read
Automate CRUD with a Generic BaseController in Spring Boot
Java Captain
Java Captain
May 15, 2025 · Backend Development

Automating CRUD Operations with MyBatisPlus and a Generic BaseController in Spring Boot

This article demonstrates how to automate CRUD functionality in a Spring Boot application by adding MyBatisPlus, creating utility methods for query building and reflection, implementing a generic BaseController, configuring pagination support, and extending the controller for specific entities, providing a reusable RESTful API template.

BaseControllerCRUDMyBatisPlus
0 likes · 11 min read
Automating CRUD Operations with MyBatisPlus and a Generic BaseController in Spring Boot
Java Captain
Java Captain
May 15, 2025 · Backend Development

Generating Temperature Line Charts in Excel with Apache POI (Java)

This tutorial demonstrates how to add Apache POI dependencies via Maven and use Java code to create an Excel workbook containing a multi‑series temperature line chart, including custom font sizes for titles and axes, and finally export the file to disk.

Apache POIData visualizationExcel
0 likes · 8 min read
Generating Temperature Line Charts in Excel with Apache POI (Java)
JD Cloud Developers
JD Cloud Developers
May 15, 2025 · Cloud Native

How Sentinel Empowers Cloud‑Native Traffic Governance and Resilience

This article introduces Sentinel, a cloud‑native flow‑control component born from Alibaba's ecosystem, explains its resource‑based rule model, core implementation—including rule‑control chain, datasource, and dashboard—and discusses practical deployment considerations and extension strategies for Java microservices.

Cloud NativeMicroservicesjava
0 likes · 20 min read
How Sentinel Empowers Cloud‑Native Traffic Governance and Resilience
Programmer DD
Programmer DD
May 15, 2025 · Backend Development

Boost Spring Boot Performance 3× with JVM Tuning: Practical Parameters

After caching, indexing, and async optimizations still leave a Spring Boot REST API sluggish, this guide shows how fine‑tuning JVM options—such as enabling G1GC, adjusting pause targets, compressing class metadata, shrinking thread stacks, and pre‑touching memory—can triple response speed without changing application code.

JVMg1gcjava
0 likes · 7 min read
Boost Spring Boot Performance 3× with JVM Tuning: Practical Parameters
Lin is Dream
Lin is Dream
May 15, 2025 · Backend Development

How to Build a Pluggable Operation Log System with AOP and Annotations in Java

This article explains a complete, reusable solution for recording operation logs in Java backend applications using Spring AOP, custom annotations, callback interfaces, and a user‑adapter to bridge third‑party logging libraries with the main program, enabling flexible storage and auditing.

BackendOperation Logannotation
0 likes · 8 min read
How to Build a Pluggable Operation Log System with AOP and Annotations in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
May 15, 2025 · Operations

Eliminating GC Pauses: Achieving 99.995% Uptime in a 100k QPS Java Service

Facing frequent timeouts in a high‑throughput Java service, we traced instability to long GC pauses during massive index swaps, then systematically tuned JVM parameters, explored G1, ZGC, and custom Eden‑pre‑heating techniques, ultimately achieving near‑perfect availability without adding hardware.

Garbage CollectionJVMhigh concurrency
0 likes · 23 min read
Eliminating GC Pauses: Achieving 99.995% Uptime in a 100k QPS Java Service
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 15, 2025 · Fundamentals

Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies

This article explains what makes a class thread‑safe in Java, illustrates common race‑condition pitfalls with sample code, and presents six practical design strategies—including stateless, immutable, synchronized, volatile, concurrent collections, thread‑confinement, and defensive copying—to help developers build robust, high‑performance concurrent applications.

Design PatternsImmutableconcurrency
0 likes · 11 min read
Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies
Java Architect Essentials
Java Architect Essentials
May 14, 2025 · Backend Development

Master SpringBoot @RequestHeader: Simplify HTTP Header Binding

This article explains how SpringBoot's @RequestHeader annotation automatically binds HTTP request headers to controller method parameters, reducing boilerplate code, supporting default values and optional headers, and improving readability and development efficiency with clear code examples.

@RequestHeaderBackendSpringBoot
0 likes · 6 min read
Master SpringBoot @RequestHeader: Simplify HTTP Header Binding