Tagged articles

Spring Boot

4358 articles · Page 34 of 44
Programmer DD
Programmer DD
Nov 7, 2021 · Backend Development

How to Build a Distributed WebSocket Cluster with Spring Cloud and Consistent Hashing

This article walks through the challenges of multi‑user WebSocket communication in a clustered environment and presents two practical solutions—session broadcasting and a consistent‑hashing based routing—using Spring Boot, Spring Cloud Gateway, Redis, Netty, and Ribbon to achieve scalable, reliable real‑time messaging.

GatewayRedisSpring Boot
0 likes · 19 min read
How to Build a Distributed WebSocket Cluster with Spring Cloud and Consistent Hashing
Programmer DD
Programmer DD
Nov 6, 2021 · Backend Development

Three Ways to Access Spring Beans from Static Methods

This article demonstrates three practical techniques for retrieving Spring-managed beans inside static methods—using @PostConstruct initialization, a static ApplicationContext from the main class, and a manual ApplicationContextAware component—complete with code examples and usage guidelines.

ApplicationContextPostConstructSpring Boot
0 likes · 6 min read
Three Ways to Access Spring Beans from Static Methods
Selected Java Interview Questions
Selected Java Interview Questions
Nov 5, 2021 · Backend Development

Implementing a Generic Appkey Whitelist Validation in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter Approaches

This article explains how to add a reusable appkey whitelist check to a Spring‑Boot web framework by comparing four implementation methods—traditional AOP, Spring Interceptor, custom ArgumentResolver, and Servlet Filter—detailing their code, configuration steps, extensions, and execution order.

AOPArgumentResolverInterceptor
0 likes · 10 min read
Implementing a Generic Appkey Whitelist Validation in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter Approaches
Code Ape Tech Column
Code Ape Tech Column
Nov 5, 2021 · Backend Development

Integrating JSR‑303 Bean Validation into Spring Boot: A Comprehensive Guide

This article explains how to seamlessly integrate JSR‑303 Bean Validation with Spring Boot, covering the underlying concepts, required dependencies, built‑in and Hibernate‑specific constraints, simple, group and nested validation techniques, result handling, the role of spring‑boot‑starter‑validation, and how to create custom validation annotations and validators.

Bean ValidationJSR-303Spring Boot
0 likes · 17 min read
Integrating JSR‑303 Bean Validation into Spring Boot: A Comprehensive Guide
Java Architect Essentials
Java Architect Essentials
Nov 3, 2021 · Backend Development

Three Ways to Access Spring Beans in Static Methods Using Spring Boot

This article explains three techniques for obtaining Spring beans inside static methods—using @PostConstruct initialization, a static ApplicationContext stored in the main class, and implementing ApplicationContextAware—complete with code examples and detailed guidelines for the @PostConstruct annotation.

ApplicationContextPostConstructSpring Boot
0 likes · 6 min read
Three Ways to Access Spring Beans in Static Methods Using Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 3, 2021 · Backend Development

Mastering Spring Web MVC Functional Routing with WebMvc.fn in Spring Boot

Explore Spring Web MVC's functional programming model (WebMvc.fn) in Spring Boot 2.4.12, covering immutable ServerRequest/ServerResponse, RouterFunction routing, handler functions, predicates, nested routes, filters, validation, and practical code examples for building clean, annotation‑free REST endpoints.

Functional RoutingSpring Bootbackend development
0 likes · 11 min read
Mastering Spring Web MVC Functional Routing with WebMvc.fn in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Nov 2, 2021 · Backend Development

Using JRebel for Local and Remote Hot Deployment in Spring Boot

This article explains how to install and configure JRebel for both local and remote hot deployment in Spring Boot projects, compares it with Spring DevTools, and provides step‑by‑step instructions, code snippets, and troubleshooting tips for multi‑module applications.

Hot DeploymentIDEAJRebel
0 likes · 11 min read
Using JRebel for Local and Remote Hot Deployment in Spring Boot
Top Architect
Top Architect
Nov 1, 2021 · Backend Development

Design and Implementation of a Points-Based Lottery System Using Spring Boot

This article explains how to design and implement a points‑based lottery (luck draw) system in Java with Spring Boot, covering database schema for prizes, probability limits, prize pools, the random draw algorithm, prize restrictions, and asynchronous prize distribution using a factory pattern.

AlgorithmAsyncLottery
0 likes · 10 min read
Design and Implementation of a Points-Based Lottery System Using Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 1, 2021 · Backend Development

Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters

This guide explains Spring MVC's request handling flow, detailing core components like DispatcherServlet, HandlerMapping, and HandlerAdapter, and demonstrates multiple controller definitions—including @RestController, HttpRequestHandler, Controller interface, and HttpServlet extensions—along with necessary configuration snippets.

ControllerSpring Bootbackend development
0 likes · 5 min read
Understanding Spring MVC Request Flow: Controllers, Handlers, and Adapters
21CTO
21CTO
Oct 31, 2021 · Backend Development

How to Build a Distributed WebSocket Cluster with Spring Cloud, Eureka, and Consistent Hashing

