Tagged articles
3838 articles
Page 17 of 39
The Dominant Programmer
The Dominant Programmer
Feb 20, 2024 · Backend Development

Implementing Retry Logic for Third‑Party APIs with Spring Retry in Spring Boot

This guide shows how to add a retry mechanism to Spring Boot applications using Spring Retry, covering dependency setup, enabling @EnableRetry, defining @Retryable with custom back‑off settings, handling failures with @Recover, writing unit tests, and observing behavior with different retry counts and exception filters.

@EnableRetryRetryableSpring Retry
0 likes · 6 min read
Implementing Retry Logic for Third‑Party APIs with Spring Retry in Spring Boot
The Dominant Programmer
The Dominant Programmer
Feb 20, 2024 · Backend Development

Integrating Elasticsearch with Spring Boot for Full CRUD Operations

This guide walks through integrating Spring Data Elasticsearch into a Spring Boot application, covering entity mapping annotations, repository creation, service layer implementation, and unit tests to perform create, read, update, delete, and fuzzy search operations on Elasticsearch indices.

CRUDElasticsearchSpring Data Elasticsearch
0 likes · 8 min read
Integrating Elasticsearch with Spring Boot for Full CRUD Operations
Programmer DD
Programmer DD
Feb 20, 2024 · Backend Development

Quick Start: Integrate Camunda Workflow Engine with Spring Boot

Learn how to set up and integrate the Camunda BPMN 2.0 workflow engine into a Spring Boot application, covering project initialization, Maven dependencies, configuration files, creating a simple user task process, and testing the workflow via Camunda’s web interface.

BPMNCamundaWorkflow
0 likes · 10 min read
Quick Start: Integrate Camunda Workflow Engine with Spring Boot
Programmer DD
Programmer DD
Feb 19, 2024 · Backend Development

How to Build a Full‑Text Search API with Spring Boot and PostgreSQL

This guide explains how to implement a searchable user‑story interface using PostgreSQL tables with btree and gin indexes, Java record models, Spring Boot data access, and REST controllers to support range and full‑text queries efficiently.

Full‑Text Searchjavapostgresql
0 likes · 9 min read
How to Build a Full‑Text Search API with Spring Boot and PostgreSQL
Programmer DD
Programmer DD
Feb 19, 2024 · Backend Development

Boost Your Spring Boot Apps with Generative AI Using Spring AI

This tutorial walks you through adding OpenAI's generative capabilities to a Spring Boot application with Spring AI, covering project setup, API key configuration, controller creation, simple and advanced prompt usage, and how to test the resulting AI-powered endpoints.

OpenAIbackend-developmentgenerative AI
0 likes · 5 min read
Boost Your Spring Boot Apps with Generative AI Using Spring AI
Java Architecture Diary
Java Architecture Diary
Feb 18, 2024 · Artificial Intelligence

Boost Captcha Solving with Gemini AI: Spring Boot Integration Guide

This tutorial explains how to integrate Gemini's free API and long‑context capabilities into a Spring Boot starter to recognize image captchas, handle interference lines, and solve arithmetic challenges, providing code samples, configuration steps, and best practices for improving automation efficiency.

AICaptchaGemini
0 likes · 5 min read
Boost Captcha Solving with Gemini AI: Spring Boot Integration Guide
Programmer DD
Programmer DD
Feb 17, 2024 · Backend Development

How to Seamlessly Upgrade Spring Boot 2.x to 3.x: Step‑by‑Step Guide

This guide explains why upgrading from Spring Boot 2.x to 3.x is essential, outlines the required JDK 17 migration, Spring Boot version bump, configuration property changes, Jakarta EE transition, and updates to Spring Security, Kafka, RestTemplate, and OpenAPI integration, providing code examples for each step.

KafkaOpenAPIjakarta-ee
0 likes · 10 min read
How to Seamlessly Upgrade Spring Boot 2.x to 3.x: Step‑by‑Step Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 17, 2024 · Backend Development

Mastering @InitBinder in Spring Boot 3: Custom Data Binding Techniques

This article explains how to use Spring Boot's @InitBinder annotation in @Controller and @ControllerAdvice classes to customize WebDataBinder for parameter binding, type conversion, and formatting, and provides five practical examples demonstrating custom editors, converters, global binders, and field restrictions.

Custom ConverterInitBinderWebDataBinder
0 likes · 6 min read
Mastering @InitBinder in Spring Boot 3: Custom Data Binding Techniques
Selected Java Interview Questions
Selected Java Interview Questions
Feb 16, 2024 · Backend Development

Integrating Redis with Spring Boot: Dependencies, Configuration, and Usage Guide

This tutorial explains how to add Redis dependencies to a Spring Boot project, configure connection settings, use RedisTemplate for basic operations, enable Spring Cache, employ Redisson for distributed locks, and fine‑tune connection pool and timeout parameters, providing complete code examples.

backend-developmentdistributed-lockjava
0 likes · 10 min read
Integrating Redis with Spring Boot: Dependencies, Configuration, and Usage Guide
Java Captain
Java Captain
Feb 16, 2024 · Backend Development

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

