Tagged articles

Spring Boot

4358 articles · Page 19 of 44
Code Ape Tech Column
Code Ape Tech Column
Sep 2, 2024 · Backend Development

Designing and Implementing a Workflow Approval System with Activiti

This article explains how to design a multi‑level workflow approval system using the Activiti engine, covering process diagram creation, deployment, task handling, variable management, exclusive gateways, and complete project configuration with Spring Boot and an H2 database.

ActivitiBPMNSpring Boot
0 likes · 26 min read
Designing and Implementing a Workflow Approval System with Activiti
Java Architect Essentials
Java Architect Essentials
Sep 2, 2024 · Backend Development

Dynamic Loading of JAR Files in Spring Boot Applications

This article explains how to dynamically load JAR files in a Spring Boot application, covering core concepts, benefits, usage of SpringBootClassLoader, creation of JARs, and alternative third‑party OSGi‑resource‑locator approaches with full code examples.

Dynamic LoadingOSGiSpring Boot
0 likes · 8 min read
Dynamic Loading of JAR Files in Spring Boot Applications
Ubiquitous Tech
Ubiquitous Tech
Sep 1, 2024 · Backend Development

Mastering Advanced Spring Boot Starter Configurations: 4 Essential Techniques

This article walks through four advanced Spring Boot Starter design patterns—Customizer, Enable/ConditionalOnProperty, SPI file migration, and AOP interception—showing concrete code examples, the reasoning behind each approach, and practical tips for learning and applying these techniques.

AOPConditionalOnPropertyCustomizer
0 likes · 16 min read
Mastering Advanced Spring Boot Starter Configurations: 4 Essential Techniques
Java Tech Enthusiast
Java Tech Enthusiast
Sep 1, 2024 · Information Security

XSS Defense in Spring Boot Applications

The article explains how to protect Spring Boot applications from XSS attacks by using custom annotations such as @XSS with an XssValidator and by implementing a request‑filter chain—including XssFilter and XssWrapper—to sanitize input, demonstrating through tests that both approaches reliably secure user data.

Spring BootWeb ApplicationXSS
0 likes · 14 min read
XSS Defense in Spring Boot Applications
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 1, 2024 · Backend Development

Mastering Custom Type Converters for Spring Boot @ConfigurationProperties

Learn how to create and register custom type converters for Spring Boot @ConfigurationProperties, enabling seamless binding of complex objects from property files using @ConfigurationPropertiesBinding and BeanFactoryPostProcessor techniques, including code examples, configuration snippets, and two registration approaches for practical implementation.

ConfigurationPropertiesCustom ConverterSpring Boot
0 likes · 6 min read
Mastering Custom Type Converters for Spring Boot @ConfigurationProperties
Selected Java Interview Questions
Selected Java Interview Questions
Aug 31, 2024 · Backend Development

Root Cause Analysis of Excessive Swap Usage in a Spring Boot Project: Native Memory Leak Triggered by MCC Package Scanning

This article details a step‑by‑step investigation of a Spring Boot application that consumed far more physical memory than its 4 GB heap limit, revealing a native‑memory leak caused by MCC's package‑scanning using Reflections and the Spring Boot ZipInflaterInputStream, and explains how configuration changes and newer Spring Boot versions resolve the issue.

JVMMCCNative Memory
0 likes · 13 min read
Root Cause Analysis of Excessive Swap Usage in a Spring Boot Project: Native Memory Leak Triggered by MCC Package Scanning
21CTO
21CTO
Aug 30, 2024 · Backend Development

How to Stay Ahead as a Java Developer: Tips for JDK 21, Spring Boot 3.2, and Beyond

This article compiles practical advice for Java developers feeling out‑of‑practice, covering migration to JDK 21, Spring Boot 3.2 observability, new language features, community resources, and strategies to boost confidence and stay current with the evolving Java ecosystem.

JDK 21Spring Bootbackend development
0 likes · 9 min read
How to Stay Ahead as a Java Developer: Tips for JDK 21, Spring Boot 3.2, and Beyond
Architect
Architect
Aug 30, 2024 · Backend Development

How to Streamline Contract Signing Using Strategy, Chain‑of‑Responsibility, and Annotations

This article walks through a Java Spring‑Boot implementation of a contract‑signing workflow, explains the original chain‑of‑responsibility design, shows its limitations, and demonstrates how to replace manual bean wiring with a strategy‑based annotation and enum configuration for flexible node management.

Chain of ResponsibilityContract SigningDesign Patterns
0 likes · 15 min read
How to Streamline Contract Signing Using Strategy, Chain‑of‑Responsibility, and Annotations
Programmer XiaoFu
Programmer XiaoFu
Aug 29, 2024 · Backend Development

Why @Transactional Often Fails: 13 Real‑World Pitfalls from 6 Years of Experience

This article analyses thirteen common mistakes that cause Spring's @Transactional annotation to be ineffective or not roll back, covering unnecessary usage, private/final/static methods, self‑invocation, wrong propagation settings, async threads, unmanaged beans, exception handling and more, with concrete code demos and solutions.

AOPException HandlingSpring
0 likes · 21 min read
Why @Transactional Often Fails: 13 Real‑World Pitfalls from 6 Years of Experience
Programmer DD
Programmer DD
Aug 29, 2024 · Backend Development

