Tagged articles

Spring Boot

4575 articles · Page 26 of 46
Architecture Digest
Architecture Digest
Nov 6, 2023 · Backend Development

Using Lua Scripts in Spring Boot with Redis: A Comprehensive Guide

This article explains how to integrate Lua scripts into Spring Boot projects for Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation with code examples, error handling, security considerations, and best‑practice recommendations for backend developers.

LuaPerformance OptimizationRedis
0 likes · 19 min read
Using Lua Scripts in Spring Boot with Redis: A Comprehensive Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 3, 2023 · Backend Development

Unlock Massive Concurrency in Java with Virtual Threads and Structured Concurrency

This article introduces Java virtual threads, compares them with traditional platform threads, demonstrates multiple creation and execution patterns, showcases performance benefits through code examples, and explains structured concurrency as a preview feature for building high‑throughput, scalable backend applications.

ConcurrencyJavaSpring Boot
0 likes · 15 min read
Unlock Massive Concurrency in Java with Virtual Threads and Structured Concurrency
Code Ape Tech Column
Code Ape Tech Column
Nov 3, 2023 · Backend Development

Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools

After migrating a project to the MDP framework based on Spring Boot, the author observed swap overuse and physical memory far exceeding the 4 GB heap; using JVM native memory tracking, gperftools, strace, pmap, and a custom allocator, they traced a native‑memory leak to Spring Boot’s ZipInflaterInputStream during JAR scanning and resolved it by limiting scan paths.

JVMJavaMemory Leak
0 likes · 12 min read
Diagnosing Excessive Native Memory Usage in a Spring Boot Application Using JVM Native Memory Tracking and System Tools
政采云技术
政采云技术
Nov 1, 2023 · Backend Development

How Spring Boot Auto-Configuration Works: From @EnableAutoConfiguration to Bean Loading

This article explains Spring Boot's auto‑configuration mechanism, covering how @EnableAutoConfiguration loads configuration classes, the role of @AutoConfigurationPackage and @Import, the processing of spring.factories and metadata files, and how the main application class is registered in the IoC container.

Auto-configurationDependency InjectionJava
0 likes · 12 min read
How Spring Boot Auto-Configuration Works: From @EnableAutoConfiguration to Bean Loading
Shepherd Advanced Notes
Shepherd Advanced Notes
Nov 1, 2023 · Backend Development

Implementing a Dynamic AOP Log Aspect for Unified API Parameter Logging in Spring Boot

The article explains why logging API request and response parameters is essential for debugging, shows how to configure environment‑ and interface‑level switches, defines a simple @ApiLog annotation, implements an AOP aspect that records request details and response results, and demonstrates separating logs via Logback configuration while noting performance considerations.

AOPApiLogAspectJ
0 likes · 15 min read
Implementing a Dynamic AOP Log Aspect for Unified API Parameter Logging in Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Oct 31, 2023 · Backend Development

Master Redisson Distributed Locks in Java: Features, Code & Spring Boot

This article introduces Redisson, a Java framework built on Redis for distributed systems, detailing its extensive features such as distributed objects, locks, rate limiters, and task scheduling, and provides step‑by‑step guidance on integrating Redisson’s distributed lock into Spring Boot applications with code examples.

ConcurrencyJavaRedis
0 likes · 11 min read
Master Redisson Distributed Locks in Java: Features, Code & Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 31, 2023 · Backend Development

Mastering Custom Formatter SPI in Spring Boot 2.6.12

This guide explains how to use Spring's Formatter SPI and AnnotationFormatterFactory to create, register, and test custom type converters and annotation‑based formatters in a Spring Boot 2.6.12 application, complete with code samples and endpoint demonstrations.

AnnotationFormatterFactoryFormatter SPIJava
0 likes · 8 min read
Mastering Custom Formatter SPI in Spring Boot 2.6.12
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 30, 2023 · Databases

Easy-Es Tutorial: Simplify Elasticsearch Operations with a Java ORM Framework

This article introduces Easy-Es, a Java ORM framework built on Elasticsearch's RestHighLevelClient that simplifies query construction and CRUD operations, provides step‑by‑step setup including Maven dependencies, configuration, entity and mapper definitions, controller examples, and advanced features such as condition builders, index management, logging, and aggregation queries.

AggregationCRUDEasy-Es
0 likes · 8 min read
Easy-Es Tutorial: Simplify Elasticsearch Operations with a Java ORM Framework
Sanyou's Java Diary
Sanyou's Java Diary
Oct 26, 2023 · Backend Development

Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async

Explore the fundamentals and advanced techniques of asynchronous programming in Java, from basic thread creation and thread pools to Future, FutureTask, CompletableFuture, and Spring Boot’s @Async annotation, including practical code examples, event handling, and message queue integration for high‑throughput systems.

Asynchronous ProgrammingCompletableFutureConcurrency
0 likes · 17 min read
Master Asynchronous Java: Threads, Futures, CompletableFuture & @Async
Architecture Digest
Architecture Digest
Oct 26, 2023 · Backend Development

