Tagged articles
3838 articles
Page 25 of 39
Alibaba Cloud Native
Alibaba Cloud Native
Aug 20, 2022 · Cloud Native

Deploy a Spring Boot App on Alibaba Cloud Function Compute in Minutes

This step‑by‑step guide shows how to enable Alibaba Cloud Function Compute, create a service and Java 17 function, configure a custom domain, export and edit the generated Spring Boot project, and adjust the listening port, enabling rapid serverless deployment for beginners.

Alibaba CloudCloud NativeFunction Compute
0 likes · 7 min read
Deploy a Spring Boot App on Alibaba Cloud Function Compute in Minutes
Top Architect
Top Architect
Aug 19, 2022 · Backend Development

Introduction to Spring WebFlux: Reactive Web Development with Spring

This article introduces Spring WebFlux, explains the concept of reactive programming, compares it with Spring WebMVC, describes its concurrency model, and provides complete code examples for building a reactive Spring Boot application using Mono, Flux, functional routing, and WebClient.

backend-developmentjavareactive-programming
0 likes · 9 min read
Introduction to Spring WebFlux: Reactive Web Development with Spring
macrozheng
macrozheng
Aug 18, 2022 · Backend Development

Simplify MyBatis Join Queries with MyBatis-Plus-Join (MPJ) – A Hands‑On Guide

This tutorial demonstrates how to use the MyBatis-Plus-Join (MPJ) library to perform left and right join queries in Spring Boot without writing XML SQL, covering dependency setup, entity and mapper modifications, query construction with MPJLambdaWrapper and MPJQueryWrapper, pagination support, and practical tips.

Join QueryMPJbackend-development
0 likes · 10 min read
Simplify MyBatis Join Queries with MyBatis-Plus-Join (MPJ) – A Hands‑On Guide
Selected Java Interview Questions
Selected Java Interview Questions
Aug 15, 2022 · Backend Development

Guide to Setting Up MySQL Master‑Slave Replication with MyBatisPlus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting

This tutorial walks through the complete process of configuring MySQL master‑slave replication, preparing Docker containers, configuring MyBatisPlus and ShardingSphereJDBC for read‑write splitting, building a Spring Boot project with the necessary dependencies, generating code, and testing the setup with sample controller endpoints.

DockerShardingSpheremaster-slave replication
0 likes · 15 min read
Guide to Setting Up MySQL Master‑Slave Replication with MyBatisPlus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting
Java High-Performance Architecture
Java High-Performance Architecture
Aug 14, 2022 · Backend Development

Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers

This article explains how to structure Spring Boot controller requests, apply elegant parameter validation, wrap responses with a consistent ResultVo format, handle validation and business exceptions uniformly using @RestControllerAdvice, and selectively disable wrapping for specific endpoints, providing a complete backend development guide.

ControllerException HandlingUnified response
0 likes · 21 min read
Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers
Alibaba Cloud Native
Alibaba Cloud Native
Aug 13, 2022 · Cloud Computing

Deploy Spring Boot and Express on Alibaba Cloud Serverless in 60 Minutes

This guide walks beginners through the concepts, advantages, and practical steps of using Alibaba Cloud Function Compute to deploy popular web frameworks like Spring Boot and Express, create a custom Web IDE, and configure domains, while highlighting serverless architecture benefits and cost considerations.

Alibaba CloudCloud NativeExpress
0 likes · 20 min read
Deploy Spring Boot and Express on Alibaba Cloud Serverless in 60 Minutes
Cognitive Technology Team
Cognitive Technology Team
Aug 12, 2022 · Backend Development

Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration

When generating large IDs using Snowflake-like algorithms, Java's 64‑bit long values exceed JavaScript's safe integer range, causing display errors; the article explains how to resolve this by serializing Long values as strings in Spring Boot using Jackson's ToStringSerializer, both via configuration and annotations.

ID SerializationJacksonJavaScript
0 likes · 2 min read
Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration
Java Backend Technology
Java Backend Technology
Aug 10, 2022 · Backend Development

Master MyBatis-Plus with Spring Boot: Complete Guide to CRUD, Pagination, and Multi‑DataSource

This tutorial walks through integrating MyBatis-Plus into a Spring Boot project, covering dependency setup, configuration, entity annotations, CRUD service and mapper usage, pagination, logical deletion, enum handling, automatic field filling, and multi‑data‑source management, complete with code examples and testing.

CRUDMulti-DataSourceenum
0 likes · 16 min read
Master MyBatis-Plus with Spring Boot: Complete Guide to CRUD, Pagination, and Multi‑DataSource
Java Architect Essentials
Java Architect Essentials
Aug 9, 2022 · Backend Development

Master MyBatis-Plus in Spring Boot: Quick Start, Configuration, and Advanced Features

This guide walks through integrating MyBatis-Plus with Spring Boot, covering environment setup, Maven dependencies, configuration of data sources, entity annotations, CRUD services, pagination, logical deletion, enum handling, automatic field filling, multi‑data‑source strategies, and testing with full code examples.