This article explores practical approaches for enabling multi‑user communication in a distributed WebSocket cluster, covering session handling challenges, architecture design, technology stack choices, Netty versus Spring WebSocket implementations, consistent‑hashing load balancing, and detailed code examples for Spring Cloud Gateway and Ribbon integration.

Spring BootSpring Cloudconsistent hashing
0 likes · 19 min read
How to Build a Distributed WebSocket Cluster with Spring Cloud, Eureka, and Consistent Hashing
Top Architect
Top Architect
Oct 31, 2021 · Backend Development

Quick Start Guide: Integrating GraphQL into a Spring Boot Application

This tutorial shows how to quickly set up GraphQL in a Spring Boot web project by creating the project, adding Maven dependencies, defining schema files, implementing providers and resolvers, exposing a GraphQL endpoint, and testing query and mutation operations.

APIGraphQLSpring Boot
0 likes · 8 min read
Quick Start Guide: Integrating GraphQL into a Spring Boot Application
Top Architect
Top Architect
Oct 29, 2021 · Backend Development

Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware

This article explains three practical ways to retrieve Spring beans from static methods—using @PostConstruct annotation, a static ApplicationContext defined in the main class, and a manually injected ApplicationContext via ApplicationContextAware—complete with code examples and usage notes.

ApplicationContextBean RetrievalPostConstruct
0 likes · 5 min read
Three Methods to Obtain Spring Beans in Static Context: @PostConstruct, ApplicationContext, and ApplicationContextAware
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 29, 2021 · Backend Development

How Spring MVC Resolves Controller Parameters and Builds Custom Argument Resolvers

This article explains the internal workflow of Spring MVC’s HandlerMethodArgumentResolver for processing controller method parameters, walks through the core source code steps, and demonstrates how to implement and register a custom argument resolver using a bespoke annotation.

HandlerMethodArgumentResolverSpring Bootcustom argument resolver
0 likes · 7 min read
How Spring MVC Resolves Controller Parameters and Builds Custom Argument Resolvers
政采云技术
政采云技术
Oct 28, 2021 · Backend Development

HikariCP Overview (Part 1): Initialization, Core Components, Monitoring and Configuration

This article provides a detailed analysis of HikariCP’s initialization, core components, startup flow, connection acquisition logic, monitoring metrics, and key configuration parameters, illustrating how Spring Boot 2.x leverages this high‑performance JDBC connection pool and offering guidance for tuning and extending it.

ConfigurationConnection PoolHikariCP
0 likes · 14 min read
HikariCP Overview (Part 1): Initialization, Core Components, Monitoring and Configuration
Top Architect
Top Architect
Oct 28, 2021 · Backend Development

Using Hibernate Validator and Commons‑Lang3 for Parameter Validation in Spring Boot Controllers

This article explains how to place parameter validation in the appropriate layer, introduces Hibernate Validator with Maven dependencies and common annotations, provides a validated entity example, shows controller usage with @Valid/@Validated, and demonstrates useful Commons‑Lang3 utilities for string and collection checks.

Commons Lang3Hibernate ValidatorSpring Boot
0 likes · 5 min read
Using Hibernate Validator and Commons‑Lang3 for Parameter Validation in Spring Boot Controllers
Architect's Guide
Architect's Guide
Oct 28, 2021 · Backend Development

Core Features, Advantages, and Common Annotations of Spring Boot

This article provides an English overview of Spring Boot’s core functionalities—including standalone JAR execution, embedded servlet containers, starter POM simplification, auto‑configuration, production‑ready monitoring, and code‑free XML—while also discussing its pros and cons, key features, CLI tool, Maven parent, and commonly used annotations.

MavenSpring Bootannotations
0 likes · 5 min read
Core Features, Advantages, and Common Annotations of Spring Boot
Top Architect
Top Architect
Oct 26, 2021 · Backend Development

Implementing QR‑Code Login with WebSocket in Spring Boot

This article explains how to design a QR‑code login flow using a MySQL table, defines the involved roles, outlines required REST and WebSocket interfaces, and provides complete Spring Boot backend and JavaScript frontend code examples for generating QR codes, validating tokens, and notifying the client in real time.

Spring BootWeb Developmentbackend development
0 likes · 12 min read
Implementing QR‑Code Login with WebSocket in Spring Boot
macrozheng
macrozheng
Oct 25, 2021 · Backend Development

Master Object Mapping in Java with MapStruct: From Basics to Advanced Techniques

This article introduces MapStruct, a powerful Java annotation‑based object‑mapping library, compares it with BeanUtils, shows how to integrate it into a Spring Boot project, and provides step‑by‑step examples for basic, collection, nested, composite, and advanced mappings including dependency injection, constants, custom processing, and exception handling.

DTOObject MappingSpring Boot
0 likes · 24 min read
Master Object Mapping in Java with MapStruct: From Basics to Advanced Techniques
Programmer DD
Programmer DD
Oct 25, 2021 · Information Security

How to Implement Single Sign‑On with Spring Security and JWT in 30 Minutes

This tutorial walks through the concepts of Single Sign‑On (SSO) and JSON Web Tokens (JWT), then provides a complete Spring Security integration with JWT—including project structure, RSA key handling, utility classes, custom authentication and verification filters, and step‑by‑step testing using Postman.