Diagnosing and Resolving Redis Connection Pool Blocking in a Spring Boot Application

The article details a week‑long investigation of a sandbox environment where Spring Boot APIs became unresponsive due to Redis connection pool blocking, describing the use of system tools, JVM thread analysis, and code inspection to identify mis‑configured pool settings and recommending proper connection handling with Spring's RedisTemplate.

ArthasJedisPerformance
0 likes · 8 min read
Diagnosing and Resolving Redis Connection Pool Blocking in a Spring Boot Application
Alibaba Cloud Native
Alibaba Cloud Native
Oct 25, 2023 · Backend Development

Unlock Java 21: Virtual Threads, Generational ZGC, and ARMS Monitoring Guide

This article introduces Java 21’s major enhancements—including lightweight virtual threads and generational ZGC—provides code samples for creating virtual threads and enabling ZGC, demonstrates a Spring Boot 3.x application using record patterns, and explains how to monitor Java 21 services with Alibaba Cloud ARMS on ACK.

ARMS MonitoringGenerational ZGCJava 21
0 likes · 12 min read
Unlock Java 21: Virtual Threads, Generational ZGC, and ARMS Monitoring Guide
Architect
Architect
Oct 24, 2023 · Information Security

How to Secure Spring Boot APIs with RSA Encryption: A Step‑by‑Step Guide

This article walks through the theory behind RSA, illustrates two battlefield‑style scenarios for encryption and signing, and then shows how to integrate RSA‑based request/response encryption into a Spring Boot application using Maven, annotations, configuration files, and a JavaScript front‑end, complete with code snippets and troubleshooting tips.

API EncryptionBackend SecurityJava
0 likes · 12 min read
How to Secure Spring Boot APIs with RSA Encryption: A Step‑by‑Step Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 21, 2023 · Backend Development

Comprehensive Spring Boot Tutorial: Configuration, Logging, MVC, Data Access, Docker, and Custom Starters

This tutorial provides an in‑depth guide to Spring Boot covering core concepts such as project setup, configuration files, logging frameworks, MVC architecture, CRUD examples, error handling, embedded servlet containers, Docker integration, JDBC/MyBatis/JPA data access, startup process, and how to create custom starter modules.

BackendConfigurationDocker
0 likes · 47 min read
Comprehensive Spring Boot Tutorial: Configuration, Logging, MVC, Data Access, Docker, and Custom Starters
Selected Java Interview Questions
Selected Java Interview Questions
Oct 20, 2023 · Backend Development

Using @ConfigurationProperties and @PropertySources in Spring Boot

This article explains the purpose and differences of Spring's @ConfigurationProperties and @PropertySources annotations, provides step‑by‑step guidance for creating POJOs, configuration classes, property files, and demonstrates how to bind and inject configuration values in a Spring Boot application with code examples.

@ConfigurationPropertiesJavaPropertySources
0 likes · 12 min read
Using @ConfigurationProperties and @PropertySources in Spring Boot
Java Architecture Diary
Java Architecture Diary
Oct 20, 2023 · Backend Development

Boost Spring Boot Development with mica-auto: Auto-Generate Starter Configurations

mica-auto is a Spring Boot starter tool that uses annotation processing to automatically generate configuration files such as spring.factories, AutoConfiguration.imports, and spring-devtools.properties, supporting Kotlin meta‑annotations and Java SPI, with Maven and Gradle integration instructions and version compatibility details.

Annotation ProcessorConfigurationGradle
0 likes · 3 min read
Boost Spring Boot Development with mica-auto: Auto-Generate Starter Configurations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 20, 2023 · Backend Development

Mastering Asynchronous APIs in Spring Boot 2.7: Boost Concurrency and Performance

This guide explains why asynchronous request interfaces are essential for high‑concurrency Spring Boot applications, outlines their advantages and typical use cases, and provides step‑by‑step code examples for DeferredResult, Callable, ResponseBodyEmitter, StreamingResponseBody, and reactive Mono implementations.

Asynchronous APIReactive MonoSpring Boot
0 likes · 13 min read
Mastering Asynchronous APIs in Spring Boot 2.7: Boost Concurrency and Performance
Selected Java Interview Questions
Selected Java Interview Questions
Oct 18, 2023 · Backend Development

Understanding Core Spring Boot Annotations: @SpringBootApplication, @SpringBootConfiguration, @EnableAutoConfiguration, and @ComponentScan

This article explains the core Spring Boot annotations—@SpringBootApplication, @SpringBootConfiguration, @EnableAutoConfiguration, and @ComponentScan—detailing their combined functionalities, usage patterns, and providing Java code examples to illustrate how they simplify application configuration and startup for developers.