BackendORMTutorial
0 likes · 20 min read
Master MyBatis-Plus in Spring Boot: Quick Start, Configuration, and Advanced Features
Selected Java Interview Questions
Selected Java Interview Questions
Aug 9, 2022 · Backend Development

Understanding and Implementing Idempotency in Backend APIs with Spring Boot and Redis

This article explains the concept of idempotency, why it is needed for HTTP interfaces, the impact on system design, and presents several practical backend solutions—including database unique keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—accompanied by complete Spring Boot code examples using Redis for token management.

REST APITokenbackend-development
0 likes · 20 min read
Understanding and Implementing Idempotency in Backend APIs with Spring Boot and Redis
Top Architect
Top Architect
Aug 9, 2022 · Backend Development

Building a Spring Boot Lottery System with Redis and MyBatis‑Plus

This article demonstrates how to create a simple lottery application using Spring Boot, MyBatis‑Plus, and Redis, covering project setup, database schema, dependency configuration, Redis integration, event‑driven data initialization, lottery draw logic, stock management, and asynchronous record handling.

Lotteryjavamybatis-plus
0 likes · 23 min read
Building a Spring Boot Lottery System with Redis and MyBatis‑Plus
Top Architect
Top Architect
Aug 9, 2022 · Backend Development

Implementing a JWT-Based Authentication Center with Spring Boot and Java

This article provides a comprehensive guide to building a JWT authentication service in Java, covering JWT fundamentals, Spring Boot configuration, entity and DAO definitions, service interfaces, token generation and parsing, RSA key handling, controller endpoints, testing procedures, and a comparison with traditional session-based authentication.

AuthenticationJWTMicroservices
0 likes · 20 min read
Implementing a JWT-Based Authentication Center with Spring Boot and Java
Senior Brother's Insights
Senior Brother's Insights
Aug 5, 2022 · Backend Development

Mastering Quartz Scheduler in Spring Boot: From Basics to Advanced Integration

This article provides a comprehensive guide to integrating the Quartz job‑scheduling library with Spring Boot, covering core concepts, Maven setup, job and trigger definitions, concurrency control, dynamic task creation via REST, and initialization strategies, all illustrated with complete Java code examples and diagrams.

JobQuartzScheduler
0 likes · 22 min read
Mastering Quartz Scheduler in Spring Boot: From Basics to Advanced Integration
Top Architect
Top Architect
Aug 5, 2022 · Backend Development

Comprehensive Guide to Using MyBatis-Plus with Spring Boot

This article provides a detailed tutorial on integrating MyBatis-Plus into a Spring Boot project, covering dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum handling, automatic field filling, and multi‑datasource support, with complete code examples.

CRUDMulti-DataSourceMyBatis-Plus
0 likes · 17 min read
Comprehensive Guide to Using MyBatis-Plus with Spring Boot
Programmer DD
Programmer DD
Aug 2, 2022 · Backend Development

9 Proven Ways to Read Files from the resources Folder in Spring Boot

This guide details nine practical techniques for accessing files in a Java project's resources folder, covering classloader paths, URL decoding, getFile vs getPath, InputStream retrieval, ClassPathResource usage, absolute paths, and environment variable methods, with complete code examples for each approach.

File I/OResourcesbackend-development
0 likes · 10 min read
9 Proven Ways to Read Files from the resources Folder in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 1, 2022 · Backend Development

Mastering Spring Boot Static Resources and Content Negotiation

This article explains how Spring Boot serves static resources from default locations, how to customize static path patterns and resource locations, handle Webjars, configure content negotiation with parameters and custom media types, and integrate template engines such as Thymeleaf, FreeMarker, and Mustache.

Content negotiationStatic Resourcesspring-boot
0 likes · 8 min read
Mastering Spring Boot Static Resources and Content Negotiation
Java Backend Technology
Java Backend Technology
Jul 31, 2022 · Backend Development

Mastering Single Sign-On (SSO) with CAS: From Session Basics to Full Demo

This article explains why unified authentication is essential for product suites, reviews traditional session mechanisms and their limitations in clustered environments, explores session‑sharing strategies, introduces CAS‑based SSO workflows, compares CAS with OAuth2, and provides a complete Spring Boot demo with code snippets and configuration details.

AuthenticationCASSSO
0 likes · 17 min read
Mastering Single Sign-On (SSO) with CAS: From Session Basics to Full Demo
Java High-Performance Architecture
Java High-Performance Architecture
Jul 29, 2022 · Backend Development

Master MyBatis-Plus in Spring Boot: Setup, Config, and Advanced Usage

A comprehensive guide walks you through integrating MyBatis-Plus with Spring Boot, detailing dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum mapping, automatic field filling, multi‑datasource handling, and testing, all illustrated with runnable code examples.

CRUDMulti-DataSourceORM
0 likes · 19 min read
Master MyBatis-Plus in Spring Boot: Setup, Config, and Advanced Usage
Top Architect
Top Architect
Jul 29, 2022 · Backend Development

Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis

This article explains the concept of idempotency in computing and HTTP, why it is essential for APIs, the impact on system design, which RESTful methods are idempotent, and presents four practical implementation strategies—including database primary keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—accompanied by complete Spring Boot code examples and testing procedures.

APIIdempotencyToken
0 likes · 22 min read
Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis
Architecture Digest
Architecture Digest
Jul 29, 2022 · Databases

Guide to Setting Up MySQL Master‑Slave Replication with MyBatis‑Plus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting

This tutorial explains how to configure MySQL master‑slave replication using Docker, set up read‑write splitting with ShardingSphereJDBC, integrate MyBatis‑Plus, and build a Spring Boot application that demonstrates write operations on the master and read operations on the slave.

Database ReplicationMySQLShardingSphere
0 likes · 16 min read
Guide to Setting Up MySQL Master‑Slave Replication with MyBatis‑Plus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting
Architect
Architect
Jul 28, 2022 · Information Security

Implementing Data Masking in MySQL and Java Using MyBatis‑Mate Sensitive Jackson

This article demonstrates how to mask sensitive data such as phone numbers, ID cards, and emails in MySQL and Java applications by combining SQL string functions with the MyBatis‑Mate Sensitive Jackson plugin, providing complete configuration, custom strategies, and runnable Spring Boot examples.

data maskingjavamybatis
0 likes · 9 min read
Implementing Data Masking in MySQL and Java Using MyBatis‑Mate Sensitive Jackson
Su San Talks Tech
Su San Talks Tech
Jul 28, 2022 · Backend Development

Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async

This article introduces asynchronous programming concepts in Java, explaining how multithreading, Future, FutureTask, CompletableFuture, and Spring's @Async annotation can transform synchronous workflows into high‑throughput, low‑latency solutions, with code examples and practical guidance for implementing each technique.

CompletableFutureThreadPoolasynchronous programming
0 likes · 17 min read
Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async
Java Architecture Diary
Java Architecture Diary
Jul 26, 2022 · Backend Development

How to Integrate and Use mica-mqtt Java Client in Spring Boot

This guide introduces the open‑source mica‑mqtt library built on t‑io, explains how to add the Spring Boot starter dependency, configure client options, implement connection listeners, customize settings, perform subscriptions and publishing, and also covers shared subscription modes, jfinal integration, and usage in plain Java projects.

javamica-mqttspring-boot
0 likes · 10 min read
How to Integrate and Use mica-mqtt Java Client in Spring Boot
Top Architect
Top Architect
Jul 25, 2022 · Backend Development

Using @Scheduled in Spring Boot for Task Scheduling: Configuration, Parameters, and Multi‑threading

This article explains how to create and configure Spring Boot scheduled tasks with @Scheduled, covering property‑based settings, cron expressions, fixed‑rate and fixed‑delay options, the required @EnableScheduling annotation, and how to switch from the default single‑thread executor to a multi‑threaded pool for concurrent execution.

Scheduled Tasksconcurrencycron
0 likes · 9 min read
Using @Scheduled in Spring Boot for Task Scheduling: Configuration, Parameters, and Multi‑threading
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 25, 2022 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12

This guide explains how Spring Boot 2.4.12 automatically configures Spring MVC components such as view resolvers, converters, and message handlers, and shows how to customize them via WebMvcConfigurer, WebMvcRegistrations, HttpMessageConverters, and @JsonComponent, including code examples for full control over the Web MVC setup.

HttpMessageConvertersSpring MVCWebMvcConfigurer
0 likes · 8 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12
Selected Java Interview Questions
Selected Java Interview Questions
Jul 24, 2022 · Backend Development

Spring Boot Multi‑Environment Configuration and JVM Parameter Tuning Guide

This article demonstrates how to configure Spring Boot for multiple environments, retrieve custom parameters, package and run the application, modify startup settings via system variables or command‑line arguments, and explains the priority and detailed JVM options for optimizing a Spring Boot service.

JVMMulti-Environmentconfiguration
0 likes · 10 min read
Spring Boot Multi‑Environment Configuration and JVM Parameter Tuning Guide
Selected Java Interview Questions
Selected Java Interview Questions
Jul 22, 2022 · Backend Development

WeChat Open Platform QR Code Login Integration with Spring Boot

This article explains how to implement WeChat QR code login using OAuth2.0 in a Spring Boot backend, detailing the authorization flow, required configuration, code examples for obtaining access tokens, user authentication, Spring AOP login verification, and exception handling to securely integrate WeChat login into a Java application.

OAuth2QR loginWeChat
0 likes · 11 min read
WeChat Open Platform QR Code Login Integration with Spring Boot
Java Backend Technology
Java Backend Technology
Jul 22, 2022 · Backend Development

Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP

This article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, and inappropriate parameters—and demonstrates how a unified ResultBean, strict controller conventions, and AOP logging can dramatically improve code readability, maintainability, and error management in Spring Boot projects.

ResultBeanaopapi-design
0 likes · 10 min read
Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP
Java Architect Essentials
Java Architect Essentials
Jul 20, 2022 · Information Security