JWTSSOSpring Boot
0 likes · 19 min read
How to Implement Single Sign‑On with Spring Security and JWT in 30 Minutes
Programmer DD
Programmer DD
Oct 24, 2021 · Backend Development

Build Alipay Payments with Spring Boot: A Complete Guide

This article introduces a Spring Boot‑based open‑source project that demonstrates how to integrate Alipay's various payment modes—including QR code, PC, WAP, and app payments—by detailing the required tech stack, configuration files, deployment steps, and key code snippets.

AlipayPayment IntegrationSpring Boot
0 likes · 6 min read
Build Alipay Payments with Spring Boot: A Complete Guide
Java Architecture Diary
Java Architecture Diary
Oct 23, 2021 · Backend Development

What’s New in Spring Boot 2.5.6? Key Bug Fixes and Dependency Updates

Spring Boot 2.5.6, released on October 21, introduces 43 bug fixes, documentation improvements, and numerous dependency upgrades—including Dropwizard Metrics, Ehcache3, HttpCore5, MySQL, and Spring Framework 5.3.12—addressing issues such as R2DBC‑JDBC conflicts, JMX endpoint availability, and memory pressure from caching.

Bug FixesSpring Bootbackend development
0 likes · 5 min read
What’s New in Spring Boot 2.5.6? Key Bug Fixes and Dependency Updates
macrozheng
macrozheng
Oct 22, 2021 · Backend Development

Mastering API Rate Limiting in Spring Boot: Algorithms, Guava & AOP

This tutorial explains why API rate limiting is essential for high‑traffic Spring Boot services, introduces counter, leaky‑bucket, and token‑bucket algorithms, shows how to use Guava's RateLimiter, and demonstrates a clean custom‑annotation AOP solution to decouple rate‑limiting logic from business code.

AOPGuavaSpring Boot
0 likes · 13 min read
Mastering API Rate Limiting in Spring Boot: Algorithms, Guava & AOP
Programmer DD
Programmer DD
Oct 22, 2021 · Backend Development

Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors

This tutorial explains the concept of idempotency in web APIs and demonstrates a complete Spring Boot solution using Redis, custom annotations, token validation, and interceptor configuration to ensure that each request modifies the database only once, even under repeated calls.

AnnotationIdempotencyInterceptor
0 likes · 12 min read
Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors
Top Architect
Top Architect
Oct 21, 2021 · Backend Development

Implementing QR Code Login with WebSocket in Spring Boot

This article explains how to build a QR‑code based login system using Spring Boot, WebSocket, and JavaScript, covering database design, role analysis, API definitions, step‑by‑step implementation, and complete code examples for both backend and frontend components.

QR loginSpring Bootjava
0 likes · 13 min read
Implementing QR Code Login with WebSocket in Spring Boot
Java Architect Essentials
Java Architect Essentials
Oct 19, 2021 · Backend Development

Encrypting Spring Boot Configuration Files with Jasypt

This article explains how to secure sensitive Spring Boot configuration properties such as database credentials by integrating the Jasypt library, configuring encryption keys, generating encrypted values through test code, and applying the encrypted strings in application.yml, including deployment‑time salt handling for enhanced security.

Backend SecurityConfiguration EncryptionDevOps
0 likes · 5 min read
Encrypting Spring Boot Configuration Files with Jasypt
Java Architect Essentials
Java Architect Essentials
Oct 19, 2021 · Backend Development

Enhancing Spring Boot with SOFABoot: Health Checks, Class Isolation, Log Isolation, Middleware Integration, and Modular Development

This article introduces SOFABoot, an Ant Financial open‑source framework built on Spring Boot that adds readiness health checks, class and log isolation, unified middleware integration, and modular development capabilities, and provides the project’s source repository for developers.

Class IsolationMicroservicesMiddleware
0 likes · 4 min read
Enhancing Spring Boot with SOFABoot: Health Checks, Class Isolation, Log Isolation, Middleware Integration, and Modular Development
Java Tech Enthusiast
Java Tech Enthusiast
Oct 19, 2021 · Backend Development

Distributed Transaction Solutions and Implementing Delayed Queues with RabbitMQ in Spring Boot

To handle distributed transactions in micro‑service systems, the article compares 2PC, TCC, maximum‑effort notification and reliable messaging, then shows how Spring Boot can use RabbitMQ delayed queues—leveraging dead‑letter exchanges, TTL and routing—to achieve eventual consistency for order‑payment workflows.

2PCDelayed QueueSpring Boot
0 likes · 11 min read
Distributed Transaction Solutions and Implementing Delayed Queues with RabbitMQ in Spring Boot
Programmer DD
Programmer DD
Oct 19, 2021 · Backend Development

Mastering Read/Write Splitting in Spring Boot with Custom Routing DataSource

This article explains how to implement read/write separation in a Spring Boot application by configuring multiple data sources, creating a custom AbstractRoutingDataSource, using AOP to switch between master and slave databases, and demonstrates the setup with Maven, MyBatis, and JUnit tests.

AOPMulti-DataSourceMyBatis
0 likes · 16 min read
Mastering Read/Write Splitting in Spring Boot with Custom Routing DataSource
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 19, 2021 · Backend Development