ConfigurationJavaSpring Boot
0 likes · 7 min read
Understanding Core Spring Boot Annotations: @SpringBootApplication, @SpringBootConfiguration, @EnableAutoConfiguration, and @ComponentScan
Java High-Performance Architecture
Java High-Performance Architecture
Oct 17, 2023 · Information Security

Secure Your Spring Boot APIs with RSA: A Hands‑On Encryption & Decryption Guide

This article walks you through implementing RSA‑based encryption and digital signatures in a Spring Boot application, covering the theory of asymmetric cryptography, practical code snippets for Maven, configuration, controller annotations, and a JavaScript client that encrypts requests and verifies responses to protect API data from eavesdropping and tampering.

API EncryptionBackend SecurityJava
0 likes · 11 min read
Secure Your Spring Boot APIs with RSA: A Hands‑On Encryption & Decryption Guide
Sanyou's Java Diary
Sanyou's Java Diary
Oct 16, 2023 · Backend Development

Unveiling the Core Mechanics of Spring Cloud Config Center

This article dissects how Spring Cloud Config Center integrates with Spring Boot, detailing the startup phases, the prepareEnvironment logic, the bootstrap container that fetches remote configurations, and the @RefreshScope mechanism that enables dynamic property refreshes.

BootstrapNacosPropertySourceLocator
0 likes · 15 min read
Unveiling the Core Mechanics of Spring Cloud Config Center
Top Architect
Top Architect
Oct 16, 2023 · Information Security

RSA Encryption and Decryption in Spring Boot – A Practical Guide

This article explains the principles of RSA asymmetric encryption, illustrates two communication scenarios, and provides a step‑by‑step Spring Boot implementation with Maven dependencies, configuration, annotations, and front‑end JavaScript code to encrypt API requests and decrypt responses, helping developers secure their APIs.

API SecurityJavaRSA
0 likes · 12 min read
RSA Encryption and Decryption in Spring Boot – A Practical Guide
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 16, 2023 · Backend Development

How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot

The article explains why user privacy data must be masked, then walks through a Spring Boot solution that uses custom annotations, an aspect‑oriented filter, a contextual serializer and a flexible rule engine stored in Redis to achieve dynamic, high‑performance data desensitization without polluting business logic.

Custom AnnotationJacksonJava
0 likes · 18 min read
How to Elegantly Implement Dynamic, Configurable, High‑Performance Data Desensitization in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Oct 14, 2023 · Backend Development

Implementing Sign‑In and Statistics with Redis BitMap in Spring Boot

This article explains how to use Redis BitMap to build a memory‑efficient sign‑in feature and continuous‑sign‑in statistics in a Spring Boot microservice, covering basic BitMap commands, key design, core Java code, testing steps, and a bitmap‑based solution for cache‑penetration protection.

BackendBitmapSpring Boot
0 likes · 10 min read
Implementing Sign‑In and Statistics with Redis BitMap in Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Oct 14, 2023 · Backend Development

Spring Boot Startup Explained: From Main Method to Tomcat Launch

This article walks through the complete Spring Boot startup sequence, starting with the SpringApplication.run entry point, detailing the preparation, application context creation, and refresh phases, and shows how the embedded Tomcat server is instantiated and started, illustrated with code snippets and diagrams.

Embedded TomcatJavaSpring Boot
0 likes · 11 min read
Spring Boot Startup Explained: From Main Method to Tomcat Launch
Architecture Digest
Architecture Digest
Oct 13, 2023 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Custom Configurations, and PreDestroy

This article explains why using kill -9 to terminate Linux processes can cause data loss, demonstrates how to gracefully stop Spring Boot services with kill -15, the Actuator shutdown endpoint, and custom shutdown configurations, and shows how to add pre‑destroy hooks for backup tasks.

ActuatorGraceful ShutdownJava
0 likes · 19 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using Actuator, Custom Configurations, and PreDestroy
Architecture Digest
Architecture Digest
Oct 12, 2023 · Backend Development

Why You Should Stop Using Field Injection in Spring Boot

The article explains the drawbacks of field injection in Spring Boot—such as poor testability, loss of immutability, tighter framework coupling, risk of NullPointerExceptions, and hidden circular dependencies—and demonstrates how constructor injection provides a cleaner, more maintainable alternative with clear code examples.

Constructor InjectionDependency InjectionField Injection
0 likes · 7 min read
Why You Should Stop Using Field Injection in Spring Boot
Shepherd Advanced Notes
Shepherd Advanced Notes
Oct 12, 2023 · Backend Development

Using Zookeeper for Middleware: Implementing Distributed Locks and Service Registry in Spring Boot

This article explains Zookeeper's role as an open‑source distributed coordination service, covering its observer‑pattern design, data model, installation (single‑node and cluster), leader election, watcher mechanism, and demonstrates how to integrate Zookeeper as a service registry and distributed lock in Spring Boot using Curator, complete with code examples.

