Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#Backend Development

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection

This article explains why the @Autowired field injection in Spring is often discouraged, compares it with @Resource and constructor injection, shows practical code examples and error scenarios, and provides guidance on choosing the most appropriate dependency‑injection method for robust backend development.

Managing Spring Boot Configurations with Enums and @ConfigurationProperties

This guide explains how to improve Spring Boot configuration management by defining configuration values as Java enums, mapping them with @ConfigurationProperties, and displaying them via a Thymeleaf front‑end, including Maven dependencies, YAML settings, enum class, config class, controller, and HTML template examples.

What’s New in Spring Boot 4? A Deep Dive into the Latest Spring Ecosystem Overhaul

Spring Boot 4 launches alongside Spring Framework 7, Spring Data 2025.1 and Spring AI 1.1, delivering a massive upgrade that includes Jakarta EE 11, JDK 25, null‑safety via JSpecify, build‑time optimizations, modern HTTP clients, full‑stack Jackson 3 support, native resilience features, modular auto‑configuration, OpenTelemetry integration, and a dual‑track AI strategy.

Choosing the Right Elasticsearch Pagination Method: from/size, search_after, Scroll API, and PIT

This article examines the four primary Elasticsearch pagination techniques—using from/size, search_after, the Scroll API, and Point in Time—detailing their syntax, advantages, disadvantages, suitable scenarios, and provides guidance on selecting the optimal method based on depth, consistency, and resource constraints.

What’s New in Spring Boot 4? A Deep Dive into the Latest Features

Spring Boot 4 launches alongside Spring Framework 7, Spring Data 2025.1 and Spring AI 1.1, introducing Jakarta EE 11, JDK 25, JSpecify null‑safety, build‑time optimizations with Project Leyden, a new declarative HTTP client, Jackson 3 support, native API versioning, built‑in resilience, OpenTelemetry integration, and a dual‑track AI strategy.

Essential Linux Commands Every Backend Engineer Needs: Network, Process, and Server Resource Management

This guide lists the most useful Linux command‑line tools for backend developers, covering network diagnostics (ping, netstat, curl, traceroute, ss), process handling (ps, top, kill, nohup, jps), and server resource monitoring (df, du, free, vmstat, iostat, lsof, systemctl) with concrete examples and typical use cases.

How to Prevent Data Corruption in PHP Before It Happens

Proactive data‑corruption handling in PHP is essential because corrupted inputs can cause crashes, security flaws, and costly maintenance; this article explains the risks, why reactive fixes fail, and provides concrete strategies—validation, sanitisation, defaults, testing, monitoring, health checks, and strict typing—plus a practical code example.

Can PHP Swap Variables Like Reusable Resources? Exploring Performance Gains

The article examines how treating PHP variables as interchangeable reusable resources could reduce memory usage, boost execution speed, and simplify code, while outlining current limitations, possible implementation strategies, challenges, and practical scenarios where such a feature would be beneficial.

Unlock Tomcat’s Secrets: Deep Dive into Its Architecture, Design Patterns, and Class Loading

This article provides a comprehensive technical walkthrough of Tomcat, covering its connector and container architecture, lifecycle management, key design patterns such as Composite and Template Method, custom class‑loading mechanisms, hot‑reload process, and includes essential code snippets and diagrams for developers.

Master Web Architecture: Load Balancing, Static/Dynamic Separation, and MySQL Replication Explained

This article provides interview‑ready, step‑by‑step explanations of how Nginx works with Tomcat, the benefits of static‑dynamic separation, essential Nginx modules and load‑balancing algorithms, plus detailed MySQL master‑slave replication, failover, backup strategies, and related database concepts.

What’s New in Spring Framework 7? Features, Removals, and Migration Tips

Spring Framework 7 introduces a new baseline on JDK 17/25, upgrades to Jakarta EE 11, Kotlin 2.2 and GraalVM 25, removes several legacy APIs such as spring‑jcl and javax.annotation, deprecates features like RestTemplate and XML MVC config, and adds powerful capabilities including programmatic bean registration, enhanced HTTP client support, and improved testing extensions.

Mastering @EntityGraph in Spring Boot 3: Eliminate N+1 Queries Efficiently

