Tagged articles
3874 articles
Page 14 of 39
Java Architect Essentials
Java Architect Essentials
Sep 26, 2024 · Backend Development

Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations

This article demonstrates how to build a flexible API rate‑limiting solution in Spring Boot by combining a HandlerInterceptor, Redis counters, and custom annotations with reflection, covering configuration, code examples, mapping rules, time‑window nuances, path‑parameter handling, and real‑IP considerations.

Custom AnnotationInterceptorJava
0 likes · 18 min read
Implementing Interface Rate Limiting in Spring Boot Using Interceptor, Redis, and Custom Annotations
macrozheng
macrozheng
Sep 26, 2024 · Backend Development

Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide

This article explains how to integrate Spring Boot with WebSocket to create a lightweight instant‑messaging system, covering dependency setup, configuration classes, core server code, front‑end integration, essential IM modules, common deployment challenges, and provides complete example code and demos.

Backend DevelopmentInstant MessagingSpring Boot
0 likes · 15 min read
Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide
Java Backend Technology
Java Backend Technology
Sep 26, 2024 · Backend Development

How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls

This guide walks you through the pain points of environment setup, shows step‑by‑step creation of a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot and Kafka, and provides ready‑to‑use Maven configurations, global exception handling, logging, CORS, Swagger, and a curated list of useful development tools.

Exception HandlingJavaLogging
0 likes · 11 min read
How to Quickly Bootstrap a Spring Boot Project and Avoid Common Version Pitfalls
Java Architect Essentials
Java Architect Essentials
Sep 26, 2024 · Backend Development

How Spring Boot Integrates Log4j2: Deep Dive into Logging Mechanics and Hot Updates

This article provides a comprehensive analysis of how Spring Boot 2.7.2 works with Log4j2 2.17.2, covering Log4j2's core components, Spring Boot's logging configuration options, the internal startup sequence, the LoggersEndpoint for runtime level changes, and custom hot‑update techniques, all illustrated with code snippets and diagrams.

ActuatorHot UpdateLogging
0 likes · 38 min read
How Spring Boot Integrates Log4j2: Deep Dive into Logging Mechanics and Hot Updates
Su San Talks Tech
Su San Talks Tech
Sep 25, 2024 · Backend Development

Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY

This article walks through practical ways to perform batch updates in MyBatis, compares foreach, case‑when, and INSERT…ON DUPLICATE KEY techniques, explains common Druid WallFilter restrictions, and shows how to enable multi‑statement execution via JDBC and Spring configuration.

Batch UpdateDruidMySQL
0 likes · 13 min read
Mastering Batch Updates in MyBatis: From foreach to ON DUPLICATE KEY
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 25, 2024 · Backend Development

Master Structured Logging in Spring Boot 3.4 with ECS and Custom Formats

This guide explains why structured logging is essential for observability, shows how Spring Boot 3.4 adds out‑of‑the‑box support for Elastic Common Schema and Logstash formats, and provides step‑by‑step configurations and code examples for console output, file logging, custom fields, and custom formatters.

Elastic Common SchemaJSONLogstash
0 likes · 8 min read
Master Structured Logging in Spring Boot 3.4 with ECS and Custom Formats
Top Architect
Top Architect
Sep 24, 2024 · Backend Development

Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how excessive if‑else checks and business logic in controllers degrade code quality, and provides clean, refactored examples using @Valid validation, concise error handling, and a global exception handler to achieve more maintainable backend services.

Controller DesignJavaSpring Boot
0 likes · 11 min read
Improving Spring Boot Controllers: From Unclean to Elegant with Validation and Global Exception Handling
Selected Java Interview Questions
Selected Java Interview Questions
Sep 23, 2024 · Operations

Comprehensive Guide to Using Apollo Configuration Center with Spring Boot and Kubernetes

This article provides a step‑by‑step tutorial on Apollo’s concepts, features, model, namespace handling, client design, high‑availability considerations, project creation, configuration management, Spring Boot client implementation, testing across environments, clusters and namespaces, and deployment on Kubernetes with Docker.

ApolloConfiguration ManagementSpring Boot
0 likes · 25 min read
Comprehensive Guide to Using Apollo Configuration Center with Spring Boot and Kubernetes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 23, 2024 · Backend Development

How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts

This guide explains why pre‑loading initial data is essential for Spring Boot applications and demonstrates four practical methods—CommandLineRunner/ApplicationRunner, bean initialization with @PostConstruct, SQL script execution, and @Sql annotation for tests—complete with code snippets and configuration details.