Spring Security Based System Permission Management Tutorial

This article provides a comprehensive step‑by‑step guide on building a permission management system with Spring Security, covering database design, entity classes, Maven configuration, security configuration, dynamic menu loading, front‑end rendering using Thymeleaf, and complete testing with sample code and screenshots.

AuthenticationAuthorizationpermission management
0 likes · 19 min read
Spring Security Based System Permission Management Tutorial
Sohu Tech Products
Sohu Tech Products
Jul 20, 2022 · Backend Development

Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors

This article details a step‑by‑step investigation of a Java Spring‑Boot service that suffered nightly response‑time alerts, revealing that misconfigured Logback file paths caused cross‑volume log rotation, thread blocking, and ultimately a production outage, and shows how gray‑deployment and environment fixes resolved the issue.

KubernetesPerformance debuggingjava
0 likes · 13 min read
Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors
Architect's Guide
Architect's Guide
Jul 19, 2022 · Backend Development

Design and Implementation of a Custom Java RPC Framework

This article presents a comprehensive overview of a hand‑crafted RPC framework built with Spring Boot, Netty, and Zookeeper, covering its core concepts, architecture, custom message protocol, load‑balancing strategies, serialization choices, starter design, deployment steps, and testing procedures.

Distributed SystemsNettyRPC
0 likes · 15 min read
Design and Implementation of a Custom Java RPC Framework
Programmer DD
Programmer DD
Jul 18, 2022 · Backend Development

Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration

This article explains the advantages of Caffeine Cache's W‑TinyLFU algorithm over traditional FIFO, LRU, and LFU policies, details its eviction and reference‑type strategies, and provides step‑by‑step guidance for integrating Caffeine into Spring Boot applications with code examples and configuration tips.

Cache EvictionCaffeine CacheW‑TinyLFU
0 likes · 27 min read
Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration
Selected Java Interview Questions
Selected Java Interview Questions
Jul 17, 2022 · Backend Development

Unified Global Response and Exception Handling in Spring Boot

This article explains how to implement a unified response format and centralized exception handling in Spring Boot applications using @RestControllerAdvice, @ControllerAdvice, ResponseBodyAdvice, and custom response entities, providing code examples and best‑practice guidelines for robust backend APIs.

Exception HandlingGlobal ResponseRestControllerAdvice
0 likes · 13 min read
Unified Global Response and Exception Handling in Spring Boot
Architecture Digest
Architecture Digest
Jul 17, 2022 · Information Security

Step-by-Step Guide to Setting Up CAS Single Sign-On (SSO) with Java Backend

This tutorial explains what SSO and CAS are, outlines the required development environment, walks through downloading, building, and deploying the CAS Server, shows how to configure the server and client (including disabling HTTPS for testing), and demonstrates successful cross‑application authentication with code examples.

AuthenticationCASSSO
0 likes · 7 min read
Step-by-Step Guide to Setting Up CAS Single Sign-On (SSO) with Java Backend
Top Architect
Top Architect
Jul 13, 2022 · Backend Development

Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson

This article demonstrates how to implement a flexible data‑masking solution for sensitive fields in Spring Boot APIs by defining a custom annotation, creating a serializer, integrating it with Jackson via an AnnotationIntrospector, configuring the ObjectMapper, and applying the annotation to domain objects.

Custom AnnotationJacksonbackend-development
0 likes · 7 min read
Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson
Top Architect
Top Architect
Jul 11, 2022 · Information Security

Implementing CAS Single Sign‑On with a Custom Authentication Filter in Spring Boot

This article explains how to integrate the CAS (Central Authentication Service) single sign‑on solution into a Spring Boot backend by adding necessary dependencies, configuring a series of CAS filters, creating a custom MyAuthenticationFilter to handle AJAX requests, and demonstrating a Vue.js frontend that interacts with the authentication flow, complete with screenshots of the login, ticket validation, and logout processes.

AuthenticationCASSingle Sign-On
0 likes · 14 min read
Implementing CAS Single Sign‑On with a Custom Authentication Filter in Spring Boot
Top Architect
Top Architect
Jul 10, 2022 · Backend Development

Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration

This article explains Spring Boot's caching mechanism based on the JSR‑107 JCache specification, details core interfaces and implementations like Cache, AbstractValueAdaptingCache, and ConcurrentMapCache, demonstrates cache annotations such as @Cacheable, @CachePut and @CacheEvict, and shows how to replace the default in‑memory cache with Redis using Docker, StringRedisTemplate, and custom serialization.

CacheJCachejava
0 likes · 16 min read
Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration
Programmer DD
Programmer DD
Jul 6, 2022 · Backend Development

Why Does Spring Create Two UserManager Beans? Uncovering @Configuration vs @Component Behavior

This article explains why a Spring Boot application can end up with two UserManager beans—one from @Configuration + @Bean and another from @Component—by analyzing bean definition overriding, the role of ConfigurationClassPostProcessor, and the impact of the allowBeanDefinitionOverriding setting across Spring versions.