Leader ElectionSpring BootWatcher
0 likes · 25 min read
Using Zookeeper for Middleware: Implementing Distributed Locks and Service Registry in Spring Boot
Top Architect
Top Architect
Oct 11, 2023 · Backend Development

Netty TCP Client Demo with Spring Boot: Architecture, Implementation, and Testing

This article presents a complete Netty TCP client demo built with Spring Boot, detailing the project architecture, module layout, business flow, key code implementations—including a local BlockingQueue, message processing with Redis locks, client initialization, handler logic, and testing endpoints—providing a practical reference for backend developers.

JavaNettySpring Boot
0 likes · 21 min read
Netty TCP Client Demo with Spring Boot: Architecture, Implementation, and Testing
Programmer DD
Programmer DD
Oct 11, 2023 · Backend Development

How to Set a Custom Sender Alias in Spring Boot Email

This guide explains why Spring Boot emails may show the default no‑reply address instead of a custom product name and demonstrates how to configure the sender alias using SimpleMailMessage or MimeMessage with code examples.

Email AliasJava MailMailSender
0 likes · 4 min read
How to Set a Custom Sender Alias in Spring Boot Email
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2023 · Backend Development

Does Spring Boot’s connectionTimeout Affect Request Time? The Surprising Truth

This article demonstrates how Spring Boot’s connectionTimeout setting influences server‑client connections, using three experiments—controller sleep, HttpURLConnection requests, and raw socket communication—to reveal that the timeout only terminates idle client connections, not the duration of request processing.

HTTPJavaSocket
0 likes · 4 min read
Does Spring Boot’s connectionTimeout Affect Request Time? The Surprising Truth
macrozheng
macrozheng
Oct 10, 2023 · Backend Development

Master Spring Boot Startup Parameters: Tips, Options, and Best Practices

Learn how to launch Spring Boot applications with custom JVM and Spring options, understand common parameters like server port, profiles, and property overrides, explore code examples for retrieving values, and grasp the loading order and priority of configuration sources.

ConfigurationJavaSpring Boot
0 likes · 8 min read
Master Spring Boot Startup Parameters: Tips, Options, and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 10, 2023 · Backend Development

Master Elasticsearch with Spring Boot: 14 Essential Java API Operations

Learn how to integrate Elasticsearch 7.8 with Spring Boot 2.4, covering essential dependencies, index management, document CRUD, bulk operations, and advanced queries such as pagination, sorting, filtering, highlighting, aggregations, and grouping, all demonstrated with concise Java High-Level REST client code examples.

ElasticsearchJavaSpring Boot
0 likes · 14 min read
Master Elasticsearch with Spring Boot: 14 Essential Java API Operations
Architect
Architect
Oct 9, 2023 · Backend Development

Netty TCP Long‑Connection Demo with Spring Boot, Redis, and Message‑Queue Simulation

This article presents a complete Netty TCP long‑connection demo built with Spring Boot 2.2.0 and Redis, explains the project architecture, module layout, business flow using a local BlockingQueue instead of RocketMQ, and provides detailed source code for the queue holder, processing logic, client implementation, handler, and test controllers.

BackendJavaNetty
0 likes · 17 min read
Netty TCP Long‑Connection Demo with Spring Boot, Redis, and Message‑Queue Simulation
Top Architect
Top Architect
Oct 9, 2023 · Backend Development

Key Features of Spring Boot: Auto-Configuration, Starters, Embedded Server, Externalized Config, Actuator, DevTools, Testing, Ecosystem, Performance Optimization, and Continuous Learning

This article introduces Spring Boot’s core “magic” features—including auto‑configuration, starter dependencies, embedded servers, externalized configuration, Actuator, DevTools, testing support, ecosystem components, performance tips, and continuous learning—providing a comprehensive guide for building efficient Java backend applications.

Auto-configurationJavaPerformance Optimization
0 likes · 10 min read
Key Features of Spring Boot: Auto-Configuration, Starters, Embedded Server, Externalized Config, Actuator, DevTools, Testing, Ecosystem, Performance Optimization, and Continuous Learning
Java Backend Technology
Java Backend Technology
Oct 9, 2023 · Backend Development

How to Merge Requests in Spring Boot to Reduce DB Load and Boost Performance

This article explains how to combine multiple user queries into a single database request using a queue, ScheduledThreadPoolExecutor, and CompletableFuture in Spring Boot, demonstrating code implementations, handling Java 8 CompletableFuture timeout limitations, and showing performance gains through request merging under high concurrency.

Batch ProcessingConcurrencyJava
0 likes · 15 min read
How to Merge Requests in Spring Boot to Reduce DB Load and Boost Performance
Su San Talks Tech
Su San Talks Tech
Oct 9, 2023 · Backend Development

Why Did My Spring Cloud Gateway Crash? Uncovering Inode Exhaustion and the Fix

After a sudden 500 error crippled an online service, the author traced the issue to Spring Cloud Gateway’s HttpMessageReader creating temporary directories for every request, eventually exhausting inode space; the article explains the root cause, inode basics, and how upgrading to version 5.2.16 resolves the problem.