Backend DevelopmentData InitializationSQL Scripts
0 likes · 8 min read
How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 22, 2024 · Backend Development

Mastering RFC 7807 Problem Details in Spring Boot 3.2.5

This article explains how Spring Boot 3.2.5 implements the RFC 7807 Problem Details specification, covering the core abstractions, code examples for creating ProblemDetail and ErrorResponse objects, and practical patterns for global exception handling in Spring MVC applications.

Error HandlingProblem DetailsRFC 7807
0 likes · 8 min read
Mastering RFC 7807 Problem Details in Spring Boot 3.2.5
Lobster Programming
Lobster Programming
Sep 21, 2024 · Backend Development

Mastering Spring Boot Transaction Hooks for Advanced Business Logic

This article explains how Spring Boot’s @Transactional annotation works, introduces programmatic transaction management, and demonstrates how to create custom transaction hook functions with TransactionSynchronizationManager and TransactionSynchronization to execute custom logic at each transaction phase, improving robustness and maintainability.

Backend DevelopmentJavaSpring Boot
0 likes · 4 min read
Mastering Spring Boot Transaction Hooks for Advanced Business Logic
JavaEdge
JavaEdge
Sep 20, 2024 · Artificial Intelligence

Integrating LangChain4j with Spring Boot: AI Services Made Easy

This guide explains how to use LangChain4j Spring Boot starters to configure OpenAI models, create declarative AI services with @AiService, and run practical examples such as a customer‑support agent and a simple HelloWorld program, covering required dependencies, properties, and code snippets.

ChatLanguageModelDeclarative AI ServiceJava
0 likes · 8 min read
Integrating LangChain4j with Spring Boot: AI Services Made Easy
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 20, 2024 · Backend Development

Master Spring Cloud OpenFeign: Complete Guide with Code Samples

This article provides a comprehensive introduction to Spring Cloud OpenFeign, comparing it with Feign and HttpExchange, and walks through practical setup, client declaration, custom configuration, interceptors, error handling, timeout and logging settings with full code examples for Spring Boot 3.2.5.

FeignClientOpenFeignSpring Boot
0 likes · 11 min read
Master Spring Cloud OpenFeign: Complete Guide with Code Samples
macrozheng
macrozheng
Sep 19, 2024 · Backend Development

Refactor Spring Boot Controllers for Clean Architecture and Unified Responses

This article explains the essential duties of a Spring MVC Controller, identifies common pitfalls such as duplicated validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, ResponseBodyAdvice, proper message‑converter ordering, JSR‑303 validation, custom validators, and global exception handling to produce concise, maintainable backend code.

ControllerException HandlingJava
0 likes · 19 min read
Refactor Spring Boot Controllers for Clean Architecture and Unified Responses
Lobster Programming
Lobster Programming
Sep 18, 2024 · Backend Development

How to Build and Use a Custom Spring Boot Starter in Minutes

Learn step‑by‑step how to create a custom Spring Boot starter, configure its properties, define services and controllers, register it via spring.factories, and then integrate the starter into other projects with Maven dependencies and configuration files.

Custom StarterJavaMaven
0 likes · 5 min read
How to Build and Use a Custom Spring Boot Starter in Minutes
Code Ape Tech Column
Code Ape Tech Column
Sep 18, 2024 · Backend Development

Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter

This article explains why Spring Cloud Gateway can return duplicate Access-Control-Allow-Origin and Vary headers, analyzes the request processing flow, and provides two solutions—using the built‑in DedupeResponseHeader filter with retention strategies or implementing a custom CorsResponseHeaderFilter—to eliminate the CORS error caused by multiple header values.

BackendCORSJava
0 likes · 10 min read
Resolving Duplicate CORS Headers in Spring Cloud Gateway Using DedupeResponseHeader and Custom GlobalFilter
Architect
Architect
Sep 16, 2024 · Backend Development

Seamless Token Refresh in Spring Boot & Axios: Full Implementation Guide

This article explains how to implement invisible token refresh for authentication servers using Spring Boot gateway filters, JWT handling, Axios interceptors, and a client‑side timer, compares client‑ and server‑side approaches, and provides complete code examples and practical recommendations.

AuthenticationJWTSpring Boot
0 likes · 21 min read
Seamless Token Refresh in Spring Boot & Axios: Full Implementation Guide
Architecture Digest
Architecture Digest
Sep 15, 2024 · Backend Development

Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult

This article explains how to implement asynchronous request handling in Spring Boot using four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—detailing their mechanisms, code examples, thread pool configuration, and when to apply asynchronous processing to improve throughput.

CallableDeferredResultSpring Boot
0 likes · 10 min read
Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult
Top Architect
Top Architect
Sep 14, 2024 · Operations

Centralized Log Collection with Filebeat and Graylog: Installation, Configuration, and Usage

This article explains why centralized log collection is essential for multi‑environment services, introduces Graylog as a lightweight alternative to ELK, details Filebeat's role and workflow, provides configuration examples, shows how to deploy both Filebeat and Graylog via Docker or packages, and demonstrates integration with Spring Boot and log search techniques.

DockerELKFilebeat
0 likes · 20 min read
Centralized Log Collection with Filebeat and Graylog: Installation, Configuration, and Usage
Java Tech Enthusiast
Java Tech Enthusiast
Sep 14, 2024 · Backend Development

Structured Logging in Spring Boot 3.4: JSON, ECS, and Custom Formats

Spring Boot 3.4 adds built‑in support for structured logging with ready‑made JSON formats such as Elastic Common Schema, lets you configure console or file outputs, enrich logs via MDC or the fluent API, and enables custom formatters—including a JsonWriter‑based example—for fully tailored, machine‑readable log entries.

ECSJSONJava
0 likes · 8 min read
Structured Logging in Spring Boot 3.4: JSON, ECS, and Custom Formats
macrozheng
macrozheng
Sep 14, 2024 · Backend Development

Mastering Activiti: Build Scalable Workflow Engines in Minutes

This article walks you through designing, deploying, and managing a multi‑level approval workflow using the Activiti engine, covering BPMN diagram creation, Spring Boot integration, database schema, API usage, code examples, and best practices for extending processes without additional code.

ActivitiBPMNJava
0 likes · 26 min read
Mastering Activiti: Build Scalable Workflow Engines in Minutes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 13, 2024 · Backend Development

How to Dynamically Update Spring Boot Properties at Runtime Without Restart

This article explains several strategies for dynamically updating Spring Boot application properties—such as using prototype‑scoped beans, @RefreshScope with Spring Cloud, external configuration files, and custom PropertySource updates—so that changes take effect without restarting the service.

PropertySourceRefreshScopeSpring Boot
0 likes · 10 min read
How to Dynamically Update Spring Boot Properties at Runtime Without Restart
Eric Tech Circle
Eric Tech Circle
Sep 12, 2024 · Backend Development

Build a Spring Boot 3.x Microservice OAuth2 Authorization Server from Scratch

This guide walks through creating a Spring Boot 3.3.3 microservice permission framework with OAuth2, covering technology stack, core features, project structure, step‑by‑step service startup, token acquisition, API calls, and provides the complete source repository for hands‑on experimentation.

Authorization ServerBackend DevelopmentJava
0 likes · 8 min read
Build a Spring Boot 3.x Microservice OAuth2 Authorization Server from Scratch
Architect
Architect
Sep 11, 2024 · Information Security

How to Secure Your Spring Boot JAR Against Decompilation with ClassFinal

This guide explains how to protect a Spring Boot release package from source leakage by comparing code obfuscation and encryption, detailing the configuration of the classfinal‑maven‑plugin, launch commands with and without passwords, and binding the encrypted jar to a specific machine.

ClassFinalCode EncryptionJar Protection
0 likes · 7 min read
How to Secure Your Spring Boot JAR Against Decompilation with ClassFinal
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 11, 2024 · Backend Development

Mastering Async and Scheduled Tasks in Spring Boot 3.2.5

This guide explains how to enable and use Spring Boot's @Async and @Scheduled annotations, configure various TaskExecutor and TaskScheduler implementations, leverage new Spring 6.1 pause/resume and virtual‑thread features, and apply graceful shutdown for both asynchronous and scheduled jobs.

AsyncScheduled TasksSpring 6.1
0 likes · 10 min read
Mastering Async and Scheduled Tasks in Spring Boot 3.2.5
macrozheng
macrozheng
Sep 10, 2024 · Backend Development

Automate User and Order ID Logging in Spring Boot with MDC and AOP

This guide explains how to automatically inject userId and orderId into log statements in a Spring Boot microservice by configuring Log4j2 patterns, using MDC to store context variables, and creating a custom @UserLog annotation with an AOP aspect that populates the MDC before method execution.

AOPJavaLogging
0 likes · 9 min read
Automate User and Order ID Logging in Spring Boot with MDC and AOP
Top Architect
Top Architect
Sep 9, 2024 · Backend Development