This article explains how to integrate Lua scripts into Spring Boot applications using Redis, covering Lua fundamentals, performance benefits, practical use cases, step‑by‑step implementation, error handling, security considerations, and best practices for optimizing backend services.

LuaPerformancebackend-development
0 likes · 19 min read
Using Lua Scripts with Spring Boot and Redis: A Comprehensive Guide
Java Captain
Java Captain
Feb 16, 2024 · Backend Development

Differences Between Spring and Spring Boot: A Comprehensive Comparison

Spring Boot, an evolution of the Spring framework, simplifies project setup, offers built-in web servers, provides production-ready features, and enhances development efficiency, distinguishing it from traditional Spring which requires extensive XML configuration and external servlet containers, making Boot the preferred choice for modern Java backend development.

backend-developmentjavamicroservices
0 likes · 4 min read
Differences Between Spring and Spring Boot: A Comprehensive Comparison
Architect's Guide
Architect's Guide
Feb 12, 2024 · Backend Development

Automating CRUD Operations with MyBatisPlus in Spring Boot

This article demonstrates how to automate CRUD operations in a Spring Boot application by leveraging MyBatisPlus, creating utility methods, a generic BaseController, pagination configuration, and extending it in concrete controllers, providing reusable code for rapid backend development.

MyBatisPlusRESTful APIjava
0 likes · 9 min read
Automating CRUD Operations with MyBatisPlus in Spring Boot
Su San Talks Tech
Su San Talks Tech
Feb 12, 2024 · Backend Development

How to Warm Up Your Cache for High‑Concurrency Systems

Cache warming, a technique used in high‑concurrency systems to preload frequently accessed data before traffic spikes, improves hit rates, reduces latency, prevents cache breakdowns, and eases backend load, with methods ranging from startup loading and scheduled jobs to Spring Boot listeners, Redis tools, and Caffeine loaders.

Backend PerformanceCaffeinecache warming
0 likes · 10 min read
How to Warm Up Your Cache for High‑Concurrency Systems
ITPUB
ITPUB
Feb 10, 2024 · Backend Development

How to Warm Up Your Cache to Boost High‑Concurrency System Performance

Cache warming, a technique used in high‑concurrency systems, involves preloading frequently accessed data into memory before traffic spikes to improve hit rates, reduce cold‑start latency, prevent cache breakdowns, and lessen backend load, with various strategies such as startup loading, scheduled jobs, manual triggers, Redis tools, and Caffeine loaders demonstrated through Spring Boot code examples.

BackendCacheCaffeine
0 likes · 10 min read
How to Warm Up Your Cache to Boost High‑Concurrency System Performance
Code Ape Tech Column
Code Ape Tech Column
Feb 6, 2024 · Backend Development

Comprehensive Guide to Spring Validation: Best Practices and Implementation Principles

This article provides an in‑depth tutorial on Spring Validation, covering simple usage, requestBody and requestParam/PathVariable validation, unified exception handling, advanced techniques such as group, nested, collection and custom validation, programmatic validation, fail‑fast mode, and the underlying implementation mechanisms within Spring MVC and Hibernate Validator.

BackendHibernate Validatorjava
0 likes · 17 min read
Comprehensive Guide to Spring Validation: Best Practices and Implementation Principles
Architect
Architect
Feb 5, 2024 · Backend Development

Applying the Strategy Pattern with Simple Factory in a Spring Boot Application

This article demonstrates how to apply the Strategy pattern combined with a simple factory in a Spring Boot application, showing interface definition, multiple arithmetic strategy implementations, a factory that registers beans, a service invoking strategies via a map, and a REST controller for testing, highlighting extensibility.

BackendFactoryStrategy Pattern
0 likes · 8 min read
Applying the Strategy Pattern with Simple Factory in a Spring Boot Application
Code Ape Tech Column
Code Ape Tech Column
Feb 4, 2024 · Backend Development

Implementing a Dynamic Thread Pool with Nacos in Spring Boot

This article demonstrates how to create a dynamically configurable thread pool in a Spring Boot backend by using Nacos as a configuration center, covering Maven dependencies, YAML configuration files, Nacos data IDs, Java implementation with listeners, a REST controller for testing, and practical verification steps.

Dynamic ConfigurationNacosbackend-development
0 likes · 11 min read
Implementing a Dynamic Thread Pool with Nacos in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Feb 2, 2024 · Backend Development

Comprehensive Guide to API Request Retry Mechanisms and Spring Boot Implementation

This article examines why API requests fail, explains the importance of retry mechanisms, compares linear, exponential and randomized back‑off strategies, discusses maximum attempt considerations and idempotency, and provides a detailed Spring Boot implementation using Spring Retry along with alternative approaches.

API RetryBackendIdempotency
0 likes · 21 min read
Comprehensive Guide to API Request Retry Mechanisms and Spring Boot Implementation
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2024 · Artificial Intelligence

Integrating Tess4J OCR into a Spring Boot Application