This article explains the classic N+1 query issue in Spring Data JPA, demonstrates how JPQL JOIN FETCH and the @EntityGraph annotation can declaratively load associations, and provides advanced examples—including named entity graphs and combining @EntityGraph with custom @Query—to improve performance and code maintainability.

Unlock High‑Maintainability Go Projects with 20+ Creational & Structural Design Patterns

This guide walks Go developers through essential creational and structural design patterns—Singleton, Simple Factory, Factory Method, Abstract Factory, Builder, and Facade—explaining their principles, Go implementations, pros and cons, and real‑world use cases to build scalable, loosely‑coupled systems.

Discover 10 Must-Have Docker Images to Supercharge Your Development

This guide curates a selection of useful Docker images—including code‑server, CloudBeaver, QingLong, PocketBase, Homer, Uptime‑Kuma, Memos, Umami, Flame, Filebrowser, and Dockge—detailing their key features, recommended use cases, and ready‑to‑run Docker and docker‑compose commands to streamline development, monitoring, and personal workflows.

Master Spring Boot 4 API Versioning: 4 Strategies & Real‑World Examples

Spring Boot 4 now natively supports API versioning with four strategies—Path Segment, Request Header, Query Parameter, and Media Type—offering intuitive configuration, smart routing, and seamless content negotiation, and the article provides detailed setup, code samples, and best‑practice guidance for reliable version control.

Master Maven: Essential Dependency Management and Plugin Configuration Guide

This comprehensive guide walks you through Maven's core concepts—including repository setup, basic POM coordinates, dependency management, handling transitive dependencies, exclusions, variable properties, multi‑module projects, and powerful plugins such as jar, assembly, and shade—while also covering build‑time settings like compiler version, resource exclusion, and main‑class configuration.

How JSpecify and NullAway Bring Compile‑Time Null Safety to Spring Boot 4

Spring Boot 4 now embraces JSpecify’s null‑safety annotations, allowing developers to declare nullable and non‑null types at compile time; combined with the NullAway static analyzer, this shift eliminates mysterious NullPointerExceptions in production by making null contracts explicit, reducing defensive code, and improving maintainability.

How to Make Large Language Models Understand Third‑Party Java Packages – A Full Case Study

This article examines why AI code assistants struggle to read compiled third‑party Java libraries, documents a failed attempt using Cursor, and presents three solutions—including manual source feeding, read_file tools, and a local decompiler (MCP)—detailing their implementation, trade‑offs, and performance.

Master Spring Boot 3: A Complete Skill‑Boost Roadmap for Modern Backend Development

This comprehensive guide walks developers through mastering Spring Boot 3’s new features, auto‑configuration, reactive programming, testing, Docker, native images, observability, DDD, IaC, security, performance, cloud‑native integration, multi‑module architecture, i18n, event‑driven design, and AI integration, providing practical code snippets and actionable tips for each topic.

When "null" Is Just a String: Hidden Bugs and How to Prevent Them

The article explains how treating the literal string "null" as a valid username can cause user‑experience glitches, log‑analysis confusion, database contamination, security risks, and script failures, and provides step‑by‑step validation, front‑end checks, database constraints, and logging strategies to avoid these hidden bugs.

How SQL‑Based Rule Configuration Cuts Release Cycles from Days to Minutes

This article explains how transforming data‑validation rules into configurable SQL statements eliminates lengthy development‑test‑release cycles, improves cost efficiency, and boosts performance through architecture features such as plug‑in event triggers, memory‑snapshot isolation, data‑fingerprint grouping, and an online SQL debugger.

Unlock Spring Boot’s 10+3 Must‑Know Features for Faster Java Development

This article explores Spring Boot’s ten core and three extra features—including auto‑configuration, starters, externalized configuration, Actuator, DevTools, logging, transaction management, testing, and custom banners—showing how they simplify Java backend development, improve productivity, and enable production‑ready applications.

Mastering Spring Cloud Feign: A Complete Guide to Declarative Microservice Calls

Spring Cloud Feign simplifies HTTP communication between microservices by allowing developers to declare REST clients via interfaces and annotations, eliminating boilerplate code, and integrating seamlessly with Spring MVC, Ribbon load balancing, and Resilience4j circuit breaking, with detailed setup, configuration, and best‑practice examples.

Spring Event-Driven Architecture: Coffee Shop Analogy to High‑Throughput Systems