Bean OverridingComponentbackend-development
0 likes · 9 min read
Why Does Spring Create Two UserManager Beans? Uncovering @Configuration vs @Component Behavior
Top Architect
Top Architect
Jul 5, 2022 · Backend Development

Advanced Asynchronous Execution and Performance Tuning in Spring Boot

This article explains multiple Spring Boot asynchronous execution techniques—such as @Async, CompletableFuture, WebAsyncTask, DeferredResult, and AsyncHandlerInterceptor—provides complete Java code examples, and discusses performance optimizations like increasing Tomcat connection limits, switching to Undertow, using ComponentScan, and buffered I/O.

AsynchronousTomcatjava
0 likes · 9 min read
Advanced Asynchronous Execution and Performance Tuning in Spring Boot
Java Captain
Java Captain
Jul 5, 2022 · Frontend Development

Music Website Project – Full‑Stack Implementation with Vue 3 and Spring Boot

This article introduces a music website built with Vue 3 on the client side and Spring Boot + MyBatis on the server side, detailing its features, technology stack, development environment, and step‑by‑step instructions for downloading, configuring, and running the full‑stack application.

Full-StackMySQLTutorial
0 likes · 7 min read
Music Website Project – Full‑Stack Implementation with Vue 3 and Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Jul 5, 2022 · Backend Development

How Spring Boot Auto‑Configures Embedded Tomcat: A Deep Dive

This article explains Spring Boot’s auto‑configuration mechanism, focusing on how the spring‑boot‑autoconfigure module automatically sets up the embedded Tomcat server, detailing the relevant Maven dependencies, configuration classes, conditional annotations, and the lifecycle steps that create and start the Tomcat container.

Embedded TomcatWeb serverauto-configuration
0 likes · 15 min read
How Spring Boot Auto‑Configures Embedded Tomcat: A Deep Dive
Java High-Performance Architecture
Java High-Performance Architecture
Jul 3, 2022 · Backend Development

Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice

This article walks through implementing symmetric request and response encryption for Spring Boot APIs—covering requirements, data models, controller examples, debugging serialization issues, and using ControllerAdvice with Jackson to ensure encrypted payloads remain compatible across Android, iOS, and H5 clients.

AESControllerAdviceJackson
0 likes · 13 min read
Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice
Architect
Architect
Jul 2, 2022 · Backend Development

Asynchronous Execution Techniques in Spring Boot with CompletableFuture

The article explains multiple methods for implementing asynchronous execution in Spring Boot, covering @Async annotation, Java 8 CompletableFuture, Callable, WebAsyncTask, DeferredResult, Tomcat connection tuning, container switching to Undertow, and async interception, all illustrated with complete code examples.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Asynchronous Execution Techniques in Spring Boot with CompletableFuture
Top Architect
Top Architect
Jul 2, 2022 · Backend Development

Unified Parameter Handling, Validation, and Response Wrapping in Spring Boot Controllers

This article explains how to structure Spring Boot controller methods to receive parameters, implement unified status codes, validation with @Validated, and automatic response wrapping using ResultVo and @RestControllerAdvice, while also providing custom exception handling and optional exclusion annotations for flexible API design.

ControllerException HandlingREST API
0 likes · 19 min read
Unified Parameter Handling, Validation, and Response Wrapping in Spring Boot Controllers
macrozheng
macrozheng
Jul 1, 2022 · Backend Development

Mastering Spring Boot Controllers: Unified Validation, Response, and Exception Handling

This tutorial explains how to structure a Spring Boot controller layer, validate request parameters with @Validated, wrap responses in a standard ResultVo format, define unified status codes, and handle exceptions globally using @RestControllerAdvice and AOP, while also providing a way to skip wrapping for specific endpoints.

ControllerException HandlingREST API
0 likes · 18 min read
Mastering Spring Boot Controllers: Unified Validation, Response, and Exception Handling
Top Architect
Top Architect
Jun 30, 2022 · Backend Development

Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration

This article explains Spring Boot caching by introducing the JSR‑107 JCache specification, detailing core cache interfaces, showing the Spring Cache abstraction and its implementations, demonstrating cache annotations such as @Cacheable, @CachePut and @CacheEvict, and finally covering Redis setup and custom CacheManager usage.

CacheJCacheannotations
0 likes · 19 min read
Spring Boot Cache: JCache Specification, Cache Abstraction, Annotations, and Redis Integration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 29, 2022 · Backend Development

Mastering Spring @InitBinder: Custom Data Binding in Spring Boot 2.4

This article explains how @InitBinder methods in Spring MVC can initialize WebDataBinder, register custom PropertyEditors, Converters, and Formatters, and demonstrates a complete example with code snippets, while also detailing the internal request‑handling flow that performs parameter binding and type conversion.

Custom ConverterInitBinderWebDataBinder
0 likes · 8 min read
Mastering Spring @InitBinder: Custom Data Binding in Spring Boot 2.4
Top Architect
Top Architect
Jun 28, 2022 · Backend Development

Implementing QR Code Login with WebSocket in Spring Boot