This guide walks through setting up a Spring Boot project, adding Tess4J dependencies, configuring language data, implementing an OCR service class, exposing REST endpoints for local and remote image recognition, and testing the OCR functionality end‑to‑end.

OCRREST APIjava
0 likes · 6 min read
Integrating Tess4J OCR into a Spring Boot Application
Java Captain
Java Captain
Feb 1, 2024 · Backend Development

Differences and Advantages of Spring Boot Compared to the Traditional Spring Framework

Spring Boot, emerging as the preferred Java framework for microservices, differs from traditional Spring by offering automatic configuration, simplified Maven setup, embedded containers, production-ready features, and streamlined Spring MVC, which together accelerate development, ease deployment, and improve cloud integration compared to the more complex, slower-starting classic Spring.

Frameworkbackend-developmentjava
0 likes · 4 min read
Differences and Advantages of Spring Boot Compared to the Traditional Spring Framework
Java Tech Enthusiast
Java Tech Enthusiast
Feb 1, 2024 · Backend Development

Implementing a Robust Redis Distributed Lock with Spring Boot

The article shows how to build a reliable Redis‑based distributed lock in a Spring Boot 2.7 application by storing a unique UUID token, acquiring the lock with SET NX PX, releasing it atomically via a Lua script, and providing a clean Lock interface, factory component, and JUnit example.

Luadistributed-lockjava
0 likes · 13 min read
Implementing a Robust Redis Distributed Lock with Spring Boot
Architecture Digest
Architecture Digest
Feb 1, 2024 · Backend Development

Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling

This article explains how to build a clean and maintainable Spring Boot controller layer by separating responsibilities, unifying response structures, applying comprehensive parameter validation (including custom rules), and implementing centralized exception handling to keep business logic concise and robust.

ControllerException Handlingbackend-development
0 likes · 18 min read
Best Practices for Designing the Controller Layer in Spring Boot: Unified Response, Validation, and Exception Handling
Java Architecture Diary
Java Architecture Diary
Feb 1, 2024 · Backend Development

Must‑Read Java 21 & Spring Boot 3.2 Resources for the Lunar New Year

Celebrating the Lunar New Year, this roundup shares essential Java 21 updates, Spring Boot 3.2 enhancements, domestic open‑source innovations, and other hand‑picked tools and articles, providing developers with quick links to explore new APIs, performance improvements, and cutting‑edge Java ecosystem resources.

Nacosbackend-developmentjava-21
0 likes · 5 min read
Must‑Read Java 21 & Spring Boot 3.2 Resources for the Lunar New Year
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 1, 2024 · Backend Development

Master Spring MVC Customization: From WebConfig to YAML Message Converters

This tutorial walks through enabling Spring MVC, configuring type conversion, validation, interceptors, content negotiation, custom YAML message converters, view controllers, view resolvers, and static resource handling in a Spring Boot 2.7.12 application, complete with code examples and output screenshots.

Content negotiationMessage ConverterSpring MVC
0 likes · 9 min read
Master Spring MVC Customization: From WebConfig to YAML Message Converters
Selected Java Interview Questions
Selected Java Interview Questions
Jan 31, 2024 · Backend Development

Large File Upload, Chunked Upload, Resume and Instant Upload with Spring Boot and JavaScript

This article demonstrates how to implement small file uploads, large file chunked uploads, breakpoint resume, and instant upload using Spring Boot 3.1.2 on the backend and native JavaScript with spark‑md5 on the frontend, covering configuration, code examples, and practical considerations.

BackendFrontendchunked upload
0 likes · 15 min read
Large File Upload, Chunked Upload, Resume and Instant Upload with Spring Boot and JavaScript
Code Ape Tech Column
Code Ape Tech Column
Jan 31, 2024 · Backend Development

Custom Spring Boot Packaging with External Dependencies Using Maven Plugins

This article explains how to create a Spring Boot fat‑jar that externalizes its dependencies by configuring the spring‑boot‑maven‑plugin and maven‑assembly‑plugin to produce a ZIP layout, then uses the PropertiesLauncher with loader.path to load libraries from a separate libs directory at runtime.

backend-developmentjavamaven
0 likes · 6 min read
Custom Spring Boot Packaging with External Dependencies Using Maven Plugins
Selected Java Interview Questions
Selected Java Interview Questions
Jan 30, 2024 · Backend Development

Using ProGuard, Xjar, and ClassFinal to Obfuscate and Encrypt Java JARs in Spring Boot Projects

This article explains how to protect Java server-side code from decompilation by applying ProGuard shrinking/obfuscation and Xjar/ClassFinal encryption, provides detailed Maven plugin configurations, sample pom.xml snippets, command‑line launch options, and demonstrates the resulting protected JARs with screenshots.

ObfuscationProGuardXjar
0 likes · 22 min read
Using ProGuard, Xjar, and ClassFinal to Obfuscate and Encrypt Java JARs in Spring Boot Projects
Top Architect
Top Architect
Jan 30, 2024 · Backend Development

Advanced Backend Asynchronous Execution and Configuration Techniques in Spring Boot