Using a coffee‑shop metaphor, this article explains how Spring’s event‑driven model—event definitions, publishing, and listeners—enables scalable, decoupled backend systems, compares listeners with MQ, shares performance benchmarks, and provides best‑practice guidelines for reliable, high‑throughput applications.

Mastering Message Queues: A Deep Dive into RabbitMQ, RocketMQ, and Kafka

This comprehensive guide explains the core components, exchange types, TTL, confirm mechanisms, consumer ACK/NACK, dead‑letter queues, and high‑availability features of RabbitMQ, RocketMQ, and Kafka, while also covering load balancing, ordering, transaction handling, and best practices for reliable message delivery.

Why Spring Boot 4’s Modular Architecture Boosts Performance and Maintainability

Spring Boot 4 introduces a modular architecture that splits the monolithic auto‑configuration package into focused modules, reducing size, speeding startup, improving memory usage, and offering clearer dependencies, while providing dedicated test starters and a classic starter for smooth migration from Spring Boot 3.

How Cursor Rules Transform AI‑Assisted Backend Development

This article explains the concept of Cursor Rules, their four application types, and how a layered, modular rule system is designed for a backend management project, including verification strategies and cross‑platform adaptation to ensure consistent, intelligent AI code generation across diverse development scenarios.

OPPO 2026 Campus Hiring: Salary Insights and In‑Depth Java Exception & Concurrency Guide

The article reviews OPPO’s 2026 campus hiring salaries for backend and algorithm roles, outlines the interview stages, and provides a comprehensive Java guide covering exceptions, checked vs unchecked, reference types, HashMap concurrency issues, ConcurrentHashMap internals, and the differences between synchronized and volatile.

How to Build a Dual‑Port Spring Boot App for Separate User and Admin Services

Learn how to create a dual‑port Spring Boot application that serves separate user and admin services on different ports, covering two implementation strategies—multiple Tomcat connectors and path‑prefix routing—plus advanced features like port‑aware interceptors, custom health checks, logging, and security controls.

Build High‑Availability Microservices with Spring Cloud Gateway and Nacos Load Balancing

This step‑by‑step tutorial shows how to eliminate single‑point failures by deploying multiple service instances, registering them with Nacos, configuring Spring Cloud Gateway, and using the lb:// protocol to achieve automatic client‑side load balancing for resilient microservices.

Microstrategy: A 9‑5‑Friendly Foreign Tech Company with Strong Java Interview Process

The article introduces Microstrategy, a US‑based BI firm with a large Hangzhou R&D center, outlines its generous 9‑5‑style work environment, details the interview stages—including written test, technical and non‑technical rounds—and provides concrete advice on self‑introduction, project presentation, system design, Canal‑MySQL sync, XXL‑Job video transcoding, Redis, MongoDB, SQL injection, Java exceptions, OOP concepts, and interview puzzles.

Unlock Java 17: Transform Your Code with Records, Sealed Classes, and Pattern Matching

This article explores JDK 17’s most impactful language enhancements—records, sealed classes, pattern matching, text blocks, var, and new APIs—showing how they reduce boilerplate, improve readability, and boost performance for Java developers transitioning from older versions.

How to Secure a Spring Boot Application with Spring Security and JWT

This step‑by‑step guide shows how to integrate Spring Security into a Spring Boot project, configure Maven dependencies, define User, Role and Permission entities, set up MyBatis mappers, implement JWT generation and validation, and build the service, controller, and configuration layers for a complete authentication system.

Master Spring Boot 3 Event Handling: From @EventListener to Transactional Events

This article explains how to use Spring Boot's event mechanism—including @EventListener, @TransactionalEventListener, and asynchronous processing—by walking through practical code examples, configuration tips, and common pitfalls to help developers build loosely‑coupled, reliable services.

Unlock Spring Boot’s Hidden Power: 10 Essential Tools to Supercharge Your Apps

Discover ten powerful Spring Boot features—from @Conditional beans and @ConfigurationProperties to Actuator, DevTools, Retry, Cache, testing, custom starters, Admin UI, and CLI—that dramatically boost development efficiency, code quality, and production readiness, with practical code examples and deep insights for modern Java backend development.

Top 10 Essential Java Development Tools from Alibaba for Faster Coding