This article demonstrates how to build a QR‑code based login system using Spring Boot, MySQL, and WebSocket, covering database design, role definition, API creation, front‑end image handling, and real‑time authentication notification through server‑push messages.

QR Code LoginReal-time authenticationjava
0 likes · 13 min read
Implementing QR Code Login with WebSocket in Spring Boot
Architecture Talk
Architecture Talk
Jun 28, 2022 · Cloud Native

Build a High‑Availability Microservices System on Kubernetes: A Step‑by‑Step Guide

This comprehensive guide walks you through designing a simple front‑end/back‑end microservice architecture, implementing it with Spring Boot, adding service discovery, monitoring, logging, tracing, and flow control, and finally deploying the entire system on a Kubernetes cluster with high availability and verification steps.

DockerKubernetesMicroservices
0 likes · 19 min read
Build a High‑Availability Microservices System on Kubernetes: A Step‑by‑Step Guide
Top Architect
Top Architect
Jun 27, 2022 · Backend Development

Microservices and Kubernetes: A Comprehensive Guide to Design, Implementation, and High‑Availability Deployment

This article presents a step‑by‑step tutorial on designing a simple front‑end/back‑end separated microservice system, implementing it with Spring Boot, deploying it on Kubernetes, and enhancing reliability with multi‑instance registration, monitoring, logging, tracing, and traffic control mechanisms.

Microservicesmonitoringspring-boot
0 likes · 18 min read
Microservices and Kubernetes: A Comprehensive Guide to Design, Implementation, and High‑Availability Deployment
Java Architect Essentials
Java Architect Essentials
Jun 26, 2022 · Backend Development

Unified Controller Layer Handling, Validation, and Exception Management in Spring Boot

This article explains how to structure a Spring Boot controller layer by separating URL, request method, request data, and response data, then introduces unified status‑code packaging with ResultVo, parameter validation using @Validated, and centralized exception handling with @RestControllerAdvice and AOP to produce consistent API responses.

ControllerException HandlingResultVo
0 likes · 18 min read
Unified Controller Layer Handling, Validation, and Exception Management in Spring Boot
IT Architects Alliance
IT Architects Alliance
Jun 26, 2022 · Cloud Native

How to Build a High‑Availability Microservices System on Kubernetes from Scratch

This guide walks through designing a simple Java Spring Boot microservice architecture, implementing the services, deploying them on a Kubernetes cluster with Eureka registration, adding Prometheus‑Grafana monitoring, configuring logging, tracing, and flow‑control, and validating high availability using real‑time dashboards and tools like Lens.

Cloud NativeKubernetesMicroservices
0 likes · 19 min read
How to Build a High‑Availability Microservices System on Kubernetes from Scratch
IT Architects Alliance
IT Architects Alliance
Jun 26, 2022 · Backend Development

Handling Dead Letter Queues in RabbitMQ with Spring Boot

This article explains what dead letters are in RabbitMQ, outlines their common causes, and provides a complete Spring Boot configuration and code examples for setting up dead‑letter exchanges, queues, TTL handling, message rejection, and consumer processing to reliably manage undeliverable messages.

Dead Letter QueueMessage RejectionMessage TTL
0 likes · 8 min read
Handling Dead Letter Queues in RabbitMQ with Spring Boot
Architect
Architect
Jun 25, 2022 · Cloud Native

Microservices + Kubernetes Beginner's Guide: Design, Implementation, and High‑Availability Deployment

This comprehensive guide walks readers through designing a simple front‑end/back‑end separated microservice system, implementing it with Java Spring Boot, deploying it on a Kubernetes cluster, and adding high‑availability, monitoring, logging, tracing, and traffic‑control mechanisms using tools such as Eureka, Prometheus, Grafana, Zipkin, Sentinel and Lens.

KubernetesMicroservicesjava
0 likes · 18 min read
Microservices + Kubernetes Beginner's Guide: Design, Implementation, and High‑Availability Deployment
IT Architects Alliance
IT Architects Alliance
Jun 23, 2022 · Cloud Native

Building a Spring Boot Microservice Demo with gRPC and Istio on Kubernetes

This article provides a step‑by‑step guide to creating a simple Spring Boot microservice that uses gRPC for communication, integrates with Istio as a service mesh, containerizes the applications with Docker, and deploys both server and client to a Kubernetes cluster with full configuration files and code examples.

DockerIstioKubernetes
0 likes · 16 min read
Building a Spring Boot Microservice Demo with gRPC and Istio on Kubernetes
Code Ape Tech Column
Code Ape Tech Column
Jun 23, 2022 · Backend Development

Encrypting Spring Boot Configuration Files with jasypt-spring-boot

This guide explains how to protect sensitive Spring Boot configuration data by integrating the open‑source jasypt‑spring‑boot plugin, covering dependency addition, secret key setup, encryption of plaintext values, and customizing encrypted property syntax for seamless decryption at runtime.

Backend SecurityConfiguration EncryptionJasypt
0 likes · 5 min read
Encrypting Spring Boot Configuration Files with jasypt-spring-boot
Architect
Architect
Jun 22, 2022 · Cloud Native