How Spring Boot Handles Errors: From /error to Custom Responses

This article explains how Spring Boot 2.4.11 processes exceptions, routes them to the default /error endpoint, and uses BasicErrorController along with ContentNegotiatingViewResolver and StaticView to generate HTML or JSON error responses based on the Accept header, including code examples and configuration details.

ExceptionSpring Bootbackend
0 likes · 10 min read
How Spring Boot Handles Errors: From /error to Custom Responses
macrozheng
macrozheng
Oct 19, 2021 · Backend Development

Simplify Excel Import/Export in Spring Boot with EasyPoi – A Complete Guide

This article introduces EasyPoi, a Spring Boot-friendly library that uses annotations to streamline Excel import and export, covering simple and complex export scenarios, import handling, custom data processing, and provides full code examples for quick integration.

EasyPOIExcelImport Export
0 likes · 14 min read
Simplify Excel Import/Export in Spring Boot with EasyPoi – A Complete Guide
Java Architect Essentials
Java Architect Essentials
Oct 18, 2021 · Backend Development

Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async

This article explains the difference between synchronous and asynchronous method calls in Java, demonstrates a simple Spring Boot Task class with three time‑consuming methods, shows how to convert them to asynchronous execution using @Async and @EnableAsync, and illustrates how to coordinate completion with Future objects.

AsynchronousSpring Bootasync
0 likes · 7 min read
Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async
Programmer DD
Programmer DD
Oct 18, 2021 · Backend Development

Master Excel Processing in Java with Alibaba EasyExcel: Setup, Read, and Export

This guide walks through integrating Alibaba's EasyExcel library into a Java project, covering Maven dependencies, environment setup, reading Excel files with less or more than 1000 rows (including custom sheet and row offsets), and exporting data using simple lists, model mapping, and multiple sheets, all illustrated with complete code examples.

Data ExportEasyExcelExcel
0 likes · 17 min read
Master Excel Processing in Java with Alibaba EasyExcel: Setup, Read, and Export
Java Architecture Diary
Java Architecture Diary
Oct 18, 2021 · Backend Development

Unlock Low-Latency MQTT with mica-mqtt: A High-Performance Java Component

This guide introduces mica-mqtt, a simple, low‑latency, high‑performance MQTT open‑source component built on t‑io, outlines its extensive feature set, provides Spring Boot and plain Java integration steps, showcases configuration examples, and explains monitoring and clustering capabilities for IoT back‑end development.

Spring Bootjavalow latency
0 likes · 8 min read
Unlock Low-Latency MQTT with mica-mqtt: A High-Performance Java Component
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 18, 2021 · Backend Development

Why Spring WebFlux? A Deep Dive into Reactive, Non‑Blocking Backend Development

This article explains the motivations behind Spring WebFlux, introduces reactive programming concepts, compares annotated controllers with functional endpoints, discusses when to choose WebFlux over Spring MVC, and provides complete code examples for building a reactive CRUD service with Spring Boot.

Reactive ProgrammingSpring BootSpring WebFlux
0 likes · 17 min read
Why Spring WebFlux? A Deep Dive into Reactive, Non‑Blocking Backend Development
Programmer DD
Programmer DD
Oct 17, 2021 · Backend Development

Build a Mini Tmall E‑Commerce Site with Spring Boot – Quick Tutorial

This article introduces a lightweight Spring Boot‑based mini Tmall e‑commerce project, detailing its core features—from user registration and product browsing to cart, order processing, and admin management—along with the technology stack, UI screenshots, and a four‑step deployment guide for developers.

MySQLSpring Boote-commerce
0 likes · 4 min read
Build a Mini Tmall E‑Commerce Site with Spring Boot – Quick Tutorial
Top Architect
Top Architect
Oct 16, 2021 · Backend Development

Integrating Dataway with Spring Boot for Zero‑Code API Configuration

This tutorial explains how to embed Dataway—a DataQL‑based API configuration UI—into a Spring Boot application, covering Maven dependencies, property settings, database schema creation, datasource integration, Hasor module registration, enabling annotations, and step‑by‑step usage to publish and test APIs without writing traditional controller code.

API ConfigurationDataQLDataway
0 likes · 14 min read
Integrating Dataway with Spring Boot for Zero‑Code API Configuration
Java Architect Essentials
Java Architect Essentials
Oct 15, 2021 · Backend Development

Master Spring MVC & Bean Annotations: A Complete Guide

This article provides a comprehensive overview of Spring MVC request‑mapping annotations, core Spring Bean annotations, dependency‑injection and scope configurations, container setup annotations, and essential Spring Boot annotations, each illustrated with clear code examples and usage tips.

Java BackendSpringSpring Boot
0 likes · 16 min read
Master Spring MVC & Bean Annotations: A Complete Guide
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 15, 2021 · Backend Development

Comprehensive Guide to MyBatis Batch Insert: Three Methods, Performance Comparison, and Analysis

This article introduces three MyBatis batch insertion techniques—looped single inserts, MyBatis‑Plus batch inserts, and native SQL batch inserts—provides complete implementation code, performance test results for inserting 100,000 records, analyzes the causes of differences, and offers practical solutions to common pitfalls such as MySQL packet size limits.