This article explains multiple backend optimization methods for Spring Boot, including asynchronous execution with @Async and CompletableFuture, increasing embedded Tomcat connection limits, using @ComponentScan, switching to Undertow, applying BufferedWriter, employing DeferredResult, and intercepting async calls with AsyncHandlerInterceptor, accompanied by concrete code examples.

AsynchronousCompletableFutureTomcat
0 likes · 12 min read
Advanced Backend Asynchronous Execution and Configuration Techniques in Spring Boot
Top Architect
Top Architect
Jan 30, 2024 · Backend Development

Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor and BeanPostProcessor

This article explains the five major extension points in Spring Boot—ApplicationContextInitializer, ApplicationListener, Runner, BeanFactoryPostProcessor, and BeanPostProcessor—showing how they are discovered via SPI, where they are invoked during the startup lifecycle, and how to implement custom ones with code examples.

ApplicationContextInitializerApplicationListenerBeanFactoryPostProcessor
0 likes · 9 min read
Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor and BeanPostProcessor
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 30, 2024 · Backend Development

Master Spring Boot Bean Lifecycle: Init, Destroy, Scopes & Advanced Tricks

This article explains how to control Spring bean initialization and destruction using interfaces and annotations, inject prototype beans into singleton controllers, implement various BeanPostProcessor extensions, dynamically register beans, use @Import, Runner interfaces, global exception handling, custom type conversion, BeanFactoryAware, web interceptors, and default AOP proxy creation.

backend-developmentbean-lifecycledependency-injection
0 likes · 9 min read
Master Spring Boot Bean Lifecycle: Init, Destroy, Scopes & Advanced Tricks
macrozheng
macrozheng
Jan 29, 2024 · Backend Development

How Easy-Es Transforms Elasticsearch Operations in Java: A Step‑by‑Step Guide

This article introduces Easy-Es, an Elasticsearch ORM that mimics MyBatis‑Plus syntax, explains its key features, shows how to integrate it into a Spring Boot project, and provides comprehensive code examples for index management, CRUD, simple and advanced product searches, recommendation and aggregation functionalities.

Easy-EsElasticsearchORM
0 likes · 18 min read
How Easy-Es Transforms Elasticsearch Operations in Java: A Step‑by‑Step Guide
JD Tech
JD Tech
Jan 26, 2024 · Backend Development

Optimizing Java Applications with Spring Boot 2.7 and JDK 17: Features, Migration Steps, and Deployment Practices

This article explains how combining Spring Boot 2.7 with JDK 17 can improve Java application performance, outlines the new language and runtime features, details migration challenges, provides configuration and code examples, and shares practical deployment guidance for cloud‑native environments.

JDK 17Performance Optimizationbackend-development
0 likes · 23 min read
Optimizing Java Applications with Spring Boot 2.7 and JDK 17: Features, Migration Steps, and Deployment Practices
Top Architect
Top Architect
Jan 26, 2024 · Backend Development

Comprehensive Guide to Using Apollo Configuration Center with Spring Boot

This article provides a step‑by‑step tutorial on deploying the Ctrip Apollo configuration center, creating projects and namespaces, integrating Apollo with a Spring Boot application, configuring environments, clusters and namespaces, and testing dynamic configuration updates in Kubernetes, covering all essential concepts and practical code examples.

ApolloConfiguration Managementspring-boot
0 likes · 27 min read
Comprehensive Guide to Using Apollo Configuration Center with Spring Boot
Java Captain
Java Captain
Jan 25, 2024 · Backend Development

Top 20 Classic Spring Boot Interview Questions

This article presents the 20 most common Spring Boot interview questions, covering fundamentals, features, configuration, performance, security, microservices, and deployment, to help job seekers prepare effectively for Spring Boot related positions in the industry.

Frameworkbackend-developmentinterview-questions
0 likes · 3 min read
Top 20 Classic Spring Boot Interview Questions
Selected Java Interview Questions
Selected Java Interview Questions
Jan 25, 2024 · Backend Development

Easy-Es: An ORM Framework for Elasticsearch in Java

Easy-Es is a Java ORM framework built on Elasticsearch's RestHighLevelClient that simplifies search‑engine development, offers Mybatis‑Plus‑like usage, provides configuration and dependency details, and includes complete code examples for creating indexes and performing CRUD operations within Spring Boot applications.

Easy-EsElasticsearchORM
0 likes · 8 min read
Easy-Es: An ORM Framework for Elasticsearch in Java
macrozheng
macrozheng
Jan 25, 2024 · Backend Development

How to Slash Spring Boot Memory Usage by Over 40% for Local Development

This guide explains why Spring Boot applications consume memory, shows how to configure the JVM and Tomcat settings, and demonstrates using Docker‑compose to apply these tweaks, enabling developers to reduce local memory usage by more than 40% and speed up development cycles.

JVMMemory Optimizationconfiguration
0 likes · 7 min read
How to Slash Spring Boot Memory Usage by Over 40% for Local Development
MaGe Linux Operations
MaGe Linux Operations
Jan 24, 2024 · Operations