HttpMessageReaderSpring BootSpring Cloud Gateway
0 likes · 8 min read
Why Did My Spring Cloud Gateway Crash? Uncovering Inode Exhaustion and the Fix
Top Architect
Top Architect
Oct 7, 2023 · Backend Development

Why Field Injection Should Be Avoided in Spring Boot: Benefits of Constructor Injection

This article explains why field injection in Spring Boot should be avoided, highlighting its drawbacks such as poor testability, mutability, tight coupling, risk of null‑pointer exceptions, and circular dependencies, and demonstrates how constructor injection offers a cleaner, more maintainable alternative with code examples.

Constructor InjectionDependency InjectionField Injection
0 likes · 9 min read
Why Field Injection Should Be Avoided in Spring Boot: Benefits of Constructor Injection
macrozheng
macrozheng
Oct 7, 2023 · Databases

Deploy Apache Ignite and Compare Its Performance with MySQL

This guide walks through installing Apache Ignite via Docker, configuring it alongside MySQL in a Spring Boot project, setting up data sources and MyBatis, and performing benchmark tests to illustrate Ignite’s superior in‑memory SQL performance compared to traditional MySQL setups.

Apache IgniteDockerIn-Memory Database
0 likes · 11 min read
Deploy Apache Ignite and Compare Its Performance with MySQL
Architect's Guide
Architect's Guide
Oct 7, 2023 · Backend Development

Implementing Fuzzy Search on Encrypted Sensitive Fields in a Spring Boot Backend

This article explains how to enable fuzzy searches on encrypted sensitive fields such as names, phone numbers, and ID numbers in a Spring Boot backend by using a tokenized ciphertext mapping table, outlining four possible solutions, recommending the tokenized approach, and providing complete configuration and code examples.

Database EncryptionMySQLSpring Boot
0 likes · 11 min read
Implementing Fuzzy Search on Encrypted Sensitive Fields in a Spring Boot Backend
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 7, 2023 · Information Security

Secure API Responses with Data Masking, Encryption, and Jackson Annotations

This article explains practical methods to protect sensitive API data in Spring Boot applications, covering encryption, masking, access control, logging, HTTPS, and database security, and demonstrates three implementation approaches: SQL‑level masking, field‑level encryption, and custom Jackson serialization using annotations and a contextual serializer.

API SecurityJacksonJava
0 likes · 8 min read
Secure API Responses with Data Masking, Encryption, and Jackson Annotations
Selected Java Interview Questions
Selected Java Interview Questions
Oct 6, 2023 · Backend Development

Building Microservices with Spring Cloud: Concepts, Core Components, and a Step‑by‑Step Implementation Guide

This article explains the fundamentals of microservice architecture, introduces Spring Cloud and its core components, and provides a step‑by‑step tutorial for building a distributed e‑commerce system using Spring Boot, Eureka, Ribbon, Feign, and related Spring Cloud features.

EurekaSpring BootSpring Cloud
0 likes · 11 min read
Building Microservices with Spring Cloud: Concepts, Core Components, and a Step‑by‑Step Implementation Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 6, 2023 · Backend Development

Secure Your Spring Boot Data with MyBatis Custom TypeHandler Encryption

This tutorial demonstrates how to integrate a custom MyBatis TypeHandler in a Spring Boot 2.6.12 application to automatically encrypt sensitive fields before persisting them to MySQL and decrypt them on retrieval, covering dependencies, configuration, entity definition, encryption utilities, mapper XML, and test cases.

Custom TypeHandlerJPAJava
0 likes · 10 min read
Secure Your Spring Boot Data with MyBatis Custom TypeHandler Encryption
Java Architect Essentials
Java Architect Essentials
Oct 5, 2023 · Backend Development

Understanding and Implementing AOP in Spring Boot: Concepts, Annotations, and Practical Examples

This article explains the fundamentals of Aspect‑Oriented Programming (AOP) in Spring, describes key concepts such as pointcuts, advice, aspects, and weaving, and provides step‑by‑step code examples—including simple and advanced use cases and detailed annotation usage—to help developers integrate AOP effectively into their Spring Boot applications.

AOPJavaSpring AOP
0 likes · 17 min read
Understanding and Implementing AOP in Spring Boot: Concepts, Annotations, and Practical Examples
Selected Java Interview Questions
Selected Java Interview Questions
Oct 4, 2023 · Backend Development

Implementing Captcha‑Based Login in a Frontend‑Backend Separated Spring Boot Application

This article demonstrates how to implement a captcha‑based login mechanism in a Spring Boot application with a front‑end/back‑end separation, detailing the traditional session‑based approach, the new Redis‑backed token solution, and providing complete code examples for configuration, service, controller, and data objects.