Building a Spring Boot gRPC Microservice Demo Deployed on Istio with Kubernetes

This article walks through creating a simple Spring Boot microservice using gRPC, packaging it with Maven, containerizing it with Docker, and deploying both the server and client to a Kubernetes cluster with Istio sidecar injection, demonstrating how Istio removes service‑mesh logic from business code and enables seamless multi‑language microservice communication.

IstioKubernetesService Mesh
0 likes · 21 min read
Building a Spring Boot gRPC Microservice Demo Deployed on Istio with Kubernetes
IT Architects Alliance
IT Architects Alliance
Jun 21, 2022 · Backend Development

Spring Boot Best Practices: A Comprehensive Guide for Backend Development

Since 2016, the author shares a collection of Spring Boot best practices—including using custom BOMs, leveraging auto‑configuration and starters, employing Spring Initializr, structuring code, designing services, managing databases, handling concurrency, externalizing configuration, global exception handling, logging, and thorough testing—to help developers build robust, maintainable microservices.

backend-developmentbest practicesconfiguration
0 likes · 12 min read
Spring Boot Best Practices: A Comprehensive Guide for Backend Development
Top Architect
Top Architect
Jun 21, 2022 · Backend Development

Spring Boot Best Practices: A Comprehensive Guide for Modern Java Backend Development

This article presents a detailed collection of Spring Boot best practices—from custom BOM dependency management and automatic configuration to project initialization, code structure, logging, testing, and configuration externalization—providing actionable guidance for building robust, maintainable micro‑services in Java.

backend-developmentbest practicesdependency management
0 likes · 13 min read
Spring Boot Best Practices: A Comprehensive Guide for Modern Java Backend Development
Top Architect
Top Architect
Jun 20, 2022 · Backend Development

Understanding How MyBatis‑Plus Maps Mapper Methods to SQL Statements and Executes Database Operations

This article provides a detailed walkthrough of MyBatis‑Plus internals, covering the auto‑configuration of SqlSessionFactory, parsing of mapper XML and annotations, registration of mapper interfaces via @MapperScan, creation of dynamic proxies, and the final assembly of executable SQL scripts for database interactions.

SQL Mappingjavamapper
0 likes · 15 min read
Understanding How MyBatis‑Plus Maps Mapper Methods to SQL Statements and Executes Database Operations
IT Architects Alliance
IT Architects Alliance
Jun 19, 2022 · Backend Development

Four Ways to Implement Generic Auth in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter

This article explains how to add a universal app‑key whitelist authentication feature to a Spring‑Boot web framework by using four different mechanisms—traditional AOP, HandlerInterceptor, custom HandlerMethodArgumentResolver, and a Servlet Filter—while comparing their execution order and extensibility.

ArgumentResolverAuthenticationInterceptor
0 likes · 10 min read
Four Ways to Implement Generic Auth in Spring Boot: AOP, Interceptor, ArgumentResolver, and Filter
ITPUB
ITPUB
Jun 17, 2022 · Backend Development

How to Design DDD Code Implementation Models: A Practical Guide with Real-World Example

This article explains how to translate complex Domain‑Driven Design concepts into concrete code structures, covering domain objects, application services, infrastructure, and context integration, and demonstrates the approach with a ticket‑service case study using Spring Boot and Spring Cloud Stream.

Backend ArchitectureDDDDomain-Driven Design
0 likes · 14 min read
How to Design DDD Code Implementation Models: A Practical Guide with Real-World Example
Top Architect
Top Architect
Jun 17, 2022 · Backend Development

Asynchronous Execution Techniques in Spring Boot: CompletableFuture, @Async, WebAsyncTask, DeferredResult and More

This article explains multiple ways to achieve asynchronous processing in Spring Boot, covering @Async annotation, CompletableFuture, WebAsyncTask, DeferredResult, Tomcat connection tuning, component scanning, Undertow migration, BufferedWriter usage, and AsyncHandlerInterceptor with detailed code examples.

AsyncCompletableFutureDeferredResult
0 likes · 11 min read
Asynchronous Execution Techniques in Spring Boot: CompletableFuture, @Async, WebAsyncTask, DeferredResult and More
Java High-Performance Architecture
Java High-Performance Architecture
Jun 16, 2022 · Backend Development

Mastering Custom Exception Handling in Spring Boot: A Complete Guide

This article walks through Spring Boot's default error mapping, shows how to return JSON for AJAX requests and HTML pages for browsers, and provides step‑by‑step code for creating custom exception classes, an error response entity, a Freemarker error template, and a global @ControllerAdvice handler with detailed configuration and testing examples.

Exception HandlingGlobal Exceptioncustom-exception
0 likes · 15 min read
Mastering Custom Exception Handling in Spring Boot: A Complete Guide
Selected Java Interview Questions
Selected Java Interview Questions
Jun 13, 2022 · Backend Development

Guide to Setting Up Spring Boot Admin for Monitoring Spring Boot Applications

