Tag

spring-boot

1 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 11, 2025 · Backend Development

Master Spring Boot Testing: Real‑World Cases and Advanced Techniques

This article provides a comprehensive guide to Spring Boot testing, covering core utilities, essential annotations, dependency libraries, web environment configurations, and practical code examples for unit, slice, and integration tests across JUnit, MockMvc, TestRestTemplate, JPA, Redis, and REST client scenarios.

datajpadataredisjunit5
0 likes · 14 min read
Master Spring Boot Testing: Real‑World Cases and Advanced Techniques
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 26, 2025 · Backend Development

How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor

This article demonstrates how to dynamically register Spring Boot 3 beans using BeanDefinitionRegistryPostProcessor and configuration properties, covering property setup, bean class definition, post‑processor implementation, registration in a configuration class, and a CommandLineRunner test that prints the created beans.

BeanDefinitionRegistryPostProcessorDynamic Bean Registrationconfiguration-properties
0 likes · 7 min read
How to Dynamically Register Beans in Spring Boot 3 Using BeanDefinitionRegistryPostProcessor
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2025 · Backend Development

Master Spring Boot 3: 5 Real-World Cases & Code Samples

This article presents a curated collection of practical Spring Boot 3 examples—including JSON parsing, automatic database script execution, custom DataSource configuration, properties/YAML loading, and data binding with validation—complete with code snippets and configuration details for Java backend developers.

BackendConfigurationJSON
0 likes · 8 min read
Master Spring Boot 3: 5 Real-World Cases & Code Samples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 25, 2024 · Backend Development

Mastering Spring Boot 3 Validation: From Annotations to Global Error Handling

This article provides a comprehensive guide to data validation in Spring Boot 3, covering Bean Validation annotations, controller and service‑layer checks, JPA entity validation, custom constraints, validation groups, programmatic validation, and internationalized error messages with practical code examples and tests.

Bean ValidationInternationalizationJPA
0 likes · 16 min read
Mastering Spring Boot 3 Validation: From Annotations to Global Error Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 8, 2024 · Backend Development

7 Ways to Load Property Files in Spring Boot 3.2.5

This article explains seven practical methods for loading property files in Spring Boot, covering default locations, external files, classpath resources, profile‑specific files, custom @PropertySource usage, and overriding via environment variables or JVM system properties.

Configurationbackend-developmentproperty-files
0 likes · 7 min read
7 Ways to Load Property Files in Spring Boot 3.2.5
Java Architect Essentials
Java Architect Essentials
Sep 23, 2024 · Backend Development

Token Storage and Validation in Distributed Micro‑services with Spring Boot and Vue

This article demonstrates how to generate, store, and validate login tokens for both PC and mobile clients in a distributed micro‑service architecture using Spring Boot, Redis, custom annotations, AOP verification, and a Vue front‑end that manages token lifecycle and expiration.

MicroservicesRedisVue
0 likes · 15 min read
Token Storage and Validation in Distributed Micro‑services with Spring Boot and Vue
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 27, 2024 · Backend Development

Master Spring Boot Request Logging and Custom Filters in 4 Steps

This guide explains how to enable comprehensive request logging, use request/response wrappers, implement once‑per‑request filters, and define clean controller interfaces in Spring Boot 3.2.5, providing code examples and configuration tips for robust backend development.

BackendFiltersJava
0 likes · 7 min read
Master Spring Boot Request Logging and Custom Filters in 4 Steps
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 18, 2024 · Backend Development

6 Proven Strategies to Eliminate if‑else in Spring Boot Projects

This article explains why excessive if‑else statements hurt Spring Boot code and presents six practical techniques—including strategy pattern, enums, polymorphism, lambda expressions, command pattern, and guard clauses—along with complete Java examples to make your backend more modular, readable, and maintainable.

Backenddesign patternsrefactoring
0 likes · 10 min read
6 Proven Strategies to Eliminate if‑else in Spring Boot Projects
Java Architecture Diary
Java Architecture Diary
Jun 21, 2024 · Backend Development

What’s New in Spring Boot 3.3.1? Bug Fixes and Dependency Upgrades Explained

Spring Boot 3.3.1 introduces a comprehensive set of bug fixes, documentation updates, and numerous dependency upgrades, while also warning that the 3.0‑3.1 series has reached end‑of‑life, urging developers to migrate to the latest version for continued support.

BackendBug FixesDependency Upgrade
0 likes · 7 min read
What’s New in Spring Boot 3.3.1? Bug Fixes and Dependency Upgrades Explained
Java Architecture Diary
Java Architecture Diary
Sep 7, 2023 · Fundamentals

What’s New in Java 21? A Complete Guide to Features and Version History

This article outlines Java 21’s release as the next LTS, highlights its new standard, preview, and incubating features—including virtual threads, record patterns, and the Vector API—and provides a concise timeline of major enhancements from Java 8 through Java 20.

java21jdk-featureslts
0 likes · 8 min read
What’s New in Java 21? A Complete Guide to Features and Version History
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 24, 2023 · Backend Development

Implement Rate Limiting with Spring Cloud Gateway and Redis

