Spring Full-Stack Practical Cases
Author

Spring Full-Stack Practical Cases

Full-stack Java development with Vue 2/3 front-end suite; hands-on examples and source code analysis for Spring, Spring Boot 2/3, and Spring Cloud.

1.1k
Articles
0
Likes
6.4k
Views
0
Comments
Recent Articles

Latest from Spring Full-Stack Practical Cases

100 recent articles max
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 2, 2026 · Backend Development

Simplify Resource Cleanup in JUnit with the New @AutoClose Annotation

The article introduces JUnit's @AutoClose annotation (added in version 5.11), compares the traditional @BeforeEach/@AfterEach cleanup pattern with the annotation's automatic resource closing, and demonstrates its use across file I/O, database connections, HTTP clients, streams, and custom AutoCloseable classes, including warning behavior for null fields.

@AutoCloseJUnitJUnit5
0 likes · 8 min read
Simplify Resource Cleanup in JUnit with the New @AutoClose Annotation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 2, 2026 · Big Data

Millisecond‑Level Real‑Time Sync from MySQL to Elasticsearch with Flink CDC

This guide walks through setting up a Spring Boot 3.5 environment, configuring Flink 1.20 and Flink CDC 3.5, preparing MySQL tables, and using both the Flink CDC CLI and SQL client to achieve near‑millisecond synchronization of data from MySQL to Elasticsearch, including custom sink programming and real‑time monitoring via the Flink Web UI.

Apache FlinkElasticSearchFlink CDC
0 likes · 14 min read
Millisecond‑Level Real‑Time Sync from MySQL to Elasticsearch with Flink CDC
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 1, 2026 · Backend Development

20 Essential Exception‑Handling Rules to Prevent Crashes in Java

This article presents twenty practical rules for handling exceptions in Java, covering why catching RuntimeException is discouraged, how to avoid using exceptions for control flow, proper use of finally blocks, logging best practices, custom exception design, and early input validation to keep applications stable and maintainable.

JavaSpring Bootbest practices
0 likes · 19 min read
20 Essential Exception‑Handling Rules to Prevent Crashes in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 1, 2026 · Backend Development

Real‑Time Communication with Spring Boot + WebSocket: Multi‑Client Sessions, Private Chat, and Broadcast

This article demonstrates how to use Spring Boot 3.5.0 with WebSocket + STOMP to build real‑time messaging, covering environment setup, WebSocket configuration, a user‑binding interceptor, and concrete code for private‑user messages, point‑to‑point chats, and global broadcasts, complete with sample results.

BroadcastJavaSpring Boot
0 likes · 7 min read
Real‑Time Communication with Spring Boot + WebSocket: Multi‑Client Sessions, Private Chat, and Broadcast
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 30, 2026 · Backend Development

Auto‑Optimizing Resilience4j Circuit Breaker Settings with Spring AI

This article demonstrates how to replace static Resilience4j circuit‑breaker parameters in a Spring Boot 3.5 application with dynamically generated values using Spring AI, detailing environment setup, code examples, AI prompt construction, and runtime configuration replacement to improve fault tolerance.

Circuit BreakerResilience4jSpring AI
0 likes · 9 min read
Auto‑Optimizing Resilience4j Circuit Breaker Settings with Spring AI
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 29, 2026 · Backend Development

Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot

This article shows how to replace static DTO definitions with a zero‑intrusion, high‑concurrency solution for column‑level data masking in Spring Boot 3.5.0 by leveraging Jackson's serialization pipeline, a global Mixin, custom annotations, a contextual serializer, and a ResponseBodyAdvice that respects request‑scoped permissions.

DTOJacksonResponseBodyAdvice
0 likes · 10 min read
Stop Hardcoding DTOs: Dynamic Column‑Level Masking in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 28, 2026 · Backend Development

5 Advanced Techniques to Preserve Context in Spring Boot Async Calls

In Spring Boot 3.5.0, asynchronous threads lose MDC, security, and request data because ThreadLocal is not shared; the article demonstrates five concrete solutions—including InheritableThreadLocal, thread joining, custom TaskDecorator, Spring Security delegating wrappers, and MDC propagation—each with code samples, pitfalls, and best‑practice warnings.

@AsyncInheritableThreadLocalMDC
0 likes · 12 min read
5 Advanced Techniques to Preserve Context in Spring Boot Async Calls