This article provides a step‑by‑step tutorial on installing and configuring Spring Boot Admin, including Maven dependencies, server and client setup, YML properties, security, Nacos registration, email notifications, custom health indicators, and Micrometer metrics to monitor Spring Boot services.

MetricsMicroservicesbackend-development
0 likes · 14 min read
Guide to Setting Up Spring Boot Admin for Monitoring Spring Boot Applications
Java High-Performance Architecture
Java High-Performance Architecture
Jun 13, 2022 · Backend Development

Understanding Spring Boot Auto-Configuration: From Basics to Custom Starter

This article explains why Spring Boot was created, outlines its key features such as convention over configuration and automatic wiring, dives into the inner workings of annotations like @EnableAutoConfiguration, demonstrates how SpringFactoriesLoader implements SPI, and guides you through building a simple starter component step by step.

Starterauto-configurationdependency-injection
0 likes · 13 min read
Understanding Spring Boot Auto-Configuration: From Basics to Custom Starter
Code Ape Tech Column
Code Ape Tech Column
Jun 13, 2022 · Backend Development

Practical Guide to Using Ctrip's Apollo Distributed Configuration Center with Spring Boot

This article provides a comprehensive, step‑by‑step tutorial on Apollo—Ctrip's open‑source distributed configuration center—including its core concepts, features, four‑dimensional model, client design, high‑availability considerations, and detailed instructions for creating a Spring Boot demo project, configuring Maven and YAML files, writing controller and startup classes, setting JVM parameters, testing dynamic updates, exploring clusters and namespaces, and finally containerizing and deploying the application on Kubernetes.

Configuration ManagementMicroservicesjava
0 likes · 24 min read
Practical Guide to Using Ctrip's Apollo Distributed Configuration Center with Spring Boot
Java Backend Technology
Java Backend Technology
Jun 11, 2022 · Information Security

How to Mask Sensitive Data in MySQL and Java with MyBatis‑Mate

This article demonstrates practical techniques for data masking, covering MySQL string functions for phone and ID masking, a Java library for various sensitive fields, and a MyBatis‑Mate extension that applies custom and built‑in masking strategies through annotations and REST endpoints.

javamybatissensitive data
0 likes · 8 min read
How to Mask Sensitive Data in MySQL and Java with MyBatis‑Mate
Programmer DD
Programmer DD
Jun 9, 2022 · Backend Development

Mastering Spring Boot Multi‑DataSource Integration with MyBatis

This tutorial explains how to configure Spring Boot with a single DataSource, integrate MyBatis, and extend the setup to a dynamic multi‑DataSource using AbstractRoutingDataSource, custom annotations, and AOP, covering connection pool setup, property mapping, and transaction management.

Dynamic RoutingMulti-DataSourcejava
0 likes · 19 min read
Mastering Spring Boot Multi‑DataSource Integration with MyBatis
21CTO
21CTO
Jun 6, 2022 · Backend Development

How Meituan’s Leaf Service Generates High‑Performance Distributed IDs

This guide explains how the Leaf distributed ID service, built with Spring Boot, supports segment and Snowflake modes, details its configuration, deployment steps, code examples, and operational considerations for high‑throughput backend systems.

Leafdistributed-idsegment mode
0 likes · 6 min read
How Meituan’s Leaf Service Generates High‑Performance Distributed IDs
Programmer DD
Programmer DD
Jun 3, 2022 · Backend Development

Spring Security OAuth EOL: Migrate to Spring Security 5.7 & Authorization Server

Spring Security OAuth has reached end‑of‑life, with its documentation removed and code moved to a read‑only Spring attic repository; this guide explains how to detect deprecated dependencies, replace them with Spring Security 5.7’s OAuth2 Client, Resource Server, and the new Spring Authorization Server, ensuring a smooth migration to modern, supported authentication solutions.

BackendOAuth2java
0 likes · 7 min read
Spring Security OAuth EOL: Migrate to Spring Security 5.7 & Authorization Server
IT Architects Alliance
IT Architects Alliance
Jun 3, 2022 · Backend Development

Open‑Source Distributed File System Based on Spring Boot and Vue CLI – Features and Technical Overview

This article introduces an open‑source distributed file system built with Spring Boot and Vue CLI, detailing its MIT licensing, UI layout, file operations, multiple upload methods, online preview and editing capabilities, storage options, and the underlying backend and frontend technologies.

Distributed File SystemOpen-sourceVue.js
0 likes · 9 min read
Open‑Source Distributed File System Based on Spring Boot and Vue CLI – Features and Technical Overview
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2022 · Backend Development

Integrating CAS Single Sign-On with Spring Boot for Front‑Back End Separation

This article explains how to deploy a CAS server, configure the cas-client dependency, set up Spring Boot annotations and cookie handling, share sessions across multiple services, and resolve cross‑origin and authentication redirects for a Vue front‑end separated from legacy JSP back‑ends.

CASSingle Sign-Onfront‑back end separation
0 likes · 10 min read
Integrating CAS Single Sign-On with Spring Boot for Front‑Back End Separation