BackendCAPTCHARedis
0 likes · 12 min read
Implementing Captcha‑Based Login in a Frontend‑Backend Separated Spring Boot Application
Su San Talks Tech
Su San Talks Tech
Oct 4, 2023 · Backend Development

Master Swagger: Build, Customize, and Secure Your Spring Boot API Docs

This guide explains what Swagger is, why it’s useful for RESTful APIs, and provides step‑by‑step instructions for integrating Swagger 3.0 with Spring Boot 2.7, handling version conflicts, customizing documentation, adding security, and using annotations to enrich API metadata.

API documentationJavaSpring Boot
0 likes · 22 min read
Master Swagger: Build, Customize, and Secure Your Spring Boot API Docs
Selected Java Interview Questions
Selected Java Interview Questions
Oct 3, 2023 · Backend Development

Spring Boot Best Practices for Developers

This article presents a comprehensive set of Spring Boot best practices for developers, covering proper package structuring, design patterns, starter dependencies, production-ready versions, Lombok usage, constructor injection, slf4j logging, controller responsibilities, service layer logic, null‑pointer avoidance, collection handling, pagination, caching, custom exception and response handling, code cleanup, meaningful naming, case conventions, simplicity, formatting standards, and tooling such as SonarLint.

JavaLombokSpring Boot
0 likes · 17 min read
Spring Boot Best Practices for Developers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 2, 2023 · Backend Development

Mastering Rate Limiting in Spring Boot: Token Bucket, Leaky Bucket, and Counter Techniques

An in‑depth guide explains three rate‑limiting algorithms—counter, leaky bucket, and token bucket—demonstrates their implementation in Spring Boot using Guava’s RateLimiter and Baidu’s ratelimiter‑spring‑boot‑starter, provides full Maven dependencies, configuration snippets, and Java code examples, and shows testing results.

GuavaSpring Bootbackend development
0 likes · 8 min read
Mastering Rate Limiting in Spring Boot: Token Bucket, Leaky Bucket, and Counter Techniques
Java Architect Essentials
Java Architect Essentials
Oct 2, 2023 · Backend Development

Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot

This article explains how to structure a Spring Boot controller by describing the four parts of a request, demonstrating elegant parameter validation, implementing a unified response wrapper with status codes, and handling both validation and business exceptions through centralized advice and custom exception classes.

ControllerJavaResponse Wrapper
0 likes · 22 min read
Standardizing the Controller Layer: Parameter Validation, Unified Response, and Exception Handling in Spring Boot
Architect
Architect
Oct 1, 2023 · Backend Development

Batch Request Merging in Spring Boot to Reduce Database Connections

This article demonstrates how to merge multiple user‑info requests on the server side using a blocking queue, ScheduledThreadPoolExecutor, and CompletableFuture in Spring Boot, thereby consolidating SQL queries into a single batch call to save database connection resources while handling high concurrency.

Batch ProcessingCompletableFutureJava concurrency
0 likes · 13 min read
Batch Request Merging in Spring Boot to Reduce Database Connections
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 30, 2023 · Backend Development

Mastering RabbitMQ Delayed and Priority Queues with Spring Boot

This guide explains how to implement delayed and priority queues in RabbitMQ 3.8 using Spring Boot 2.6, covering dead‑letter exchange configuration, message expiration, priority settings, code examples for sending and consuming messages, and practical considerations such as priority limits and ordering behavior.

JavaRabbitMQSpring Boot
0 likes · 8 min read
Mastering RabbitMQ Delayed and Priority Queues with Spring Boot
Su San Talks Tech
Su San Talks Tech
Sep 29, 2023 · Backend Development

Unify Spring Boot API Responses and Streamline Exception Handling

This article explains how to standardize API return formats with a generic Result object, define error codes and custom exceptions, implement a global exception handler, use ResponseBodyAdvice for automatic response wrapping, and package these utilities into a reusable Spring Boot starter for cleaner backend code.

Global ExceptionResponseBodyAdviceResult Wrapper
0 likes · 14 min read
Unify Spring Boot API Responses and Streamline Exception Handling
Top Architect
Top Architect
Sep 28, 2023 · Backend Development

Key Changes in Spring Boot 3.0.0 M1: Java 17 Baseline, Jakarta EE Migration, and Dependency Updates

Spring Boot 3.0.0 M1 introduces a Java 17 baseline, requires migration of all Java EE APIs to Jakarta EE, removes support for several third‑party libraries, updates numerous Spring project dependencies, and outlines the upcoming release cadence, while also highlighting community resources and promotional offers.

Jakarta EEJava 17Spring Boot
0 likes · 7 min read
Key Changes in Spring Boot 3.0.0 M1: Java 17 Baseline, Jakarta EE Migration, and Dependency Updates
Java High-Performance Architecture
Java High-Performance Architecture
Sep 28, 2023 · Databases

How to Use Debezium for MySQL CDC in Spring Boot Without Adding Extra Middleware