This article introduces ten widely used Alibaba‑developed Java tools—including the Java Initializr scaffolding service, Arthas diagnostic utility, Dragonwell JDK, code‑style scanner, ARMS monitoring platform, PTS performance tester, AHAS high‑availability suite, EasyExcel, HandyJSON, and the Druid connection pool—highlighting their features, use cases, and links to official sites.

Xiaohongshu’s Explosive Salaries and a Complete Backend Interview Guide

The article reveals Xiaohongshu’s unusually high 2023 campus recruitment packages—over 51 w annual total—while also providing an extensive backend interview preparation guide covering TCP vs UDP differences, design patterns, workflow versus rule engines, message‑queue selection, and Redis data structures and eviction policies.

Master SpringDoc: Auto‑Generate OpenAPI Docs in Spring Boot with Zero Configuration

This guide explains how to integrate SpringDoc into a Spring Boot project to automatically generate OpenAPI 3 documentation, compares it with Swagger, shows minimal configuration steps, annotation usage, grouping techniques, and necessary adjustments for custom WebMvcConfigurer and Spring Security setups.

Why Replacing MyBatis with MyBatis‑Plus Can Break Your App—and How to Fix It

The article walks through swapping MyBatis for MyBatis‑Plus in a legacy Java project, explains the LocalDateTime conversion error caused by MyBatis 3.5.1 and an outdated MySQL driver, shows how upgrading mysql‑connector‑java resolves the issue, and warns that component upgrades can trigger cascading bugs that require thorough testing.

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

This article explains why read‑write separation is essential for high‑concurrency applications, discusses its limitations, and provides a step‑by‑step Spring Boot implementation—including datasource configuration, routing logic, context management, custom annotations, AOP handling, and usage examples—complete with code snippets and diagrams.

Unlock Spring Boot’s Hidden Power‑Ups: Conditional Beans, ConfigProps, Actuator & More

Explore the hidden power‑ups of Spring Boot—including @Conditional, @ConfigurationProperties, Actuator, DevTools, Retry, Cache, testing strategies, custom starters, Admin UI, and CLI—through concise explanations and complete code examples that demonstrate how to boost development efficiency and build production‑ready applications.

Mastering Object Storage: From Simple OSS Uploads to Advanced Multipart Strategies

This guide walks backend engineers through the fundamentals of object storage, showing how to perform quick OSS uploads, implement multipart uploads for large files, prevent duplicate uploads with MD5 checks, and secure files against malicious content using header validation, content scanning, and bucket isolation.

Mastering GraalVM Native Image Reflection: The Ultimate Guide for Spring Boot 3

This comprehensive guide explains why reflection configuration is essential for GraalVM native compilation, details Spring Boot 3's reflection mechanisms, enumerates common pitfalls with concrete solutions, and presents best‑practice strategies and tooling to reliably build native images for Java back‑ends.

Unlock Full Dependency Injection in Spring Boot 3 with Load‑Time Weaving

This article demonstrates how to extend Spring Boot 3's dependency injection to objects created with the new operator by using AspectJ load‑time weaving, @Configurable, META‑INF/aop.xml configuration, and the required -javaagent, providing step‑by‑step code examples and troubleshooting tips.

Build a Real‑Time Go Stock Analyzer with WebSocket & Vue Frontend

This article details version 3.0 of a Go‑based stock analysis system that adds sector classification, persistent watchlists, scheduled strategy evaluation, real‑time WebSocket market feeds, K‑line charting with technical indicators, a Vue front‑end, deployment steps, future roadmap, and a public GitHub repository.

8 Essential Defensive Programming Patterns for Spring Boot 3

This article explains why defensive programming is crucial for production‑grade Spring Boot 3 applications and presents eight concrete patterns—ranging from Optional‑based NPE safety and collection handling to configuration validation, async management, transaction control, testing, exception handling, circuit‑breaker integration, and reactive programming—each illustrated with real‑world code examples and best‑practice recommendations.

Designing High‑Performance API Gateways for Microservices: Best Practices & Code Samples

This article explores why API gateways are essential in microservice architectures, outlines core design functions such as routing, load balancing, authentication, rate limiting, and protocol translation, and provides practical code examples, performance‑tuning strategies, technology comparisons, and deployment guidelines for robust backend systems.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.