How to Set Up ELK Logging for Spring Boot and Nginx with Docker

This guide walks through configuring the ELK stack (Elasticsearch, Logstash, Kibana) for Spring Boot applications, integrating Logback via logstash-logback-encoder, setting up Filebeat in Docker containers to collect Nginx logs, and creating Kibana index patterns for efficient log querying.

ELKFilebeatKibana
0 likes · 10 min read
How to Set Up ELK Logging for Spring Boot and Nginx with Docker
Java Backend Technology
Java Backend Technology
Jan 24, 2024 · Backend Development

How to Export Any Java Object List to Excel Using Reflection and CSV

This article demonstrates a step‑by‑step method for exporting a list of unknown Java objects to an Excel/CSV file by leveraging reflection to dynamically generate headers and rows, complete with Maven dependencies, utility code, usage examples, and an extensible annotation‑based approach.

CSVReflectionannotation
0 likes · 11 min read
How to Export Any Java Object List to Excel Using Reflection and CSV
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 24, 2024 · Backend Development

Master Dynamic Multi-DataSource Switching in Spring Boot 2.7

This tutorial explains why enterprise applications need multiple data sources, outlines the scenarios such as business isolation, migration, performance and maintainability, and provides a step‑by‑step implementation of dynamic data source routing in Spring Boot using custom context holders, routing classes, annotations, aspects, configuration, and web‑request control.

Dynamic RoutingMulti-DataSourcebackend-development
0 likes · 12 min read
Master Dynamic Multi-DataSource Switching in Spring Boot 2.7
macrozheng
macrozheng
Jan 23, 2024 · Backend Development

Master Spring Boot 3 Http Interface: Declarative Remote Calls with WebFlux

This article explains how Spring Boot 3's Http Interface feature enables declarative HTTP service calls by defining Java interfaces, covering dependency setup, interface definition, token handling, configuration, controller integration, testing with Postman, and a brief discussion of its WebFlux dependency.

Declarative RESTHTTP InterfaceRemote Call
0 likes · 10 min read
Master Spring Boot 3 Http Interface: Declarative Remote Calls with WebFlux
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 23, 2024 · Information Security

Create a Secure OAuth2 Authorization Server with Spring Boot 3.1 & JDK 17

This guide walks through setting up Spring Authorization Server on Spring Boot 3.1 with JDK 17, covering environment setup, required dependencies, custom security filter chains, in‑memory user and client configurations, JWT signing, endpoint settings, consent service, and step‑by‑step testing of the authorization code flow.

Authorization ServerOAuth2java
0 likes · 9 min read
Create a Secure OAuth2 Authorization Server with Spring Boot 3.1 & JDK 17
Architect
Architect
Jan 22, 2024 · Backend Development

Designing a Unified API Response and Global Exception Handling in Spring Boot

This article walks through creating a standardized JSON response structure with a Result enum and wrapper class, demonstrates how to return it from controllers, implements a @ControllerAdvice‑based global exception handler with custom exceptions, and configures Logback for comprehensive logging in Spring Boot applications.

Exception HandlingUnified responseapi-design
0 likes · 17 min read
Designing a Unified API Response and Global Exception Handling in Spring Boot
MaGe Linux Operations
MaGe Linux Operations
Jan 22, 2024 · Cloud Native

Deploy and Secure Nacos Config Center on Huawei CCE & Kubernetes

This guide explains how to use Nacos as a centralized configuration center in Spring Boot micro‑services, covering common pitfalls of static configs, best‑practice namespace/group/DataId design, dependency setup, YAML examples, security annotations, role‑based access, Dockerfile tweaks, CCE deployment, database schema, and Kubernetes manifests for test and production environments.

Configuration ManagementDevOpsHuawei CCE
0 likes · 19 min read
Deploy and Secure Nacos Config Center on Huawei CCE & Kubernetes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 22, 2024 · Backend Development

Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine

This guide walks through implementing a two‑level cache in Spring Boot 2.7 using Lettuce’s CacheFrontend together with Caffeine, covering dependency setup, configuration, custom CacheAccessor, bean definitions, and sample endpoints that demonstrate automatic synchronization and eviction between local JVM cache and Redis.

CacheFrontendCaffeineTwo-level caching
0 likes · 7 min read
Mastering Two-Level Caching in Spring Boot with CacheFrontend & Caffeine
Architect's Guide
Architect's Guide
Jan 19, 2024 · Backend Development

Implementing a Graceful Retry Mechanism for Third‑Party API Calls in Spring Boot

This article explains why retry mechanisms are essential for unstable third‑party API calls, introduces Spring Retry, demonstrates how to configure synchronous and asynchronous retries, handle exception inclusion/exclusion, integrate circuit‑breaker fallback with Hystrix, and provides performance testing guidance, all with practical code examples.

HystrixRetrySpring Retry
0 likes · 8 min read
Implementing a Graceful Retry Mechanism for Third‑Party API Calls in Spring Boot
Programmer DD
Programmer DD
Jan 18, 2024 · Backend Development