Tomcat vs Jetty vs Undertow: Which Spring Boot Embedded Server Performs Best?

This article builds a simple Spring Boot Greetings API, configures Maven profiles for Tomcat, Jetty, and Undertow, creates Docker images for each, runs load‑testing benchmarks across multiple concurrency levels, and analyzes startup time, CPU, memory, and response performance to determine the optimal embedded server.

DockerEmbedded ServerJetty
0 likes · 20 min read
Tomcat vs Jetty vs Undertow: Which Spring Boot Embedded Server Performs Best?
Architecture Digest
Architecture Digest
Aug 28, 2024 · Backend Development

Activiti Workflow Engine: Design, Deployment, and Implementation of a Multi‑Level Approval Process

This article explains how to use the Activiti workflow engine to design a multi‑level leave‑approval process, covering BPMN diagram creation, Spring Boot configuration, deployment, Java code for starting instances, task handling, database schema, API overview, and tips for extending the workflow without additional code.

ActivitiBPMNProcess Automation
0 likes · 24 min read
Activiti Workflow Engine: Design, Deployment, and Implementation of a Multi‑Level Approval Process
Programmer DD
Programmer DD
Aug 28, 2024 · Backend Development

How to Create Custom Spring Boot Annotations for Automatic Error Logging

Learn how to simplify repetitive error-handling code in Spring Boot by creating a custom @ErrorHandler annotation that leverages Spring AOP to automatically log exceptions, with step-by-step instructions, required dependencies, annotation definition, aspect implementation, and usage examples.

AOPCustom AnnotationError Logging
0 likes · 8 min read
How to Create Custom Spring Boot Annotations for Automatic Error Logging
macrozheng
macrozheng
Aug 27, 2024 · Backend Development

Master Java Logging: Configure Logback & Log4j2 in Spring Boot

This article explains how to use SLF4J as a facade for Logback or Log4j2, shows Maven dependencies, demonstrates logback.xml and logback‑spring.xml configurations, covers Spring Boot's default logging setup, custom log levels, profile‑based settings, and how to switch to Log4j2 for higher performance.

Spring Bootjavalog4j2
0 likes · 15 min read
Master Java Logging: Configure Logback & Log4j2 in Spring Boot
Top Architect
Top Architect
Aug 25, 2024 · Backend Development

Integrating Spring Boot with XXL‑Job for Distributed Task Scheduling

This article provides a comprehensive guide on integrating Spring Boot with the open‑source distributed scheduler XXL‑Job, covering installation, configuration of the admin console and executor, code examples, parameter details, comparison with other schedulers, and best practices for reliable task management.

Spring BootXXL-JOBdistributed systems
0 likes · 17 min read
Integrating Spring Boot with XXL‑Job for Distributed Task Scheduling
Architecture Digest
Architecture Digest
Aug 25, 2024 · Backend Development

Lock4j Distributed Lock Component: Features, Configuration, and Usage Guide

Lock4j is a Java distributed lock library supporting Spring AOP, RedisTemplate, Redisson, and Zookeeper, offering simple usage, configurable properties, annotation-driven locking, custom executors, key generators, and failure strategies, with detailed setup, code examples, and advanced customization instructions.

RedisSpring Bootbackend development
0 likes · 6 min read
Lock4j Distributed Lock Component: Features, Configuration, and Usage Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 25, 2024 · Backend Development

Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More

This guide walks through eight Spring Boot property injection techniques—including @Value placeholders, SpEL expressions, @ConfigurationProperties, custom @PropertySource, YAML factories, Environment access, custom annotations, programmatic loading, and command‑line arguments—showing code examples and expected outputs for each method.

ConfigurationPropertiesSpring Bootenvironment
0 likes · 9 min read
Mastering Spring Boot Property Injection: @Value, @ConfigurationProperties, YAML & More
macrozheng
macrozheng
Aug 23, 2024 · Backend Development

Validate JSON in Spring Boot with JSON Schema: Step‑by‑Step Guide

This article explains how to integrate JSON Schema validation into a Spring Boot application, covering dependency setup, schema definition, bean configuration, service implementation, controller exposure, and testing with curl to ensure JSON payloads conform to the defined rules.

APIJSON SchemaSpring Boot
0 likes · 7 min read
Validate JSON in Spring Boot with JSON Schema: Step‑by‑Step Guide
Java Backend Technology
Java Backend Technology
Aug 23, 2024 · Backend Development

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

This article explains why API debounce is essential, identifies the types of endpoints that need it, and provides two distributed solutions—shared Redis cache and Redisson lock—along with complete Java code examples and deployment tips for preventing duplicate submissions in a Spring Boot backend.

API idempotencyRedisRedisson
0 likes · 16 min read
How to Implement Distributed API Debounce with Redis and Redisson in Java
IT Xianyu
IT Xianyu
Aug 23, 2024 · Backend Development

Using Java Virtual Threads in Spring Boot: Configuration and Performance Comparison

The article explains Java's virtual threads introduced in Java 19, compares them with traditional threads, and demonstrates how to configure Spring Boot to use virtual threads, including code samples and performance benchmarks that show dramatic latency reductions in both async services and HTTP requests.