Batch InsertMyBatisMySQL
0 likes · 13 min read
Comprehensive Guide to MyBatis Batch Insert: Three Methods, Performance Comparison, and Analysis
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 14, 2021 · Backend Development

Mastering Spring Boot Request Mapping: Content Types, Params, Headers, and Dynamic Registration

This guide explains how to use Spring Boot's @GetMapping attributes to restrict requests by content type, parameters, and headers, compares PathPattern and AntPathMatcher URI patterns, and demonstrates dynamic registration of request handlers through programmatic mapping configuration.

REST APIRequest MappingSpring Boot
0 likes · 6 min read
Mastering Spring Boot Request Mapping: Content Types, Params, Headers, and Dynamic Registration
Top Architect
Top Architect
Oct 13, 2021 · Backend Development

Using ThreadPoolTaskExecutor for Asynchronous Operations in Spring Boot

This article explains how to configure and use Spring Boot's ThreadPoolTaskExecutor for asynchronous service methods, shows the required @Configuration and @EnableAsync annotations, demonstrates custom thread‑pool monitoring by extending ThreadPoolTaskExecutor, and provides complete code snippets and log examples.

AsyncSpring BootThread Pool
0 likes · 12 min read
Using ThreadPoolTaskExecutor for Asynchronous Operations in Spring Boot
Programmer DD
Programmer DD
Oct 13, 2021 · Backend Development

How to Integrate Alipay’s New Transfer API with Spring Boot (v4.10.97)

This guide walks you through upgrading to Alipay’s new transfer interface alipay.fund.trans.uni.transfer, updating the SDK to version 4.10.97, configuring certificates, adding Maven dependencies, creating configuration beans, and implementing utility classes for secure fund transfers in a Spring Boot application.

AlipayPayment IntegrationSpring Boot
0 likes · 11 min read
How to Integrate Alipay’s New Transfer API with Spring Boot (v4.10.97)
Top Architect
Top Architect
Oct 12, 2021 · Information Security

Implementing JWT Authentication with Spring Boot, Angular, and JJWT

This article explains what JSON Web Tokens are, their structure and security best practices, and demonstrates a complete JWT‑based authentication example using Spring Boot on the backend, the JJWT library, and an Angular front‑end, including Maven configuration, Java filter, controllers, and client‑side code.

AngularJWTSpring Boot
0 likes · 13 min read
Implementing JWT Authentication with Spring Boot, Angular, and JJWT
Programmer DD
Programmer DD
Oct 12, 2021 · Backend Development

Build a Full‑Stack Chatroom with Spring Boot, Vue and WebSocket

This guide walks through setting up a full‑stack web chatroom demo built with Spring Boot, Vue, WebSocket, MySQL, Redis, RabbitMQ and FastDFS, covering the technology stack, core features, database schema, configuration files, and step‑by‑step deployment instructions.

FastDFSMySQLSpring Boot
0 likes · 31 min read
Build a Full‑Stack Chatroom with Spring Boot, Vue and WebSocket
Programmer DD
Programmer DD
Oct 12, 2021 · Backend Development

How to Add Dynamic Scheduled Tasks in Spring Boot Without Quartz

This article explains how to implement dynamic creation, deletion, start, and stop of scheduled tasks in a Spring Boot application by customizing the ScheduledTaskRegistrar and using a lightweight thread‑pool scheduler, providing full code examples and a complete runnable solution.

CronDynamic SchedulingSpring Boot
0 likes · 12 min read
How to Add Dynamic Scheduled Tasks in Spring Boot Without Quartz
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2021 · Backend Development

How Spring Boot Registers Custom Error Pages with Tomcat

This article explains how Spring Boot registers custom error pages with its embedded Tomcat container, covering default HTML/JSON error responses, the underlying auto‑configuration classes, BeanPostProcessor registration, and the BasicErrorController that serves the default /error endpoint.

Spring BootTomcatbackend development
0 likes · 11 min read
How Spring Boot Registers Custom Error Pages with Tomcat
Top Architect
Top Architect
Oct 10, 2021 · Backend Development

Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async and CompletableFuture

This article explains the difference between synchronous and asynchronous method calls in Spring Boot, demonstrates how to convert simple task methods to asynchronous ones using @Async, shows how to coordinate multiple async tasks with CompletableFuture, and provides complete code examples and test results.

CompletableFutureSpring Bootasync
0 likes · 9 min read
Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async and CompletableFuture
Programmer DD
Programmer DD
Oct 10, 2021 · Backend Development

Why Scaffolding Frameworks Like Spring Boot Are Essential for Modern Backend Development

Microservice architecture introduces complexity, but using scaffolding tools such as Spring Boot and Spring Data lets developers focus on business logic by providing reusable components, reducing duplication, and simplifying data access, while avoiding the pitfalls of building custom persistence layers from scratch.

MicroservicesSpring BootSpring Data
0 likes · 12 min read
Why Scaffolding Frameworks Like Spring Boot Are Essential for Modern Backend Development
Java Architect Essentials
Java Architect Essentials
Oct 9, 2021 · Backend Development

Integrating Dataway with Spring Boot: A Step‑by‑Step Tutorial