Why Virtual Threads Lag Behind WebFlux in Spring Boot MySQL Performance

This article examines a performance comparison of Spring Boot applications using physical threads, Java virtual threads, and WebFlux for JWT verification with MySQL, detailing test setup, code examples, benchmark results across various concurrency levels, and concluding that virtual threads perform worst due to MySQL driver incompatibility.

MySQLWebFluxspring-boot
0 likes · 9 min read
Why Virtual Threads Lag Behind WebFlux in Spring Boot MySQL Performance
Architect
Architect
Jan 17, 2024 · Backend Development

How to Build a Custom Spring Security Authentication Flow with Redis Token Management

This article walks through the complete process of implementing a custom login authentication in Spring Boot, including custom authentication filters, success/failure handlers, a token stored in Redis, role‑based URL security, and detailed configuration of Spring Security headers and session handling.

Custom Authenticationjavaredis
0 likes · 24 min read
How to Build a Custom Spring Security Authentication Flow with Redis Token Management
IT Services Circle
IT Services Circle
Jan 16, 2024 · Backend Development

Cache Prewarming Techniques and Implementation in Spring Boot and Redis

This article explains cache prewarming—its purpose, benefits, and various strategies such as startup loading, scheduled tasks, manual triggers, and cache loaders—while providing concrete Spring Boot and Redis examples, including code snippets for ApplicationReadyEvent, CommandLineRunner, InitializingBean, @PostConstruct, @Scheduled, and Caffeine cache loader.

Backend PerformanceCacheCaffeine
0 likes · 9 min read
Cache Prewarming Techniques and Implementation in Spring Boot and Redis
Selected Java Interview Questions
Selected Java Interview Questions
Jan 14, 2024 · Backend Development

Introducing Liteflow: A Lightweight Java Rule Engine for Backend Development

This article explains the concepts, architecture, and practical usage of Liteflow, a lightweight Java rule engine that integrates with Spring Boot, supports various rule file formats, multiple component types, data contexts, and configuration options for building complex workflow processes in backend applications.

LiteFlowjavarule engine
0 likes · 9 min read
Introducing Liteflow: A Lightweight Java Rule Engine for Backend Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 14, 2024 · Backend Development

Master Spring Boot 3.0.9: Access Command‑Line, JSON, YAML, Encryption & More

This guide demonstrates how to retrieve command‑line arguments, use JSON‑encoded properties, load external configuration files, encrypt values, parse YAML, generate random properties, handle internationalization, customize the banner, and configure the application context in Spring Boot 3.0.9, providing code examples for each feature.

YAMLconfigurationjava
0 likes · 9 min read
Master Spring Boot 3.0.9: Access Command‑Line, JSON, YAML, Encryption & More
Java High-Performance Architecture
Java High-Performance Architecture
Jan 11, 2024 · Backend Development

Master Unified Exception Handling in Spring Boot: Clean Code with Assertions and Enums

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling strategy using @ControllerAdvice, custom Assert utilities, and enum‑based error codes, providing clean, maintainable code and consistent API responses.

AssertException HandlingUnified Error Response
0 likes · 23 min read
Master Unified Exception Handling in Spring Boot: Clean Code with Assertions and Enums
Top Architect
Top Architect
Jan 10, 2024 · Backend Development

Implementing Automatic Order Cancellation After 30 Minutes in Spring Boot

This article explains three Spring Boot approaches—using @Scheduled tasks, RabbitMQ delayed queues, and Redis key‑expiration events—to automatically cancel orders that remain unpaid for 30 minutes, complete with code samples and configuration guidance.

BackendOrder CancellationRabbitMQ
0 likes · 8 min read
Implementing Automatic Order Cancellation After 30 Minutes in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jan 10, 2024 · Backend Development

Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor

This article explains the core extension points of Spring Boot—including ApplicationContextInitializer, ApplicationListener, Runner, BeanFactoryPostProcessor, and BeanPostProcessor—showing how they are discovered via SPI, registered in spring.factories, and invoked during the application startup lifecycle.

ApplicationContextInitializerApplicationListenerBeanFactoryPostProcessor
0 likes · 7 min read
Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 9, 2024 · Backend Development

Mastering Distributed Locks with Spring Integration in Spring Boot

This guide explains how to use Spring Integration's LockRegistry for distributed locking, covering both database‑based and Redis‑based implementations, complete with Maven dependencies, configuration snippets, bean definitions, and comprehensive test cases to ensure reliable synchronization across multiple nodes.

JdbcLockRedisLockSpring Integration
0 likes · 9 min read
Mastering Distributed Locks with Spring Integration in Spring Boot
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jan 8, 2024 · Information Security

Understanding SQL Injection and Prevention with Spring Boot and MyBatis

This article explains the concept of SQL injection, demonstrates a vulnerable query example, and provides a step‑by‑step Spring Boot and MyBatis implementation—including table creation, Java controller, service, DAO, mapper, and configuration—to illustrate how proper parameter handling prevents injection attacks.

Database SecuritySQL injectionjava
0 likes · 10 min read
Understanding SQL Injection and Prevention with Spring Boot and MyBatis
Programmer DD
Programmer DD
Jan 8, 2024 · Artificial Intelligence