Spring BootVirtual Threadsjava
0 likes · 6 min read
Using Java Virtual Threads in Spring Boot: Configuration and Performance Comparison
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 23, 2024 · Backend Development

Master Spring Boot: Complete Roadmap for Enterprise Java Development

This guide walks you through why Java remains vital, explains what Spring Boot is, outlines its core features, and provides a detailed learning roadmap covering Java fundamentals, Spring core concepts, web development, AOP, microservices, databases, security, DevOps tools, and deployment strategies for building robust enterprise applications.

DatabaseDevOpsMicroservices
0 likes · 16 min read
Master Spring Boot: Complete Roadmap for Enterprise Java Development
Architect
Architect
Aug 22, 2024 · Backend Development

How to Turn Bloated Spring Controllers into Clean, Maintainable Code

The article compares messy Spring MVC controllers packed with try‑catch, field checks, and business logic to concise, well‑structured versions that use @Valid, service delegation, and global exception handling, and provides a step‑by‑step refactoring guide.

@ValidController RefactoringException Handling
0 likes · 9 min read
How to Turn Bloated Spring Controllers into Clean, Maintainable Code
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 22, 2024 · Backend Development

Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations

This tutorial explores Jackson's rich annotation set in Spring Boot 3.2.5, demonstrating how to serialize and deserialize JSON with built‑in annotations like @JsonAnyGetter, @JsonGetter, @JsonPropertyOrder, and @JsonIgnore, how to create custom annotations, and how to disable annotation processing for fine‑grained control.

DeserializationJacksonSerialization
0 likes · 13 min read
Master Jackson Annotations in Spring Boot 3.2.5: From @JsonAnyGetter to Custom Annotations
Top Architect
Top Architect
Aug 21, 2024 · Backend Development

Handling Redis Cache Penetration, Avalanche, and Breakdown in High‑Concurrency Scenarios

This article explains the four common Redis cache pitfalls—cache penetration, avalanche, breakdown, and data inconsistency—demonstrates how they can crash high‑traffic systems, and provides practical Java/Spring Boot solutions such as empty‑object caching, Bloom filters, distributed locks, and delayed double‑delete strategies.

Bloom filterCache AvalancheCache Penetration
0 likes · 27 min read
Handling Redis Cache Penetration, Avalanche, and Breakdown in High‑Concurrency Scenarios
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 21, 2024 · Backend Development

Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage

This article introduces the high‑performance Caffeine caching library for Spring Boot 3.2, explains its core features, demonstrates detailed performance benchmarks, and provides practical code examples covering synchronous and asynchronous operations, eviction policies, removal listeners, refresh mechanisms, and statistics collection.

AsyncCaffeineSpring Boot
0 likes · 12 min read
Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage
Ubiquitous Tech
Ubiquitous Tech
Aug 21, 2024 · Backend Development

How to Build a GrowingIO User‑Tracking Spring Boot Starter from Scratch

This article walks through the complete process of creating a Spring Boot Starter that wraps the GrowingIO Java SDK, covering the motivation, project setup, property abstraction, auto‑configuration, custom logging, service implementation, and a simple test to verify the starter works in a Spring Boot application.

GrowingIOJava SDKSpring Boot
0 likes · 20 min read
How to Build a GrowingIO User‑Tracking Spring Boot Starter from Scratch
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 20, 2024 · Backend Development

Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts

Learn how to elegantly process Java 8 date parameters, register custom converters, conditionally enable controllers, apply unified API prefixes, perform service‑layer validation, and control asynchronous request timeouts in Spring Boot 3.2.5 using annotations, configuration files, and programmatic WebMvcConfigurer techniques.

AsyncControllerSpring Boot
0 likes · 7 min read
Master Advanced Spring Boot: Date Params, Conditional Controllers & Async Timeouts
WeiLi Technology Team
WeiLi Technology Team
Aug 19, 2024 · Backend Development

How to Upgrade Spring Boot for MongoDB Transaction Support

This guide explains why upgrading from Spring Boot 1.5 to 2.1 is essential for MongoDB transaction management, outlines version requirements, highlights key feature changes, and provides step‑by‑step instructions with code examples to enable reliable transactional operations in a Spring‑based backend.

MongoDBSpring BootTransaction Management
0 likes · 11 min read
How to Upgrade Spring Boot for MongoDB Transaction Support
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 18, 2024 · Backend Development

Integrate kkFileView with Spring Boot for Seamless Multi-Format File Preview

This guide demonstrates how to integrate the open‑source kkFileView library into a Spring Boot 3.2.5 project to provide online preview for dozens of file formats—including Office documents, PDFs, images, 3D models, and media—by configuring a local resource handler, running the kkFileView server, and using base64‑encoded URLs.

Backend IntegrationSpring Bootfile preview
0 likes · 9 min read
Integrate kkFileView with Spring Boot for Seamless Multi-Format File Preview
Eric Tech Circle
Eric Tech Circle
Aug 15, 2024 · Backend Development

Lightweight Distributed Tracing in Spring Cloud Without Third‑Party Tools

This guide shows how to implement end‑to‑end trace ID propagation across Spring Cloud gateways, downstream services, and asynchronous threads using a custom GlobalTraceFilter, a patched LogbackMDCAdapter with Alibaba TransmittableThreadLocal, and minimal configuration, avoiding heavyweight tracing libraries.