This article explains how to integrate the Dataway interface‑configuration tool into a Spring Boot project by adding Hasor dependencies, configuring Dataway properties, creating required database tables, setting up the data source, wiring Hasor modules, enabling Hasor in the application, and finally creating and testing a Dataway API without writing any business code.

API ConfigurationDataQLDataway
0 likes · 15 min read
Integrating Dataway with Spring Boot: A Step‑by‑Step Tutorial
Selected Java Interview Questions
Selected Java Interview Questions
Oct 5, 2021 · Backend Development

Overview of Spring Web MVC and Spring Bean Annotations

This article provides a comprehensive guide to Spring Web MVC and Spring Bean annotations, detailing usage, attributes, and examples of @RequestMapping, @GetMapping, @PostMapping, @ControllerAdvice, @Autowired, @Scope, and various Spring Boot conditional annotations, helping developers understand and apply them effectively.

SpringSpring BootWeb MVC
0 likes · 16 min read
Overview of Spring Web MVC and Spring Bean Annotations
Code Ape Tech Column
Code Ape Tech Column
Oct 4, 2021 · Backend Development

Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async

This article explains the difference between synchronous and asynchronous method calls in Java, demonstrates how to implement synchronous tasks, then shows how to convert them to asynchronous execution using Spring Boot's @Async annotation, @EnableAsync configuration, and Future-based callbacks to measure total execution time.

FutureSpring Bootasync
0 likes · 8 min read
Understanding Synchronous and Asynchronous Calls in Spring Boot with @Async
Top Architect
Top Architect
Oct 2, 2021 · Databases

ShardingSphere-JDBC Tutorial: MySQL Master‑Slave Replication, Redo/Binlog, and Sharding Configuration

This article provides a comprehensive guide on using ShardingSphere-JDBC for read‑write splitting, configuring MySQL master‑slave replication with Docker, explaining redo log and binlog mechanisms, demonstrating two‑phase commit, and showing how to implement database sharding and distributed primary keys in a Spring Boot application.

JDBCMySQLShardingSphere
0 likes · 22 min read
ShardingSphere-JDBC Tutorial: MySQL Master‑Slave Replication, Redo/Binlog, and Sharding Configuration
Top Architect
Top Architect
Sep 30, 2021 · Backend Development

Spring Boot Actuator: Quick Start, Endpoint Overview, and Security Integration

This article introduces Spring Boot Actuator, explains how to create a demo project with Maven or Gradle, details the most important built‑in endpoints such as /health, /metrics, /loggers, /info, /beans, /heapdump, /threaddump and /shutdown, and shows how to secure them with Spring Security, providing configuration snippets and code examples.

ActuatorEndpointsMonitoring
0 likes · 14 min read
Spring Boot Actuator: Quick Start, Endpoint Overview, and Security Integration
Java Architect Essentials
Java Architect Essentials
Sep 29, 2021 · Databases

Differences Among Jedis, Redisson, Lettuce and Using RedisTemplate & RedissonClient in Spring Boot

This article compares the Java Redis clients Jedis, Redisson, and Lettuce, explains their distinct features and thread‑safety, and provides detailed Spring Boot configurations and code examples for RedisTemplate, RedissonClient, and cache annotations to implement caching, distributed locks, and atomic operations.

RedisSpring Bootjava
0 likes · 13 min read
Differences Among Jedis, Redisson, Lettuce and Using RedisTemplate & RedissonClient in Spring Boot
Senior Brother's Insights
Senior Brother's Insights
Sep 29, 2021 · Information Security

Secure Spring Boot Configurations with Jasypt: A Step‑by‑Step Guide

This tutorial shows how to protect sensitive configuration values such as database passwords in a Spring Boot application by integrating the Jasypt library, configuring encryption keys, generating encrypted strings via unit tests or Maven plugin, and securely passing the secret at runtime.

Configuration EncryptionJasyptSpring Boot
0 likes · 9 min read
Secure Spring Boot Configurations with Jasypt: A Step‑by‑Step Guide
Top Architect
Top Architect
Sep 29, 2021 · Backend Development

Implementing Distributed Locks with Redis and Redisson in Spring Boot

This article explains the challenges of high‑concurrency inventory deduction, demonstrates why simple synchronized locks fail in distributed environments, and walks through multiple solutions—from basic SETNX locks to Redisson’s advanced distributed lock implementation—highlighting pitfalls, expiration handling, and trade‑offs with alternatives like Zookeeper.

CAP theoremRedisRedisson
0 likes · 15 min read
Implementing Distributed Locks with Redis and Redisson in Spring Boot
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 27, 2021 · Backend Development

Implementing Batch Insert with MyBatis-Plus in Java

This article explains how to improve database insertion performance in Java by replacing per‑iteration inserts with MyBatis‑Plus’s saveBatch method, detailing dependency setup, schema creation, entity, controller, service, and mapper code for efficient bulk operations.

Batch InsertSQLSpring Boot
0 likes · 8 min read
Implementing Batch Insert with MyBatis-Plus in Java
Top Architect
Top Architect
Sep 27, 2021 · Backend Development

Best Practices for Designing, Securing and Scaling Java Backend APIs