Backend Development Guide: Spring Boot Project Initialization, Version Management, and Common Utilities

This article walks through the challenges of setting up a Java backend environment, demonstrates how to create a Spring Boot project, explains version compatibility between Spring Cloud, Spring Boot, and Kafka, and provides reusable code snippets for exception handling, logging, CORS, Swagger, and response wrapping, along with recommended tools.

Backend DevelopmentJavaMaven
0 likes · 13 min read
Backend Development Guide: Spring Boot Project Initialization, Version Management, and Common Utilities
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2024 · Backend Development

Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult

This article explains how Spring Boot supports asynchronous request processing using Servlet 3.0 features and four approaches—AsyncContext, Callable, WebAsyncTask, and DeferredResult—provides code examples, thread‑pool configuration, and guidance on when to apply async handling to improve throughput.

AsynchronousCallableDeferredResult
0 likes · 9 min read
Implementing Asynchronous Requests in Spring Boot: Callable, WebAsyncTask, and DeferredResult
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 8, 2024 · Backend Development

Understanding the Spring Boot Startup Process

This article explains the Spring Boot startup mechanism, covering the @SpringBootApplication entry annotation, its constituent annotations, the role of SpringApplication.run, and the step‑by‑step initialization flow that powers Java backend applications.

BackendJavaSpring Boot
0 likes · 3 min read
Understanding the Spring Boot Startup Process
Top Architect
Top Architect
Sep 8, 2024 · Backend Development

Building an OSS Spring Boot Starter Using Amazon S3

This article provides a step‑by‑step guide to creating a Spring Boot starter for enterprise‑grade object storage services, explaining OSS concepts, Amazon S3 basics, project setup, Maven dependencies, configuration classes, template interfaces, implementation details, auto‑configuration, packaging, and testing.

Amazon S3JavaOSS
0 likes · 21 min read
Building an OSS Spring Boot Starter Using Amazon S3
Java Tech Enthusiast
Java Tech Enthusiast
Sep 8, 2024 · Backend Development

Guide to Using mybatis-plus-generator-ui for Java Code Generation

This guide explains how to integrate the mybatis-plus-generator-ui library into a Spring Boot project, configure database connections, launch the web UI, and use its customizable templates and naming converters to generate Entity, Mapper, Service, and Controller classes for multiple databases with a single click.

Backend DevelopmentJavaMyBatis-Plus
0 likes · 12 min read
Guide to Using mybatis-plus-generator-ui for Java Code Generation
Top Architect
Top Architect
Sep 7, 2024 · Backend Development

XXL-Job Distributed Task Scheduling Framework: Project Overview and Hands‑On Guide

This article introduces the open‑source XXL-Job distributed task scheduling framework, explains its architecture and communication design, and provides a step‑by‑step hands‑on tutorial covering server deployment, executor configuration, task development (annotation, API, sharding), execution, and log inspection, with code examples and screenshots.

Backend DevelopmentDistributed SchedulingJava
0 likes · 14 min read
XXL-Job Distributed Task Scheduling Framework: Project Overview and Hands‑On Guide
Java Tech Enthusiast
Java Tech Enthusiast
Sep 7, 2024 · Backend Development

Understanding Tomcat and Its Integration with Spring Boot

Apache Tomcat is the underlying servlet container and web server that Spring Boot automatically embeds via the spring‑boot‑starter‑web dependency, but junior developers often miss its core roles—managing servlet lifecycles, serving static resources, and compiling JSPs—so learning Tomcat (or swapping it for Jetty by adjusting Maven exclusions) clarifies what Spring Boot abstracts and enables flexible container choices.

JavaServletSpring Boot
0 likes · 6 min read
Understanding Tomcat and Its Integration with Spring Boot
Java Architect Essentials
Java Architect Essentials
Sep 5, 2024 · Backend Development

Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation

This article provides an in‑depth overview of the WebSocket protocol, covering its fundamentals, advantages, lifecycle, message formats, Java API usage, Spring Boot integration, performance considerations, and future development directions, complete with practical code examples for both server and client sides.

APIBackend DevelopmentJava
0 likes · 18 min read
Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation
JavaEdge
JavaEdge
Sep 5, 2024 · Backend Development

Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions

This article explains how Spring Boot automatically configures a ThreadPoolTaskExecutor for @Async and @Scheduled, shows the default parameters introduced in version 2.1, demonstrates how to inspect and customize them, compares the default executor with SimpleAsyncTaskExecutor, and provides code examples for using @Async, injecting the executor, and defining a custom thread pool to avoid resource‑exhaustion issues.