MDCMicroservicesSpring Boot
0 likes · 5 min read
Lightweight Distributed Tracing in Spring Cloud Without Third‑Party Tools
Java Tech Enthusiast
Java Tech Enthusiast
Aug 14, 2024 · Backend Development

Customizing JSON Serialization and Deserialization in Spring Boot

In Spring Boot you can customize JSON request and response handling by annotating fields with @JsonSerialize/@JsonDeserialize, registering a global ObjectMapper module, adding a PropertyEditor via @ControllerAdvice, creating a custom HttpMessageConverter, or using AOP interception, selecting the approach that matches your project’s complexity.

AOPDeserializationJackson
0 likes · 7 min read
Customizing JSON Serialization and Deserialization in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Aug 14, 2024 · Backend Development

Introducing LiteFlow: A Lightweight Java Rule Engine for Complex Workflow Orchestration

This article explains how the LiteFlow rule engine enables Java developers to define, configure, and execute complex serial and parallel business workflows using XML/JSON/YAML rule files, various node components, data contexts, and runtime parameters, with hot‑deployment and integration examples for Spring Boot projects.

LiteFlowSpring Bootbackend development
0 likes · 9 min read
Introducing LiteFlow: A Lightweight Java Rule Engine for Complex Workflow Orchestration
macrozheng
macrozheng
Aug 14, 2024 · Backend Development

How to Refactor Bloated Spring Controllers into Clean, Maintainable Code

This article demonstrates how to transform overly complex Spring Boot controllers—filled with try‑catch blocks, validation logic, and business code—into elegant, concise implementations by applying @Valid, separating concerns, and using global exception handling, illustrated with side‑by‑side code comparisons and practical tips for cleaner backend development.

Controller RefactoringException HandlingSpring Boot
0 likes · 10 min read
How to Refactor Bloated Spring Controllers into Clean, Maintainable Code
Java Tech Enthusiast
Java Tech Enthusiast
Aug 11, 2024 · Information Security

Java Data Desensitization with Hutool and Custom Jackson Serializer

The article demonstrates how to mask sensitive Java backend data by using Hutool's DesensitizedUtil for common types and a custom @Desensitization annotation with a DesensitizationTypeEnum‑driven Jackson serializer (or Fastjson ValueFilter) to apply flexible masking rules during JSON serialization.

JacksonSpring Bootdata-desensitization
0 likes · 7 min read
Java Data Desensitization with Hutool and Custom Jackson Serializer
Programmer DD
Programmer DD
Aug 10, 2024 · Artificial Intelligence

How Spring AI Now Supports OpenAI Structured JSON Output – A Quick Guide

Spring AI has added full support for OpenAI's structured output feature, enabling developers to define JSON schemas for AI responses, with example code showing how to configure prompts, response formats, and BeanOutputConverter for seamless JSON-to-Java bean conversion, plus Spring Boot starter configuration.

JSON SchemaOpenAISpring AI
0 likes · 5 min read
How Spring AI Now Supports OpenAI Structured JSON Output – A Quick Guide
Java Tech Enthusiast
Java Tech Enthusiast
Aug 9, 2024 · Backend Development

RabbitMQ Overview, Installation Guide, and Delayed Message Implementation

RabbitMQ is a lightweight, open‑source AMQP broker offering reliable, flexible routing, clustering, and multi‑protocol support; it can be installed via Homebrew, Windows installers, or source on CentOS, and, using the rabbitmq_delayed_message_exchange plugin, Spring Boot applications can configure custom exchanges, queues, and send delayed messages with an x‑delay header.

Delayed MessagingInstallationMessage Queue
0 likes · 9 min read
RabbitMQ Overview, Installation Guide, and Delayed Message Implementation
Java Captain
Java Captain
Aug 7, 2024 · Backend Development

Refactoring Spring Boot Controllers: From Chaotic to Elegant with @Valid and Global Exception Handling

This article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive validation, try‑catch blocks, and business logic—into clean, maintainable implementations by applying @Valid annotations, streamlined validation, and a centralized global exception handler.

@ValidControllerException Handling
0 likes · 9 min read
Refactoring Spring Boot Controllers: From Chaotic to Elegant with @Valid and Global Exception Handling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 7, 2024 · Backend Development

Mastering Spring @Value: From Basics to Advanced Techniques

This article explains how Spring Boot’s @Value annotation injects configuration values, covers basic usage, default values, nested properties, SpEL expressions, custom type converters, placeholder handling, custom meta‑annotations, and combining property placeholders for dynamic URLs, providing complete code examples.

ConfigurationSpring Bootvalue
0 likes · 8 min read
Mastering Spring @Value: From Basics to Advanced Techniques
Programmer DD
Programmer DD
Aug 6, 2024 · Backend Development

Step‑by‑Step JSON Validation in Spring Boot Using JSON Schema

This guide explains how to integrate JSON Schema validation into a Spring Boot application, covering dependency setup, schema definition, bean configuration, service implementation, controller handling, and testing with curl examples to ensure JSON payloads conform to the defined rules.

JSON SchemaSpring BootValidation
0 likes · 7 min read
Step‑by‑Step JSON Validation in Spring Boot Using JSON Schema
Java Tech Enthusiast
Java Tech Enthusiast
Aug 5, 2024 · Backend Development