How to Add Generative AI to Your Spring Boot App with Spring AI

This tutorial walks you through creating a Spring Boot project, configuring OpenAI credentials, building a controller, and using Spring AI's Prompt and PromptTemplate classes to integrate generative AI capabilities into your backend application.

OpenAIbackend-developmentgenerative AI
0 likes · 5 min read
How to Add Generative AI to Your Spring Boot App with Spring AI
Su San Talks Tech
Su San Talks Tech
Jan 8, 2024 · Backend Development

How Xxl-Job Works: Inside the Lightweight Distributed Scheduler

This article explains the core concepts, architecture, and implementation details of Xxl-Job, a lightweight distributed task scheduling platform, covering the scheduler center, executor, job handling, demo setup, routing strategies, trigger mechanisms, and result callbacks.

BackendXXL-JOBjava
0 likes · 20 min read
How Xxl-Job Works: Inside the Lightweight Distributed Scheduler
Java High-Performance Architecture
Java High-Performance Architecture
Jan 7, 2024 · Backend Development

Why Use RocketMQ with Spring Boot? A Complete Integration Guide

This article explains why MQ is needed beyond in‑process event listeners, details the required dependencies for Spring Boot 3, shows how to configure RocketMQ, provides code snippets for producer, consumer, and testing, and offers practical tips for handling async, batch, and one‑way messaging.

Message QueueRocketMQasync messaging
0 likes · 9 min read
Why Use RocketMQ with Spring Boot? A Complete Integration Guide
Architect's Guide
Architect's Guide
Jan 7, 2024 · Information Security

Implementing RSA Encryption and Decryption in Spring Boot APIs

This guide explains how to secure Spring Boot API responses using RSA asymmetric encryption, covering the theory of RSA, practical scenarios, Maven setup, annotation‑based encryption/decryption, configuration files, and a JavaScript front‑end example for encrypting request payloads.

API SecurityRSAencryption
0 likes · 10 min read
Implementing RSA Encryption and Decryption in Spring Boot APIs
Java High-Performance Architecture
Java High-Performance Architecture
Jan 6, 2024 · Backend Development

Boost Java Development with MyBatis-Plus Generator UI: A Complete Guide

This article introduces the MyBatis‑Plus Generator UI, a highly customizable web‑based code generation framework that supports multiple databases, explains its core features, provides step‑by‑step integration with Spring Boot, and demonstrates how to extend templates and configure naming conventions for efficient backend development.

code-generationmybatis-plusspring-boot
0 likes · 13 min read
Boost Java Development with MyBatis-Plus Generator UI: A Complete Guide
Programmer DD
Programmer DD
Jan 5, 2024 · Backend Development

How Fast Are Virtual Threads in Spring Boot 3.2 for Static File Servers?

This article evaluates the performance of Spring Boot 3.2's virtual threads when serving static files, comparing them with traditional platform threads across various concurrency levels, and concludes that platform threads slightly outperform virtual threads in this I/O‑bound scenario while suggesting better use cases for database‑driven workloads.

Static File Serverjava-21spring-boot
0 likes · 12 min read
How Fast Are Virtual Threads in Spring Boot 3.2 for Static File Servers?
Open Source Linux
Open Source Linux
Jan 5, 2024 · Information Security

Secure Spring Boot Deployments with ClassFinal: Code Encryption & Machine‑Bound Launch

This guide explains how to protect Spring Boot production packages from decompilation by using the ClassFinal Maven plugin for code encryption, configuring machine‑bound startup, and comparing it with ProGuard obfuscation, including detailed plugin setup, launch commands, and observed decompilation results.

ClassFinalCode EncryptionMaven Plugin
0 likes · 7 min read
Secure Spring Boot Deployments with ClassFinal: Code Encryption & Machine‑Bound Launch
Selected Java Interview Questions
Selected Java Interview Questions
Jan 4, 2024 · Backend Development

Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot

This article explains why duplicate form submissions occur, the risks they pose, and demonstrates a Spring Boot solution that uses a custom @RequestLock annotation together with Redis SETNX to generate a unique key and block rapid repeated requests, complete with project setup, code examples, and usage instructions.

Request Lockannotationaop
0 likes · 12 min read
Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Jan 4, 2024 · Backend Development

Creating an Enterprise-Grade OSS Object Storage Spring Boot Starter

This article provides a step‑by‑step guide to building a Spring Boot starter that abstracts Amazon S3‑compatible object storage services such as Alibaba Cloud OSS, Tencent COS, Qiniu OSS, and MinIO, covering dependency setup, configuration properties, template interfaces, implementation, auto‑configuration, packaging, and testing.

Amazon S3BackendOSS
0 likes · 15 min read
Creating an Enterprise-Grade OSS Object Storage Spring Boot Starter
Su San Talks Tech
Su San Talks Tech
Jan 4, 2024 · Backend Development

How to Prevent Duplicate Scheduled Tasks in Distributed Systems with ElasticJob