Learn how to capture MySQL data changes using Debezium's CDC capabilities within a Spring Boot application, avoiding heavyweight message brokers by leveraging binlog monitoring, configuring connectors, handling snapshots, and processing change events for use cases like cache invalidation, data integration, and simplifying monolithic architectures.

CDCData IntegrationDebezium
0 likes · 24 min read
How to Use Debezium for MySQL CDC in Spring Boot Without Adding Extra Middleware
Top Architect
Top Architect
Sep 27, 2023 · Backend Development

Unified Exception Handling in Spring Boot: Principles, Implementation, and Best Practices

This article provides a detailed guide on implementing unified exception handling in Spring Boot applications, covering background concepts, the use of @ControllerAdvice and @ExceptionHandler, custom assertion utilities, error response structures, and practical examples for handling various controller and service layer exceptions efficiently.

JavaSpring BootUnified Error Handling
0 likes · 23 min read
Unified Exception Handling in Spring Boot: Principles, Implementation, and Best Practices
Architect
Architect
Sep 26, 2023 · Backend Development

Comprehensive Guide to Spring MVC Annotations and Related Spring Annotations

This article provides a detailed overview of Spring MVC and Spring Boot annotations such as @RequestMapping, @GetMapping, @PostMapping, @RequestBody, @ControllerAdvice, @Component, @Bean, @Scope, @Autowired, and others, explaining their purposes, attributes, usage patterns, and offering practical code examples for each.

BackendDependency InjectionJava
0 likes · 15 min read
Comprehensive Guide to Spring MVC Annotations and Related Spring Annotations
Architect
Architect
Sep 24, 2023 · Backend Development

Mastering Unified Exception Handling in Spring Boot: Clean Code with Assertions

This article explains how to replace repetitive try‑catch blocks with a unified exception handling framework in Spring Boot, using @ControllerAdvice, custom Assert utilities, and enum‑based error codes, while showing concrete code examples, configuration steps, and runtime results.

BackendEnumJava
0 likes · 24 min read
Mastering Unified Exception Handling in Spring Boot: Clean Code with Assertions
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 24, 2023 · Backend Development

Create a Custom HttpMessageConverter in Spring Boot 2.6

This article demonstrates how to create a custom HttpMessageConverter in Spring Boot 2.6.12 to parse a simple “name:张三,age:20” string into a Users object, configure it in WebMvc, and explains the underlying Spring MVC request‑handling flow that invokes the converter.

Custom ConverterHttpMessageConverterRequestBody
0 likes · 8 min read
Create a Custom HttpMessageConverter in Spring Boot 2.6
21CTO
21CTO
Sep 24, 2023 · Backend Development

Why Java 21 Is Driving the Surge in Spring Cloud Adoption

Oracle's Java 21 release introduces virtual threads, record patterns, ordered collections and a preview FFM API, while Eclipse survey data shows rising Spring and Spring Boot usage and accelerating cloud‑native adoption among Java developers.

Java 21Spring BootVirtual Threads
0 likes · 5 min read
Why Java 21 Is Driving the Surge in Spring Cloud Adoption
macrozheng
macrozheng
Sep 22, 2023 · Backend Development

Build a Zero‑Code Backend Admin System in Minutes with Erupt

This article introduces the Erupt framework—a pure‑Java, annotation‑driven backend admin solution that requires no front‑end code, generates CRUD interfaces automatically, and can spin up a complete management system in just a few minutes, with step‑by‑step setup, configuration, and customization examples.

EruptJavaSpring Boot
0 likes · 12 min read
Build a Zero‑Code Backend Admin System in Minutes with Erupt
Code Ape Tech Column
Code Ape Tech Column
Sep 22, 2023 · Backend Development

Elegant Ways to Transfer Data Between Parent and Child Threads in Spring Boot

This article introduces four methods—manual setting, TaskDecorator, InheritableThreadLocal, and TransmittableThreadLocal—to propagate contextual data such as user information from a parent thread to child threads in Spring Boot asynchronous execution, providing code examples and practical recommendations.

Asynchronous ProgrammingJavaSpring Boot
0 likes · 13 min read
Elegant Ways to Transfer Data Between Parent and Child Threads in Spring Boot
Java Architecture Diary
Java Architecture Diary
Sep 21, 2023 · Backend Development

Unlock Java 21: New Features, Virtual Threads, and Migration Tips

Java 21, the latest LTS release, introduces virtual threads, sequenced collections, record patterns, and other enhancements; the article explains these new features, guides developers on configuring IDEs and runtimes with Azul Zulu and IntelliJ IDEA, and resolves Lombok incompatibility by updating to version 1.18.30.

Java 21LombokSpring Boot
0 likes · 4 min read
Unlock Java 21: New Features, Virtual Threads, and Migration Tips
Top Architect
Top Architect
Sep 19, 2023 · Operations

Building a Real‑Time ELK Log Analysis Platform and Integrating It with Spring Boot and Nginx