This tutorial explains how to restrict client access to specific APIs within a time window using Spring Cloud Gateway and Redis, covering the concept, implementation options, and complete code examples for a Redis‑backed rate limiter.

JavaRedisSpring Cloud Gateway
0 likes · 5 min read
Implement Rate Limiting with Spring Cloud Gateway and Redis
Java Architecture Diary
Java Architecture Diary
Mar 21, 2023 · Backend Development

How to Generate Interactive Spring Boot Startup Reports for Faster Apps

This guide explains how to add the spring-boot-startup-report library to a Spring Boot project, generate interactive HTML startup reports with bean details and flame graphs, view them during runtime or integration tests, and configure the dependency for production or test scopes.

JavaPerformancespring-boot
0 likes · 4 min read
How to Generate Interactive Spring Boot Startup Reports for Faster Apps
Top Architect
Top Architect
Dec 30, 2022 · Backend Development

Implementing a Spring Cloud Gateway as a Unified Authentication and Authorization Entry Point

This article demonstrates how to build a Spring Cloud Gateway microservice that serves as a centralized authentication and authorization gateway, covering Maven dependencies, YAML configuration, whitelist handling, exception processing, RestTemplate setup, and a custom global filter with code examples.

JavaSpring Cloudauthentication
0 likes · 8 min read
Implementing a Spring Cloud Gateway as a Unified Authentication and Authorization Entry Point
Top Architect
Top Architect
Mar 6, 2022 · Backend Development

Resolving Duplicate Access‑Control‑Allow‑Origin Header Issues in Spring Cloud Gateway

This article explains why Spring Cloud Gateway can return duplicate Access‑Control‑Allow‑Origin and Vary headers during CORS handling, analyzes the underlying processing flow, and provides two practical solutions—using DedupeResponseHeader configuration or implementing a custom GlobalFilter—to ensure a single, correct header is sent to the client.

BackendCORSJava
0 likes · 10 min read
Resolving Duplicate Access‑Control‑Allow‑Origin Header Issues in Spring Cloud Gateway
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 8, 2021 · Backend Development

Build a Complex Approval Workflow with Spring Boot & Activiti Using Exclusive Gateway

This tutorial walks through creating a leave‑approval process in Spring Boot 2.3.12 with Activiti 7.1, illustrating how an Exclusive Gateway routes requests based on leave days, how flags control loop‑back or completion, and provides full BPMN, service, and controller code examples.

BPMNbackend developmentexclusive-gateway
0 likes · 12 min read
Build a Complex Approval Workflow with Spring Boot & Activiti Using Exclusive Gateway
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 19, 2021 · Backend Development

Integrating Apache Kafka with Spring Boot: Concepts, Architecture, and Code Example

This article introduces Apache Kafka, explains its publish‑subscribe and point‑to‑point models, outlines why it is used for decoupling and high‑availability, and provides a step‑by‑step Spring Boot integration guide with configuration, producer and consumer code samples.

Distributed SystemsJavaKafka
0 likes · 12 min read
Integrating Apache Kafka with Spring Boot: Concepts, Architecture, and Code Example
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2021 · Backend Development

How to Install, Configure, and Test RocketMQ Console 2.0 with Spring Boot

This guide walks you through setting up RocketMQ Console 2.0 on a RocketMQ 4.8.0 cluster, configuring its properties, building and running the service, and testing message sending and receiving using a Spring Boot application, including topic creation tips.

BackendMessagingRocketMQ
0 likes · 6 min read
How to Install, Configure, and Test RocketMQ Console 2.0 with Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 7, 2021 · Information Security

How Spring Security Authenticates Users: A Step‑by‑Step Deep Dive

This tutorial walks through Spring Security's authentication flow in a Spring Boot 2.2.11 application, detailing filter execution, token creation, provider verification, custom DaoAuthenticationProvider configuration, and session management with code examples and diagrams.

BackendJavaSession Management
0 likes · 7 min read
How Spring Security Authenticates Users: A Step‑by‑Step Deep Dive
Java Captain
Java Captain
Feb 21, 2021 · Operations

Exposing Spring Boot Metrics with Prometheus and Visualizing Them in Grafana

This tutorial explains how to add Actuator and Prometheus dependencies to a Spring Boot application, configure security, expose metrics endpoints, run Prometheus and Grafana via Docker, and set up Grafana dashboards for real‑time monitoring of Spring Boot services.

ActuatorDockerGrafana
0 likes · 4 min read
Exposing Spring Boot Metrics with Prometheus and Visualizing Them in Grafana
Java Architecture Diary
Java Architecture Diary
Nov 25, 2019 · Backend Development

Why Does ApplicationContextInitializer Run Twice? Debugging Spring Boot Startup

This article explains the purpose of ApplicationContextInitializer in Spring Boot, shows how to implement custom conditions and initializers for environment‑specific configuration, and investigates why the initializer may execute twice when Spring Cloud Context is added, leading to bean duplication and port conflicts.

Spring Cloudapplicationcontextinitializercustom-condition
0 likes · 5 min read
Why Does ApplicationContextInitializer Run Twice? Debugging Spring Boot Startup