AsyncAsyncSpring Boot
0 likes · 18 min read
Mastering Spring Boot Thread Pools: From Default Config to Custom Solutions
Top Architect
Top Architect
Sep 5, 2024 · Backend Development

Designing a Unified API Response Structure in Spring Boot with @ResponseResult

This article explains how to standardize API responses in Spring Boot by defining a JSON result format, using custom annotations, interceptors, and ResponseBodyAdvice to automatically wrap controller return values, while also discussing status code design, message handling, and code simplification techniques.

JavaResponse wrapperSpring Boot
0 likes · 10 min read
Designing a Unified API Response Structure in Spring Boot with @ResponseResult
macrozheng
macrozheng
Sep 5, 2024 · Information Security

How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations

This article explains how to implement unified data desensitization in Java Spring Boot applications by creating custom annotations, enums, serializers, and utility methods that automatically mask personal information during JSON serialization, complete with code examples and test results.

Backend DevelopmentJacksonJava
0 likes · 13 min read
How to Automatically Mask Sensitive Data in Spring Boot with Jackson Annotations
Architect
Architect
Sep 4, 2024 · Backend Development

Unlocking Spring Bean Lifecycle: 17 Extension Points Every Developer Should Master

This article systematically catalogs every Spring and Spring Boot extension interface—from ApplicationContextInitializer to DisposableBean—illustrates their invocation order with a diagram, explains practical use‑cases, and provides concrete code samples for each hook, enabling developers to tap into the bean lifecycle for custom initialization, monitoring, and cleanup.

BackendExtension PointsJava
0 likes · 20 min read
Unlocking Spring Bean Lifecycle: 17 Extension Points Every Developer Should Master
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 4, 2024 · Backend Development

Master HTTP Request/Response Logging in Spring Boot with Logbook

This guide explains how to integrate the Logbook library into Spring Boot applications to capture detailed HTTP request and response logs, covering dependency setup, configuration options, output formats, Logback file logging, custom sinks, and RestTemplate interception for comprehensive monitoring and debugging.

Backend DevelopmentHTTP loggingSpring Boot
0 likes · 9 min read
Master HTTP Request/Response Logging in Spring Boot with Logbook
Su San Talks Tech
Su San Talks Tech
Sep 3, 2024 · Backend Development

How to Build a Scalable Multi‑Tenant Architecture with Spring Boot & Spring Cloud

This article explains the concept, advantages, design considerations, and step‑by‑step implementation of a multi‑tenant architecture using Spring Boot and Spring Cloud, covering tenant isolation, database strategies, dynamic routing, security configuration, deployment scenarios, and provides complete code examples for building SaaS‑ready applications.

JavaSaaSSpring Boot
0 likes · 16 min read
How to Build a Scalable Multi‑Tenant Architecture with Spring Boot & Spring Cloud
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.

ActivitiBPMNJava
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 LoadingJARJava
0 likes · 8 min read
Dynamic Loading of JAR Files in Spring Boot Applications
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.

DefenseJavaSpring Boot
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.

Backend DevelopmentConfigurationPropertiesCustom Converter
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.

JVMJavaMCC
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.

Backend DevelopmentConcurrencyJDK 21
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 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.

BenchmarkDockerJetty
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.

ActivitiBPMNBackend Development
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.

JavaLoggingSpring Boot
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.

Distributed SystemsJavaSpring Boot
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.

Backend DevelopmentJavaRedis
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.

@ValueConfigurationPropertiesEnvironment
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.

APIBackendJava
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 idempotencyDebounceJava
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.

JavaSpring Bootvirtual-threads
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.

Backend DevelopmentDatabaseDevOps
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.

@ValidCode CleanlinessController Refactoring
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.

DeserializationJSONJackson
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.

Data ConsistencyJavaRedis
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.

AsyncCacheCaffeine
0 likes · 12 min read
Mastering Caffeine Cache in Spring Boot 3.2: Performance, Eviction & Async Usage
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.

Backend DevelopmentMongoDBSpring Boot
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.

MDCObservabilitySpring 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.

AOPDeserializationJSON
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.

Backend DevelopmentJavaLiteFlow
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.

Backend DevelopmentController RefactoringException Handling
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.

HutoolJacksonJava
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.

JavaOpenAISpring AI
0 likes · 5 min read
How Spring AI Now Supports OpenAI Structured JSON Output – A Quick Guide