This tutorial explains why centralized log collection is essential for micro‑service systems, introduces the ELK stack (Elasticsearch, Logstash, Kibana), provides step‑by‑step installation on Ubuntu, shows how to configure Logstash shipper and indexer pipelines, and demonstrates integration with Spring Boot and Nginx logs for real‑time monitoring.

ELKElasticsearchKibana
0 likes · 20 min read
Building a Real‑Time ELK Log Analysis Platform and Integrating It with Spring Boot and Nginx
Programmer DD
Programmer DD
Sep 19, 2023 · Backend Development

Spring Boot Virtual Threads vs WebFlux: Which Delivers Better Performance?

This article summarizes a performance comparison between Spring Boot applications using virtual threads and those built with Spring WebFlux, detailing the test scenario of JWT verification and MySQL queries, the environment, code implementations, benchmark results across various concurrency levels, and concluding that WebFlux outperforms virtual‑threaded Spring Boot.

JWTMySQLSpring Boot
0 likes · 9 min read
Spring Boot Virtual Threads vs WebFlux: Which Delivers Better Performance?
Shepherd Advanced Notes
Shepherd Advanced Notes
Sep 19, 2023 · Backend Development

How Douyin Implements IP Geolocation: A Java Backend Tutorial

This article explains how to retrieve a client’s real IP behind proxies, choose the appropriate forwarding header, and use the open‑source ip2region library to map the IP to a geographic location, with complete Java and Spring Boot code examples.

HttpServletRequestIP GeolocationJava
0 likes · 17 min read
How Douyin Implements IP Geolocation: A Java Backend Tutorial
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 18, 2023 · Backend Development

Why MyBatis SqlSession Crashes with Multiple Threads and How Spring Fixes It

This article examines the ClassCastException that occurs when 100 threads concurrently query MyBatis using a shared SqlSession, analyzes the root cause in DefaultSqlSession and BaseExecutor, and explains how Spring Boot’s MyBatis integration employs SqlSessionTemplate, ThreadLocal binding, and transaction management to guarantee thread‑safe SqlSession usage.

MyBatisSpring BootSqlSession
0 likes · 21 min read
Why MyBatis SqlSession Crashes with Multiple Threads and How Spring Fixes It
Code Ape Tech Column
Code Ape Tech Column
Sep 16, 2023 · Backend Development

Batch Request Merging in Java to Reduce Database Connections

This article explains how to merge multiple user‑detail requests on the server side using a blocking queue, scheduled thread pool and CompletableFuture in Spring Boot, thereby converting many individual SQL calls into a single batch query, saving database connections and improving high‑concurrency performance.

Batch ProcessingCompletableFutureConcurrency
0 likes · 13 min read
Batch Request Merging in Java to Reduce Database Connections
Java Captain
Java Captain
Sep 15, 2023 · Backend Development

A Comprehensive Guide to the 50 Most Common Spring Boot Annotations

This article provides an in‑depth overview of the most frequently used Spring Boot annotations, categorizing them into Spring MVC, Spring Data JPA, Spring Security, and other essential annotations, and demonstrates their practical usage with concise examples.

BackendJavaSpring Boot
0 likes · 5 min read
A Comprehensive Guide to the 50 Most Common Spring Boot Annotations
Java High-Performance Architecture
Java High-Performance Architecture
Sep 15, 2023 · Backend Development

Build API Interfaces Instantly with Dataway in Spring Boot

This tutorial walks through integrating Dataway—a UI‑driven, code‑free API configuration tool based on DataQL—into a Spring Boot project, covering Maven dependencies, property settings, datasource setup, Hasor module integration, enabling annotations, and publishing a test endpoint.

API ConfigurationDataQLDataway
0 likes · 14 min read
Build API Interfaces Instantly with Dataway in Spring Boot
Architecture Digest
Architecture Digest
Sep 14, 2023 · Backend Development

Integrating Dataway with Spring Boot: A Step‑by‑Step Guide

This guide explains how to embed Dataway—a DataQL‑based API configuration tool—into a Spring Boot application, covering dependency setup, property configuration, datasource integration, Hasor module wiring, enabling Hasor, launching the app, accessing the UI, creating and publishing APIs using SQL or DataQL, and verifying the results.

API ConfigurationBackendDataQL
0 likes · 12 min read
Integrating Dataway with Spring Boot: A Step‑by‑Step Guide
Java Architect Essentials
Java Architect Essentials
Sep 13, 2023 · Backend Development

Key Changes in Spring Boot 3.0.0 M1 Release

The Spring Boot 3.0.0 M1 milestone upgrades the Java baseline to Java 17, migrates all Java EE APIs to Jakarta EE, removes support for several third‑party libraries, updates a long list of Spring and external dependencies, and outlines the upcoming release cadence.

Jakarta EEJava 17Spring Boot
0 likes · 5 min read
Key Changes in Spring Boot 3.0.0 M1 Release