This article explains how to design robust Java backend APIs, covering interface definition, request/response formats, error handling, token generation, digital signing, interceptor chains, rate limiting, HTTPS migration, and strategies for high concurrency and high availability such as load balancing, clustering and caching.

API DesignHigh AvailabilitySpring Boot
0 likes · 16 min read
Best Practices for Designing, Securing and Scaling Java Backend APIs
Top Architect
Top Architect
Sep 26, 2021 · Information Security

Implementing JWT Authentication with Spring Boot and Angular

This article explains what JSON Web Tokens (JWT) are, describes their structure and security considerations, and provides a complete Spring Boot and Angular example—including Maven configuration, Java filter and controller code, Angular services and UI—to demonstrate how to generate, validate, and use JWTs for authentication and role‑based access control.

AngularJWTSpring Boot
0 likes · 14 min read
Implementing JWT Authentication with Spring Boot and Angular
Java Architect Essentials
Java Architect Essentials
Sep 25, 2021 · Backend Development

Implementing Read‑Write Splitting in Spring Boot with AbstractRoutingDataSource and AOP

This article explains how to achieve read‑write splitting in a Spring Boot application by configuring multiple data sources, creating a custom AbstractRoutingDataSource, managing routing keys with ThreadLocal, and using AOP to automatically switch between master and slave databases for different CRUD operations.

AOPDataSource RoutingMyBatis
0 likes · 12 min read
Implementing Read‑Write Splitting in Spring Boot with AbstractRoutingDataSource and AOP
Java Backend Technology
Java Backend Technology
Sep 25, 2021 · Backend Development

Top Open‑Source E‑Commerce Projects for Full‑Stack Developers

This article curates a collection of popular open‑source e‑commerce projects on GitHub and Gitee, covering front‑end, back‑end, micro‑service, mobile, and cloud‑native architectures, with detailed technology stacks, core features, and direct repository links for developers to explore and adopt.

Spring Boote-commerceopen-source
0 likes · 10 min read
Top Open‑Source E‑Commerce Projects for Full‑Stack Developers
Programmer DD
Programmer DD
Sep 24, 2021 · Backend Development

What Happens When a Spring Boot ThreadPool Overflows? Learn Rejection Strategies

This article demonstrates how a Spring Boot thread pool behaves when its core size, max size, and queue capacity are exceeded by multiple asynchronous tasks, explains the resulting TaskRejectedException, and shows how to configure built‑in or custom rejection policies to handle such scenarios.

AsyncRejectionPolicySpring Boot
0 likes · 9 min read
What Happens When a Spring Boot ThreadPool Overflows? Learn Rejection Strategies
Java Architecture Diary
Java Architecture Diary
Sep 24, 2021 · Backend Development

What’s New in Spring Boot 2.5.5? Key Fixes, Docs Updates, and Dependency Upgrades

Spring Boot 2.5.5, released on September 23, introduces 41 bug fixes, numerous documentation improvements, and a comprehensive set of dependency upgrades—including updates to Ehcache3, Kotlin, Netty, and Spring Framework—providing developers with enhanced stability, performance, and compatibility across the ecosystem.

Bug FixesSpring Bootbackend development
0 likes · 5 min read
What’s New in Spring Boot 2.5.5? Key Fixes, Docs Updates, and Dependency Upgrades
Top Architect
Top Architect
Sep 23, 2021 · Backend Development

Using Alibaba EasyExcel for Reading and Writing Excel Files in Java

This article provides a comprehensive guide on integrating Alibaba's EasyExcel library in Java projects, covering environment setup, reading Excel files with less or more than 1000 rows, exporting data with and without model mapping, handling multiple sheets, and includes full code examples for each operation.

EasyExcelExcelFile I/O
0 likes · 14 min read
Using Alibaba EasyExcel for Reading and Writing Excel Files in Java
Top Architect
Top Architect
Sep 22, 2021 · Backend Development

Using ThreadPoolTaskExecutor and @Async for Asynchronous Processing in Spring Boot

This article explains how to configure a Spring Boot ThreadPoolTaskExecutor, enable asynchronous execution with @Async, create a custom visible executor to log pool statistics, and demonstrates the complete workflow with code examples and runtime logs for improving database insert performance.

Spring BootThreadPoolTaskExecutorasync
0 likes · 12 min read
Using ThreadPoolTaskExecutor and @Async for Asynchronous Processing in Spring Boot
Tech Musings
Tech Musings
Sep 21, 2021 · Backend Development

Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls

This article shares a developer’s experience converting a Java Spring Boot microservice to Kotlin, covering why Kotlin is attractive, required Maven plugins and dependencies, code‑migration quirks such as open classes and @Jvm annotations, testing hurdles, and the final decision to revert to Java.

KotlinMavenSpring Boot
0 likes · 11 min read
Migrating a Java Spring Microservice to Kotlin: Practical Steps and Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Sep 21, 2021 · Backend Development

Overview of Spring Web MVC, Bean, and Boot Annotations

This article provides a comprehensive guide to Spring MVC request‑mapping annotations, Spring Bean lifecycle and dependency‑injection annotations, as well as Spring Boot conditional and configuration annotations, illustrating each with code examples and usage notes for Java backend development.