Implementing SPI-like Extensions in Spring Boot

Spring Boot can emulate SPI plug‑in extensions by using native Java ServiceLoader, conditional bean registration with @ConditionalOnClass/@ConditionalOnProperty, custom FactoryBean implementations, or programmatic BeanDefinitionRegistryPostProcessor registration, each enabling dynamic service loading based on configuration or runtime conditions.

FactoryBeanSPISpring Boot
0 likes · 7 min read
Implementing SPI-like Extensions in Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Aug 4, 2024 · Backend Development

Unlock Java Distributed Locks with Lock4j: Guide & Advanced Tips

This article introduces Lock4j, a Java distributed lock library supporting RedisTemplate, Redisson, and Zookeeper, walks through its key features, dependency setup, configuration, annotation attributes, simple and advanced usage examples, and demonstrates custom executors, key builders, and failure strategies for robust concurrency control.

Lock4jRedisSpring Boot
0 likes · 6 min read
Unlock Java Distributed Locks with Lock4j: Guide & Advanced Tips
Top Architect
Top Architect
Aug 3, 2024 · Backend Development

Standardizing API Response Structure with Custom Annotations in Spring Boot

This article explains how to design a unified JSON response format for backend services, define clear status‑code conventions, encapsulate results in a Result class, and use a custom @ResponseResult annotation together with a ResponseBodyAdvice interceptor to automatically wrap controller outputs, improving readability and error handling.

Spring BootStatus Codesannotations
0 likes · 10 min read
Standardizing API Response Structure with Custom Annotations in Spring Boot
macrozheng
macrozheng
Aug 1, 2024 · Backend Development

Refactor Spring Boot Controllers for Cleaner Code and Unified Responses

This article explains the role of Controllers in Spring Boot, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to refactor them using a unified response structure, ResponseBodyAdvice, proper message converter ordering, JSR‑303 validation, custom validators, and centralized exception handling.

ControllerException HandlingResponseBodyAdvice
0 likes · 19 min read
Refactor Spring Boot Controllers for Cleaner Code and Unified Responses
Architect
Architect
Jul 31, 2024 · Backend Development

Mastering WebSocket Integration in Spring Boot: Javax, WebMVC, WebFlux, and More

This article walks through the author's practical research on integrating WebSocket in Spring Boot, detailing step‑by‑step configurations for Javax, WebMVC, and WebFlux, comparing their APIs, highlighting pitfalls, and providing concrete code snippets and cold‑knowledge tips for both server and client implementations.

ReactiveSpring Bootbackend
0 likes · 19 min read
Mastering WebSocket Integration in Spring Boot: Javax, WebMVC, WebFlux, and More
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 30, 2024 · Backend Development

Master Spring Boot 3.2: Auto‑Configuration, Custom Environments, and Advanced Tomcat Tweaks

This guide walks through Spring Boot 3.2.5 troubleshooting with ConditionEvaluationReport, customizing the application context and environment via listeners and EnvironmentPostProcessor, building parent‑child containers, managing embedded Tomcat MBeans, returning XML responses, customizing the whitelabel error page, and adding multiple Tomcat connectors, all illustrated with code snippets and images.

Embedded TomcatEnvironmentPostProcessorError Page
0 likes · 10 min read
Master Spring Boot 3.2: Auto‑Configuration, Custom Environments, and Advanced Tomcat Tweaks
Top Architect
Top Architect
Jul 29, 2024 · Backend Development

Design Principles and Module Structure for a Spring Boot Backend Project (XiaoLe)

This article outlines essential backend design principles such as single responsibility, high cohesion, low coupling, reusability, clear boundaries, moderate modularity, layered architecture, dependency inversion, testability and future adaptability, and demonstrates their application in a multi‑module Spring Boot project with detailed Maven configurations.

MavenModule DesignSpring Boot
0 likes · 23 min read
Design Principles and Module Structure for a Spring Boot Backend Project (XiaoLe)
Code Ape Tech Column
Code Ape Tech Column
Jul 29, 2024 · Backend Development

Using Caffeine Cache in Spring Boot: Features, Algorithms, and Configuration

This article introduces Caffeine Cache, explains its W‑TinyLFU algorithm advantages over traditional FIFO, LRU, and LFU strategies, demonstrates manual, synchronous, and asynchronous loading methods, covers eviction policies, statistics, Spring Boot integration, and provides detailed configuration and code examples for Java developers.

Cache ConfigurationCaffeine cacheSpring Boot
0 likes · 30 min read
Using Caffeine Cache in Spring Boot: Features, Algorithms, and Configuration
Selected Java Interview Questions
Selected Java Interview Questions
Jul 28, 2024 · Backend Development

Performance Comparison of Spring Boot Native Image vs Go and Rust

This article demonstrates how to quickly build and benchmark a Spring Boot 2.x application as a native binary, compares its startup time, memory usage, and request throughput with equivalent implementations in Go and Rust, and concludes that AOT‑processed Java offers impressive performance despite longer compilation times.

GoNative ImageRust
0 likes · 7 min read
Performance Comparison of Spring Boot Native Image vs Go and Rust
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 28, 2024 · Backend Development