This article explains why scheduled jobs run twice in a multi‑node deployment, shows how to isolate the timing logic into a single service, and demonstrates using ElasticJob with Zookeeper for sharding, distributed locks, and high‑availability to ensure each task executes exactly once.

Distributed SchedulingZooKeeperdistributed-lock
0 likes · 21 min read
How to Prevent Duplicate Scheduled Tasks in Distributed Systems with ElasticJob
Programmer DD
Programmer DD
Jan 2, 2024 · Backend Development

How to Seamlessly Upgrade Spring Boot 2.x to 3.x – Step-by-Step Guide

This guide walks developers through upgrading from Spring Boot 2.x to 3.x, covering JDK 17 migration, pom.xml changes, configuration property updates, Jakarta EE transition, security reconfiguration, Kafka template adjustments, and OpenAPI integration, with code examples for each step.

Kafkajakarta-eejava
0 likes · 9 min read
How to Seamlessly Upgrade Spring Boot 2.x to 3.x – Step-by-Step Guide
Programmer DD
Programmer DD
Jan 2, 2024 · Backend Development

How to Integrate Generative AI into Spring Boot with Spring AI

This article summarizes a video tutorial that introduces Spring AI, a new project enabling generative AI in Spring Boot applications, demonstrates adding dependencies, configuring OpenAI or Azure OpenAI API keys, using prompts, templates, output parsers, and showcases converting AI responses into domain objects.

OpenAIbackend-developmentgenerative AI
0 likes · 5 min read
How to Integrate Generative AI into Spring Boot with Spring AI
macrozheng
macrozheng
Dec 28, 2023 · Backend Development

Master Spring Boot Validation: 10 Essential Tips & Custom Annotations

This article explains ten practical techniques for implementing robust parameter validation in Spring Boot applications, covering built‑in annotations, custom constraints, server‑side checks, internationalization, validation groups, cross‑field rules, exception handling, testing, and the importance of complementary client‑side validation.

annotationsjavaspring-boot
0 likes · 17 min read
Master Spring Boot Validation: 10 Essential Tips & Custom Annotations
Java High-Performance Architecture
Java High-Performance Architecture
Dec 28, 2023 · Backend Development

How to Perform Fuzzy Search on Encrypted Fields in Java Applications

This article explains why traditional LIKE queries fail on encrypted sensitive fields, analyzes common scenarios, and presents four practical solutions—including tokenized ciphertext mapping—along with environment setup, Maven dependencies, and complete Spring Boot code to enable secure fuzzy searches on encrypted data.

databaseencryptionfuzzy-search
0 likes · 13 min read
How to Perform Fuzzy Search on Encrypted Fields in Java Applications
Architect
Architect
Dec 27, 2023 · Backend Development

Master MyBatis‑Plus in Spring Boot: From Quick Start to Advanced Features

This guide walks through integrating MyBatis‑Plus with Spring Boot, covering dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum handling, automatic field filling, multi‑data‑source support, and testing with concrete code examples and detailed explanations.

CRUDEnum MappingLogical Deletion
0 likes · 20 min read
Master MyBatis‑Plus in Spring Boot: From Quick Start to Advanced Features
Architecture Digest
Architecture Digest
Dec 26, 2023 · Backend Development

Introducing mybatis-plus-generator-ui: A Web UI Code Generator for MyBatis-Plus

This article introduces mybatis-plus-generator-ui, a highly customizable web‑based code generator built on MyBatis‑Plus that supports multiple databases, offers interactive UI for generating Entity, Mapper, Service, Controller and other layers, and provides detailed usage, configuration, and extension instructions for Java backend developers.

Code GeneratorMyBatis-Plusjava
0 likes · 14 min read
Introducing mybatis-plus-generator-ui: A Web UI Code Generator for MyBatis-Plus
Selected Java Interview Questions
Selected Java Interview Questions
Dec 26, 2023 · Backend Development

Introducing mybatis-plus-generator-ui: A Web UI Code Generator for MyBatis-Plus

This article presents mybatis-plus-generator-ui, a web‑based code generation framework that wraps MyBatis‑Plus, explains its features, shows how to integrate it via Maven and a Spring Boot entry point, demonstrates customization through templates and NameConverter, and provides guidance for building the UI frontend.

MyBatis-Plusjavaspring-boot
0 likes · 11 min read
Introducing mybatis-plus-generator-ui: A Web UI Code Generator for MyBatis-Plus
Java Backend Technology
Java Backend Technology
Dec 26, 2023 · Backend Development

Exploring Spring Boot 3.2: Java 21, Virtual Threads, and GraalVM Native Images

Spring Boot 3.2 now fully supports Java 21, Project Loom virtual threads, and GraalVM native images, and this guide walks through installing Java 21‑GraalVM, configuring virtual threads, building sample controllers, async and scheduled tasks, and creating a native executable to achieve faster startup and lower memory usage.

backend-developmentgraalvmjava-21
0 likes · 9 min read
Exploring Spring Boot 3.2: Java 21, Virtual Threads, and GraalVM Native Images