SpringSpring Bootannotations
0 likes · 13 min read
Overview of Spring Web MVC, Bean, and Boot Annotations
The Dominant Programmer
The Dominant Programmer
Sep 20, 2021 · Backend Development

Convert DOC to HTML with Spring Boot and OpenOffice: A Step-by-Step Guide

This guide walks through installing OpenOffice on a Windows server, launching its headless service, adding jodconverter dependencies to a Spring Boot project, configuring conversion settings, writing a controller to transform DOC files into HTML, and invoking the endpoint from a Vue front‑end, with troubleshooting tips.

Headless ServiceMavenSpring Boot
0 likes · 7 min read
Convert DOC to HTML with Spring Boot and OpenOffice: A Step-by-Step Guide
Programmer DD
Programmer DD
Sep 18, 2021 · Backend Development

Isolating Spring @Async Thread Pools to Prevent Task Interference

This tutorial explains why the default shared thread pool for @Async tasks can cause unrelated services to block each other, and shows step‑by‑step how to configure separate thread pools for different async tasks in Spring Boot, complete with code examples and a unit test.

IsolationSpring BootThread Pool
0 likes · 10 min read
Isolating Spring @Async Thread Pools to Prevent Task Interference
Programmer DD
Programmer DD
Sep 17, 2021 · Backend Development

Avoid Out‑of‑Memory Errors: Properly Configure Spring Boot Async Thread Pool

This article explains why using @Async in Spring Boot can cause memory overflow when many requests trigger parallel tasks, examines the default thread‑pool settings that lead to unbounded queues, and provides step‑by‑step configuration of a safe thread pool to prevent out‑of‑memory failures.

AsyncMemory ManagementSpring Boot
0 likes · 11 min read
Avoid Out‑of‑Memory Errors: Properly Configure Spring Boot Async Thread Pool
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 16, 2021 · Frontend Development

Boost Your Captcha Labeling Speed with a Vue‑Spring Annotation Tool

This article walks through building a web‑based, high‑efficiency image captcha labeling system using a Vue admin template for the frontend and Spring Boot for the backend, detailing functional modules, technology stack, deployment steps, and demo results to streamline data annotation before AI model training.

Spring BootVuedata labeling
0 likes · 6 min read
Boost Your Captcha Labeling Speed with a Vue‑Spring Annotation Tool
Sohu Tech Products
Sohu Tech Products
Sep 15, 2021 · Backend Development

SpringOne Conference Summary: Spring Framework 6 and Spring Boot 3 Roadmap, JDK 17 Baseline, and Spring Native Updates

The SpringOne conference announced that Spring Framework 6 and Spring Boot 3 will reach production‑ready GA status in Q4 2022, outlined their milestone and release‑candidate schedule, required JDK 17 and Jakarta EE 9 compatibility, detailed Spring Native's native‑image support, and previewed upcoming Spring Boot 2.6 and 2.7 releases.

JDK 17Jakarta EESpring Boot
0 likes · 4 min read
SpringOne Conference Summary: Spring Framework 6 and Spring Boot 3 Roadmap, JDK 17 Baseline, and Spring Native Updates
Top Architect
Top Architect
Sep 14, 2021 · Backend Development

Implementing Delayed Message Delivery with RabbitMQ and Spring Boot

This article explains how to implement delayed message delivery in RabbitMQ using the official delayed‑queue plugin and Spring Boot, compares traditional approaches such as Redis expiration and database polling, and provides complete configuration and code examples for producers and consumers.

Delayed QueueMessage QueueSpring Boot
0 likes · 8 min read
Implementing Delayed Message Delivery with RabbitMQ and Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Sep 14, 2021 · Backend Development

Large File Upload with Chunking, Resume, and RandomAccessFile in Java

This article explains how to handle multi‑gigabyte video uploads by splitting files into chunks, using MD5 for identification, implementing resumable and instant uploads with Spring Boot and Redis, and leveraging Java's RandomAccessFile and memory‑mapped I/O for efficient merging.

ChunkingRandomAccessFileRedis
0 likes · 15 min read
Large File Upload with Chunking, Resume, and RandomAccessFile in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 14, 2021 · Backend Development

How to Efficiently Batch Insert Data with Spring Boot and Elasticsearch

This guide demonstrates how to set up Spring Boot 2.3.12 with Elasticsearch 7.8, configure separate JPA and Elasticsearch repositories, and implement two batch insertion methods—using ElasticsearchRestTemplate and repository saveAll—while measuring performance, showing comparable execution times for inserting 10,000 records.

Batch InsertElasticsearchSpring Boot
0 likes · 4 min read
How to Efficiently Batch Insert Data with Spring Boot and Elasticsearch
Programmer DD
Programmer DD
Sep 14, 2021 · Backend Development

Boost Spring Boot Performance: Mastering Synchronous vs Asynchronous Calls

This article explains the difference between synchronous and asynchronous method calls in Spring Boot, shows how to convert blocking tasks into @Async methods, demonstrates unit‑test setups with CompletableFuture for proper coordination, and provides complete code examples to reduce overall execution time.

AsyncSpring Bootconcurrency
0 likes · 10 min read
Boost Spring Boot Performance: Mastering Synchronous vs Asynchronous Calls