Master Spring Boot Web Server Configuration: Switch Servers, Ports, SSL, and More

This guide explains how to switch the embedded web server in Spring Boot 3.2.5, disable it, customize ports (including random and range ports), enable HTTP compression, configure SSL and HTTP/2, add servlets, filters, listeners, set up logging, and fine‑tune Tomcat and Undertow settings, all with practical code examples.

ConfigurationHTTP/2Jetty
0 likes · 14 min read
Master Spring Boot Web Server Configuration: Switch Servers, Ports, SSL, and More
IT Architects Alliance
IT Architects Alliance
Jul 26, 2024 · Information Security

Unveiling Spring Security 6: Architecture, Filters, and Authentication Deep Dive

This article provides a comprehensive analysis of Spring Security 6's architecture, explaining how the framework uses a chain of servlet Filters, the DelegatingFilterProxy, and the SecurityFilterChain to implement authentication, authorization, and protection against common attacks, while also offering practical debugging tips and configuration guidance.

Filter ChainSpring Bootauthentication
0 likes · 32 min read
Unveiling Spring Security 6: Architecture, Filters, and Authentication Deep Dive
Eric Tech Circle
Eric Tech Circle
Jul 24, 2024 · Backend Development

Designing Secure Microservice Authentication with Spring Boot 3 and OAuth2

This article explains the key changes in Spring Boot 3, outlines the new OAuth2 components, and provides a detailed design for secure microservice authentication and authorization using Spring Authorization Server, JWT, API Gateway, and client applications, complete with architecture diagrams and implementation steps.

MicroservicesOAuth2Spring Boot
0 likes · 9 min read
Designing Secure Microservice Authentication with Spring Boot 3 and OAuth2
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 24, 2024 · Backend Development

Master STOMP Messaging in Spring Boot 3: From Basics to Real‑World Examples

This tutorial explains the STOMP protocol, its frame structure, and how Spring Boot 3 integrates STOMP over WebSocket, providing step‑by‑step code examples for enabling STOMP, sending and receiving messages, handling headers, asynchronous processing, exception handling, and simple publish‑subscribe without a controller.

Spring Bootbackend developmentmessaging
0 likes · 11 min read
Master STOMP Messaging in Spring Boot 3: From Basics to Real‑World Examples
Selected Java Interview Questions
Selected Java Interview Questions
Jul 23, 2024 · Backend Development

Integrating URule Rule Engine into Java Projects: Installation, Configuration, and Sample Code

This article explains the background, features, installation steps, core concepts, library definitions, rule set creation (wizard and script), decision tables, practical usage scenarios, and provides complete Java and configuration code examples for integrating the URule rule engine in a Spring Boot backend application.

ConfigurationSpring BootURule
0 likes · 15 min read
Integrating URule Rule Engine into Java Projects: Installation, Configuration, and Sample Code
Java Architect Essentials
Java Architect Essentials
Jul 23, 2024 · Cloud Native

Guide to Installing and Using MinIO with Spring Boot and Docker

This article provides a comprehensive guide to installing MinIO on CentOS 7, configuring it with Docker, integrating it into a Spring Boot application, and implementing file upload, download, and multipart upload features using MinIO's Java SDK, along with troubleshooting tips and code examples.

DockerMinIOSpring Boot
0 likes · 23 min read
Guide to Installing and Using MinIO with Spring Boot and Docker
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 23, 2024 · Backend Development

Why Your Custom Spring Advisor Fails and How to Fix It in Spring Boot 3.2

This article explores why a custom Advisor aspect may not work in Spring Boot 3.2, demonstrates how enabling @EnableAspectJAutoProxy and adjusting bean roles resolves the issue, and also covers advanced topics such as FactoryBean type conversion, version retrieval, SpringProperties, and the Spring SPI mechanism.

AdvisorFactoryBeanSpring Boot
0 likes · 8 min read
Why Your Custom Spring Advisor Fails and How to Fix It in Spring Boot 3.2
macrozheng
macrozheng
Jul 22, 2024 · Backend Development

Mastering MapStruct: Boost Java Object Mapping Beyond BeanUtils

MapStruct is a powerful Java annotation‑based mapper that outperforms BeanUtils by generating compile‑time mapping implementations without reflection, supporting simple, nested, collection, and custom mappings, dependency injection, constants, expressions, and error handling, making object‑DTO conversions efficient and maintainable in Spring Boot projects.

MavenObject MappingSpring Boot
0 likes · 19 min read
Mastering MapStruct: Boost Java Object Mapping Beyond BeanUtils
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 22, 2024 · Backend Development

Spring Boot 3 Essentials: @Delimiter, Custom Converters, YAML & Filters

This guide walks you through powerful Spring Boot 3 features—including the @Delimiter annotation for automatic collection parsing, custom type converters for @Value, loading YAML files via a FactoryBean, a suite of ordered filters, and using DeferredImportSelector for conditional configuration imports.

Custom ConverterDeferredImportSelectorSpring Boot
0 likes · 9 min read
Spring Boot 3 Essentials: @Delimiter, Custom Converters, YAML & Filters
Selected Java Interview Questions
Selected Java Interview Questions
Jul 20, 2024 · Backend Development

Introduction and Usage Guide for MyBatis-Mate: Enterprise Features for MyBatis-Plus

This article introduces MyBatis-Mate, an official MyBatis‑Plus extension offering enterprise‑level capabilities such as dictionary binding, field encryption, data masking, dynamic DDL maintenance, sharding, multi‑datasource switching, performance logging, and data permission control, with detailed Spring Boot integration examples.

MyBatisShardingSpring Boot
0 likes · 15 min read
Introduction and Usage Guide for MyBatis-Mate: Enterprise Features for MyBatis-Plus
Top Architect
Top Architect
Jul 17, 2024 · Backend Development

Integrating Spring Boot with XXL‑Job for Distributed Task Scheduling

This article provides a step‑by‑step guide on combining Spring Boot with the open‑source XXL‑Job platform, covering its features, comparison with other schedulers, configuration of the admin console and executor, code examples, @XxlJob annotation parameters, and best practices for reliable distributed task management.

Spring BootXXL-JOBdistributed
0 likes · 17 min read
Integrating Spring Boot with XXL‑Job for Distributed Task Scheduling
Top Architect
Top Architect
Jul 17, 2024 · Backend Development

Designing a Unified API Response Structure with Annotations and Interceptors in Spring Boot

This article explains how to design a unified API response format in Spring Boot, defining a JSON result structure with code, message, and data, organizing status codes, using @ResponseResult annotation, implementing interceptors and ResponseBodyAdvice to automatically wrap controller outputs, and offers optimization tips for clean backend development.

API DesignInterceptorsSpring Boot
0 likes · 10 min read
Designing a Unified API Response Structure with Annotations and Interceptors in Spring Boot
Top Architect
Top Architect
Jul 16, 2024 · Backend Development

Plugin Architecture in Java: SPI, ServiceLoader, and Spring Boot Implementations

This article explains the concept of plugin‑based development, outlines its benefits such as modular decoupling and extensibility, and provides detailed Java implementations using ServiceLoader, custom configuration loading, and Spring Boot’s spring.factories mechanism with complete code examples and practical deployment steps.

Plugin architectureSPISpring Boot
0 likes · 23 min read
Plugin Architecture in Java: SPI, ServiceLoader, and Spring Boot Implementations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 16, 2024 · Backend Development

Master Spring Boot Configuration: @ConfigurationProperties, @Value, AOP & Lazy Init

This tutorial walks through Spring Boot configuration techniques—including property classes, environment variable binding, validation, @Value usage, random ports, AOP proxy settings, lazy initialization, and handling circular dependencies—providing practical code examples for each feature.

ConfigurationPropertiesLazy InitializationSpring Boot
0 likes · 8 min read
Master Spring Boot Configuration: @ConfigurationProperties, @Value, AOP & Lazy Init
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 14, 2024 · Backend Development

Master Spring Boot Observability with @Timed, @Counted, and @MeterTag

Learn how to enable comprehensive observability in Spring Boot 3.2.5 by leveraging Micrometer’s @Timed, @Counted, and @MeterTag annotations, configuring Actuator endpoints, and customizing aspects to monitor method execution time, request counts, and parameters, complete with practical code examples and Prometheus integration.

PrometheusSpring Bootmicrometer
0 likes · 7 min read
Master Spring Boot Observability with @Timed, @Counted, and @MeterTag
Selected Java Interview Questions
Selected Java Interview Questions
Jul 12, 2024 · Backend Development

Efficient Large File Upload and Database Insertion with Spring Boot, Vue, and Multithreading

This article demonstrates how to implement a high‑performance file upload system using Vue's Element Plus component on the frontend and Spring Boot on the backend, comparing single‑row inserts, batch inserts, and a multithreaded producer‑consumer approach to dramatically reduce MySQL insertion time.

Batch InsertMySQLSpring Boot
0 likes · 10 min read
Efficient Large File Upload and Database Insertion with Spring Boot, Vue, and Multithreading
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 12, 2024 · Backend Development

Master Distributed Locks in Spring Boot with Lock4j: A Complete Guide

This tutorial walks you through using the Lock4j distributed lock component in Spring Boot 3.2.5, covering its features, Maven dependencies, configuration, basic annotation usage, custom key generation, expiration settings, and advanced options like custom executors, key builders, failure strategies, and manual lock handling.

Lock4jRedisSpring Boot
0 likes · 9 min read
Master Distributed Locks in Spring Boot with Lock4j: A Complete Guide
Java Backend Technology
Java Backend Technology
Jul 11, 2024 · Backend Development

Master Distributed Locking in Java with Lock4j: A Complete Guide

This article introduces Lock4j, a versatile Java distributed‑lock component supporting RedisTemplate, Redisson and Zookeeper, explains its key features, shows how to add dependencies and configure Redis, details the @Lock4j annotation attributes, provides simple and advanced usage examples with code snippets, and demonstrates custom executors, key builders, failure strategies, and manual lock handling.

Lock4jRedisSpring Boot
0 likes · 6 min read
Master Distributed Locking in Java with Lock4j: A Complete Guide
Code Ape Tech Column
Code Ape Tech Column
Jul 8, 2024 · Backend Development

Guide to Installing and Using MinIO with Spring Boot for Object Storage

This article provides a comprehensive tutorial on MinIO, covering its features, application scenarios, Docker installation on CentOS 7, firewall configuration, Spring Boot integration, chunked upload implementation, and testing, complete with code examples and troubleshooting tips.

Chunked UploadSpring Bootobject storage
0 likes · 21 min read
Guide to Installing and Using MinIO with Spring Boot for Object Storage
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 8, 2024 · Backend Development

Mastering Spring AOP: Dynamic Proxy, Java Agent, and Maven Plugin Techniques

Explore three Spring AOP implementation methods—dynamic proxy, Java Agent, and AspectJ Maven plugin—by setting up a sample Service, defining aspects, configuring aop.xml and JVM arguments, and comparing their flexibility, performance impact, and compile‑time weaving within a Spring Boot 2.7 environment.

AspectJDynamic ProxyJava Agent
0 likes · 7 min read
Mastering Spring AOP: Dynamic Proxy, Java Agent, and Maven Plugin Techniques
Top Architect
Top Architect
Jul 6, 2024 · Backend Development

Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot

This article explains how to design a clean Controller layer in Spring Boot, introduces a unified response format with Result and ResponseBodyAdvice, demonstrates parameter validation using JSR‑303 and Spring Validation, and shows custom validation annotations and global exception handling to keep controller code concise and maintainable.

ControllerException HandlingResponseBodyAdvice
0 likes · 18 min read
Improving Controller Layer Logic, Unified Response Structure, and Parameter Validation in Spring Boot
Java Architect Essentials
Java Architect Essentials
Jul 3, 2024 · Backend Development

From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling

This article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive try‑catch blocks and manual field checks—into clean, maintainable code by applying @Valid validation, reducing boilerplate, and implementing a centralized exception‑handling strategy.

ControllerException HandlingSpring Boot
0 likes · 9 min read
From Messy to Elegant Spring Boot Controllers: Validation, Refactoring, and Global Exception Handling
Selected Java Interview Questions
Selected Java Interview Questions
Jul 3, 2024 · Artificial Intelligence

Integrating OpenCV with Java and Spring Boot for Face Detection and Recognition

This guide provides a comprehensive walkthrough of installing OpenCV, using its Java API for image and video face detection, implementing face comparison, creating custom GUI windows, and integrating the library into a Spring Boot application with detailed code examples and common troubleshooting tips.

Custom GUIOpenCVSpring Boot
0 likes · 25 min read
Integrating OpenCV with Java and Spring Boot for Face Detection and Recognition
Programmer XiaoFu
Programmer XiaoFu
Jul 3, 2024 · Backend Development

Fast Large‑File Chunked Upload with Spring Boot and MinIO

This article walks through setting up MinIO, installing it via Docker on CentOS 7, configuring Spring Boot, and implementing chunked, instant‑resume, and resumable uploads for large files, complete with code examples, Docker commands, and troubleshooting tips.

Chunked UploadDockerMinIO
0 likes · 25 min read
Fast Large‑File Chunked Upload with Spring Boot and MinIO
macrozheng
macrozheng
Jul 2, 2024 · Backend Development

How to Speed Up Excel-to-Database Imports with Async and Thread Pool Tuning

Learn how to efficiently import large Excel files into a database using POI, JDBC, MyBatis, and Spring Boot, with step-by-step code examples, performance bottlenecks, and optimization techniques such as caching, asynchronous processing, multi-threaded batch inserts, and thread‑pool configuration for maximum throughput.

DatabaseExcelSpring Boot
0 likes · 16 min read
How to Speed Up Excel-to-Database Imports with Async and Thread Pool Tuning
Architect
Architect
Jul 1, 2024 · Information Security

Spring Security 6.1 Deep Dive: Architecture, Filters, and Authentication Explained

This article provides a comprehensive analysis of Spring Security 6.1, covering its core architecture, the role of FilterChainProxy, detailed authentication and authorization flows, key interfaces such as SecurityFilterChain, AuthenticationManager, and practical code examples to help developers understand and debug the framework.

FilterChainSecurity FiltersSpring Boot
0 likes · 34 min read
Spring Security 6.1 Deep Dive: Architecture, Filters, and Authentication Explained
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 1, 2024 · Backend Development

Unlock Spring Boot Internals: 8 Essential Tools to Inspect Your Application

This guide walks you through eight Spring Boot utilities—including ApplicationPid, ApplicationHome, JavaVersion, ApplicationTemp, SystemProperties, Instantiator, property loaders, and base package discovery—showing how to retrieve process IDs, directories, Java versions, temporary paths, system properties, instantiate beans, load resources, and inspect package information with concise code examples.

Application UtilitiesSpring Bootbackend development
0 likes · 8 min read
Unlock Spring Boot Internals: 8 Essential Tools to Inspect Your Application
Java Architect Essentials
Java Architect Essentials
Jun 30, 2024 · Backend Development

Integrating jCasbin Permission Management into Spring Boot Applications

This article demonstrates how to add jCasbin to a Spring Boot project, covering Maven dependencies, configuration files, Enforcer initialization, custom policy objects, a servlet filter for authorization, and dynamic add‑remove permission APIs, enabling lightweight, database‑driven access control.

PermissionSpring Bootauthorization
0 likes · 10 min read
Integrating jCasbin Permission Management into Spring Boot Applications