Tagged articles
3838 articles
Page 23 of 39
macrozheng
macrozheng
Feb 1, 2023 · Information Security

Secure Your Spring Boot APIs with JWT: A Step‑by‑Step Guide Using Spring Security

This article explains how to replace Shiro with Spring Security, integrate JWT for stateless authentication, configure the filter chain, set up the necessary Maven dependencies, write the security configuration, custom authentication and verification filters, and manage user details in a Spring Boot backend.

AuthenticationAuthorizationspring-boot
0 likes · 16 min read
Secure Your Spring Boot APIs with JWT: A Step‑by‑Step Guide Using Spring Security
Java High-Performance Architecture
Java High-Performance Architecture
Jan 29, 2023 · Information Security

Master Spring Security: From Quick Start to Advanced JWT Authentication and RBAC

This comprehensive guide walks you through Spring Security fundamentals, setting up a Spring Boot project, configuring authentication with JWT and Redis, implementing RBAC permission management, customizing error handling, enabling CORS, and addressing CSRF, providing complete code examples and detailed explanations for secure backend development.

AuthenticationAuthorizationJWT
0 likes · 45 min read
Master Spring Security: From Quick Start to Advanced JWT Authentication and RBAC
Selected Java Interview Questions
Selected Java Interview Questions
Jan 28, 2023 · Backend Development

Standardizing Controller Parameter Handling, Response Wrapping, Validation, and Exception Management in Spring Boot

This article explains how to structure Spring Boot controller layers by receiving request parameters, unifying status codes and response formats, applying @Validated for automatic input validation, using @RestControllerAdvice for centralized exception handling, and optionally disabling wrapping with a custom annotation, providing complete code examples for each step.

ControllerResponse wrapperjava
0 likes · 21 min read
Standardizing Controller Parameter Handling, Response Wrapping, Validation, and Exception Management in Spring Boot
Programmer DD
Programmer DD
Jan 28, 2023 · Backend Development

What’s New in Spring Cloud 2022? Major Bug Fixes and Key Changes

Spring Cloud 2022, built on Spring Framework 6.x and Spring Boot 3.x, requires Java 17 and introduces crucial bug fixes across modules like Gateway, Commons, and Kubernetes, along with new features such as a secure flag for service instances and optimized load‑balancing.

Bug Fixesbackend-developmentjava
0 likes · 3 min read
What’s New in Spring Cloud 2022? Major Bug Fixes and Key Changes
Su San Talks Tech
Su San Talks Tech
Jan 27, 2023 · Backend Development

Mastering Unified Responses and Exception Handling in Spring Boot Controllers

This article walks through building a robust Spring Boot controller layer by standardizing parameter binding, status codes, response wrapping, validation, and exception handling using annotations, enums, ResultVo, ResponseBodyAdvice, and custom exception advice to deliver consistent API responses.

BackendControllerException Handling
0 likes · 20 min read
Mastering Unified Responses and Exception Handling in Spring Boot Controllers
ITPUB
ITPUB
Jan 25, 2023 · Backend Development

Mastering Distributed Caching with Redis and Memcached in Spring Boot

This article explains the fundamentals, characteristics, and use‑cases of distributed caching, compares Memcached and Redis, and provides a step‑by‑step Spring Boot implementation with code samples, testing guidance, and solutions to common cache pitfalls such as hot keys, penetration, and avalanche.

Cache DesignDistributed CachePerformance
0 likes · 20 min read
Mastering Distributed Caching with Redis and Memcached in Spring Boot
macrozheng
macrozheng
Jan 17, 2023 · Cloud Native

Deploy the Mall E‑commerce Project on Rainbond: A Step‑by‑Step Guide

This guide walks you through deploying the Mall e‑commerce application on Rainbond, covering both quick deployment via the open‑source app store and a full manual setup of all required services, middleware, backend and frontend components, with configuration examples and troubleshooting tips.

Rainbondspring-boot
0 likes · 12 min read
Deploy the Mall E‑commerce Project on Rainbond: A Step‑by‑Step Guide
DeWu Technology
DeWu Technology
Jan 16, 2023 · Cloud Native

Nacos Service Registration and Discovery: Principles and Implementation

The article explains Nacos’s open‑source service registry and discovery mechanisms, detailing client auto‑configuration, registration and health‑check workflows, server‑side instance handling, asynchronous copy‑on‑write processing, heartbeat cleanup, and cluster synchronization, while comparing its AP/CP capabilities to Zookeeper and Eureka.

Distributed SystemsNacosjava
0 likes · 55 min read
Nacos Service Registration and Discovery: Principles and Implementation
Architecture Digest
Architecture Digest
Jan 14, 2023 · Backend Development

Design and Implementation of a Follow/Unfollow Microservice Using MySQL and Redis

This article details the requirements analysis, design approach, database schema, and step‑by‑step implementation of a follow/unfollow microservice using MySQL for persistence and Redis Sets for efficient set operations, including Maven dependencies, Spring Boot configuration, RedisTemplate setup, service, controller, and testing of common‑follow queries.

Follow ServiceMicroserviceMySQL
0 likes · 17 min read
Design and Implementation of a Follow/Unfollow Microservice Using MySQL and Redis
Java Architect Essentials
Java Architect Essentials
Jan 13, 2023 · Backend Development

How to Build a Scalable Follow Service with MySQL, Redis, and Spring Cloud

This article walks through the complete design and implementation of a friend‑follow microservice, covering requirement analysis, MySQL table schema, Redis set operations, Spring Boot dependencies, configuration, service and controller code, gateway routing, and end‑to‑end testing with concrete examples and performance insights.

Follow ServiceMySQLbackend-development
0 likes · 12 min read
How to Build a Scalable Follow Service with MySQL, Redis, and Spring Cloud
macrozheng
macrozheng
Jan 13, 2023 · Backend Development

Mastering Disruptor: Build a High‑Performance Java Message Queue in 8 Steps

This article introduces the Disruptor library, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategy, and provides a complete eight‑step Spring Boot example with code to create, publish, and consume high‑throughput messages in Java.

DisruptorMessage Queueconcurrency
0 likes · 12 min read
Mastering Disruptor: Build a High‑Performance Java Message Queue in 8 Steps
Java Architect Essentials
Java Architect Essentials
Jan 10, 2023 · Backend Development

MyBatis and MyBatis-Plus Batch Insert Techniques with Performance Comparison

This article presents five common batch‑insert approaches for MyBatis and MyBatis‑Plus—including a for‑loop, manual batch commit, collection‑based batch, saveBatch, and InsertBatchSomeColumn—provides complete code examples, configuration steps, and measured execution times to help Java backend developers choose the most efficient method.

Batch Insertmybatismybatis-plus
0 likes · 11 min read
MyBatis and MyBatis-Plus Batch Insert Techniques with Performance Comparison
macrozheng
macrozheng
Jan 7, 2023 · Backend Development

How to Set Up AJ-Report: A Spring Boot & Vue Visual Dashboard Tool

This guide introduces the open‑source AJ‑Report project, explains its Spring Boot and Vue technology stack, and provides step‑by‑step instructions for cloning the repository, configuring the backend and frontend environments, and creating interactive visual dashboards using drag‑and‑drop components.

AJ-ReportVuefull-stack tutorial
0 likes · 7 min read
How to Set Up AJ-Report: A Spring Boot & Vue Visual Dashboard Tool
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 6, 2023 · Backend Development

Master Spring Boot Task Execution: Configure Executors, Schedulers, and Async

Learn how Spring Boot automatically configures ThreadPoolTaskExecutor and ThreadPoolTaskScheduler, customize them via spring.task.execution and spring.task.scheduling properties, and use @EnableAsync, @Scheduled, and @Async annotations—including advanced options like cron expressions, time units, executor qualifiers, and exception handling—to efficiently manage asynchronous and scheduled tasks.

AsyncSchedulingjava
0 likes · 8 min read
Master Spring Boot Task Execution: Configure Executors, Schedulers, and Async
Code Ape Tech Column
Code Ape Tech Column
Jan 6, 2023 · Backend Development

Custom Spring Boot Packaging: Using spring-boot-maven-plugin and maven-assembly-plugin to Separate Dependencies

This article explains how to create a Spring Boot package that keeps dependencies external by configuring the spring-boot-maven-plugin and maven-assembly-plugin, using a ZIP layout and PropertiesLauncher, so the application can be started with a custom loader.path that points to a libs directory.

Fat Jarbackend-developmentjava
0 likes · 6 min read
Custom Spring Boot Packaging: Using spring-boot-maven-plugin and maven-assembly-plugin to Separate Dependencies
Code Ape Tech Column
Code Ape Tech Column
Jan 4, 2023 · Backend Development

Elegant Methods for Passing Data Between Parent and Child Threads in Spring Boot

This article explains four techniques—including manual setting, TaskDecorator, InheritableThreadLocal, and TransmittableThreadLocal—to reliably transfer user context and other thread‑local data from parent to child threads in Spring Boot asynchronous execution, with complete code samples and best‑practice recommendations.

AsynchronousBackendTaskDecorator
0 likes · 13 min read
Elegant Methods for Passing Data Between Parent and Child Threads in Spring Boot
Top Architect
Top Architect
Jan 2, 2023 · Backend Development

Implementing Large File Upload and Download with Chunking, Resume, and Multi‑Threaded Support Using WebUploader and Spring Boot

This article demonstrates how to build a robust large‑file upload and download solution in Java by integrating Baidu's WebUploader on the front end with Spring Boot back‑end APIs that handle chunked uploads, breakpoint resume, file merging, and multi‑threaded range‑based downloads.

Range DownloadWebUploaderchunked upload
0 likes · 17 min read
Implementing Large File Upload and Download with Chunking, Resume, and Multi‑Threaded Support Using WebUploader and Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Jan 1, 2023 · Backend Development

Using Spring Boot 3 Declarative HTTP Client with HttpServiceProxyFactory

This article explains how Spring Boot 3 introduces a native declarative HTTP client via HttpServiceProxyFactory, showing required dependencies, supported annotations, interface definition, and complete code examples for building, configuring, and invoking remote HTTP services without third‑party libraries.

Declarative HTTP clientHttpServiceProxyFactorybackend-development
0 likes · 7 min read
Using Spring Boot 3 Declarative HTTP Client with HttpServiceProxyFactory
Top Architect
Top Architect
Dec 31, 2022 · Cloud Native

Comprehensive Guide to Spring Cloud Sleuth and Zipkin for Distributed Tracing

This article provides a detailed tutorial on using Spring Cloud Sleuth with Zipkin to monitor and troubleshoot distributed micro‑service calls, covering concepts, configuration, Maven dependencies, YAML settings, controller examples, RabbitMQ integration, logback adjustments, and alternative tracing solutions.

RabbitMQSpring Cloud Sleuthlogging
0 likes · 19 min read
Comprehensive Guide to Spring Cloud Sleuth and Zipkin for Distributed Tracing
Top Architect
Top Architect
Dec 30, 2022 · Backend Development

Implementing a High‑Concurrency Flash Sale System Using Redis List Queues in Spring Boot

This article explains why common Redis‑based flash‑sale demos that rely on WATCH transactions, distributed locks, or Lua scripts are unreliable, and presents a simple, lock‑free solution using Redis list operations (LPUSH/RPOP) with Spring Boot's StringRedisTemplate, including full Java code and usage examples.

concurrencyjavaspring-boot
0 likes · 9 min read
Implementing a High‑Concurrency Flash Sale System Using Redis List Queues in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Dec 30, 2022 · 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 leveraging Nacos as a configuration center, covering dependency setup, YAML configuration, Java implementation with @RefreshScope, runtime parameter updates, and a simple controller for testing.

Dynamic ConfigurationNacosbackend-development
0 likes · 9 min read
Implementing a Dynamic Thread Pool with Nacos in Spring Boot
Java Architect Essentials
Java Architect Essentials
Dec 28, 2022 · Backend Development

Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide

This article provides a comprehensive guide to implementing asynchronous processing in Spring Boot, covering annotation‑based @Async, CompletableFuture patterns, WebAsyncTask, DeferredResult, custom thread pools, Tomcat tuning, component scanning, and switching to Undertow, with complete code examples and configuration details.

AsynchronousCompletableFutureDeferredResult
0 likes · 12 min read
Mastering Asynchronous Execution in Spring Boot: An In‑Depth Guide
Java Architect Essentials
Java Architect Essentials
Dec 27, 2022 · Backend Development

Building a Scalable Follow Service with MySQL, Redis Sets, and Spring Boot

This article walks through the design and implementation of a friend‑follow microservice using MySQL for persistence, Redis Sets for fast set operations, and Spring Boot, covering requirement analysis, data modeling, dependency setup, configuration, service logic, and testing with concrete code examples and performance insights.

BackendFollow ServiceMySQL
0 likes · 19 min read
Building a Scalable Follow Service with MySQL, Redis Sets, and Spring Boot
Java Architecture Diary
Java Architecture Diary
Dec 27, 2022 · Backend Development

How to Build a Custom Oracle Plugin for Nacos 2.2 Using SPI

This guide explains how to create a custom Oracle datasource plugin for Nacos 2.2 by adding Maven dependencies, importing the Oracle SQL script, configuring connection properties, and setting the datasource platform, enabling Nacos to use Oracle instead of the default MySQL or Derby.

Datasource PluginNacosOracle
0 likes · 3 min read
How to Build a Custom Oracle Plugin for Nacos 2.2 Using SPI
Java High-Performance Architecture
Java High-Performance Architecture
Dec 26, 2022 · Backend Development

Mastering the Decorator Pattern in Spring Boot: A Multi‑Layered Example

This article explains the Decorator (Wrapper) pattern, shows how to apply it in a Spring Boot project with concrete surfing‑service examples, demonstrates single‑ and multi‑layer decorators, and provides complete Java code and controller snippets to illustrate dynamic behavior extension without modifying existing classes.

Decorator PatternDesign Patternsbackend-development
0 likes · 7 min read
Mastering the Decorator Pattern in Spring Boot: A Multi‑Layered Example
Huolala Tech
Huolala Tech
Dec 22, 2022 · Mobile Development

How Huolala Built a Scalable Cloud Real‑Device Testing Platform for Mobile Apps

Huolala's data team created a cloud‑based real‑device platform that centralizes phone resources, enables remote screen casting and control via adb, minicap, and minitouch, and uses Spring Boot and Netty‑WebSocket to deliver scalable, cost‑effective mobile testing across multiple scenarios.

ADBNettycloud device platform
0 likes · 13 min read
How Huolala Built a Scalable Cloud Real‑Device Testing Platform for Mobile Apps
Top Architect
Top Architect
Dec 21, 2022 · Backend Development

Integrating Micrometer, Prometheus, and Grafana into a Spring Boot Application

This tutorial demonstrates how to add Micrometer to a Spring Boot project, configure JVM and custom metrics, expose them via Actuator, and then integrate Prometheus and Grafana to collect and visualize the monitoring data, providing a complete end‑to‑end observability solution.

GrafanaMicrometerPrometheus
0 likes · 10 min read
Integrating Micrometer, Prometheus, and Grafana into a Spring Boot Application
Top Architect
Top Architect
Dec 21, 2022 · Backend Development

Refactoring the Spring Boot Controller Layer for Clean Architecture and Unified Responses

This article explains why the Controller layer should stay thin, identifies common pitfalls such as tangled validation and inconsistent responses, and demonstrates how to introduce a unified result wrapper, global response advice, robust parameter validation, custom validators, and centralized exception handling to produce concise, maintainable backend code.

ControllerException Handlingjava
0 likes · 17 min read
Refactoring the Spring Boot Controller Layer for Clean Architecture and Unified Responses
Top Architect
Top Architect
Dec 20, 2022 · Backend Development

Applying the Decorator Pattern in a Spring Boot Project: A Practical Guide

This article demonstrates how to use the Decorator (Wrapper) pattern in a Spring Boot application to extend existing services with additional responsibilities, showing both single‑layer and multi‑layer decorations through concrete code examples and controller endpoints.

Decorator PatternDesign Patternsbackend-development
0 likes · 8 min read
Applying the Decorator Pattern in a Spring Boot Project: A Practical Guide
Top Architect
Top Architect
Dec 18, 2022 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using kill -15, Actuator, and Custom Shutdown Configurations

This article explains why using the forceful kill -9 command can cause data loss, demonstrates how to gracefully stop Spring Boot services with kill -15, the Actuator shutdown endpoint, and custom Tomcat shutdown configurations, and shows how to run cleanup tasks such as data backup during shutdown.

ActuatorGraceful Shutdownjava
0 likes · 20 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 and Using kill -15, Actuator, and Custom Shutdown Configurations
Java High-Performance Architecture
Java High-Performance Architecture
Dec 17, 2022 · Cloud Native

How to Build Lightning‑Fast Spring Boot Apps with Spring Native and GraalVM

This tutorial walks through installing GraalVM, configuring Spring Native, building a native Spring Boot application using Buildpacks or the native‑image plugin, creating Docker containers, and comparing startup speed and memory usage against traditional Java execution, providing full pom.xml examples and official documentation links.

Spring Nativebuildpacksdocker
0 likes · 12 min read
How to Build Lightning‑Fast Spring Boot Apps with Spring Native and GraalVM
Java Architect Essentials
Java Architect Essentials
Dec 16, 2022 · Backend Development

How to Package a Spring Boot Application into an Executable (EXE) Using exe4j and Inno Setup

This guide walks through converting a functional Spring Boot jar into a Windows executable using exe4j, then bundling the exe with a local JRE into a single installer with Inno Setup, providing step‑by‑step instructions, required tools, configuration details, and a code snippet for the installer script.

Exe4JInno SetupWindows Installer
0 likes · 5 min read
How to Package a Spring Boot Application into an Executable (EXE) Using exe4j and Inno Setup
Java High-Performance Architecture
Java High-Performance Architecture
Dec 16, 2022 · Backend Development

Simplify Spring Boot Permission Management with jCasbin

This guide shows how to replace Shiro with jCasbin in a Spring Boot microservice, covering Maven dependencies, configuration files, Enforcer initialization, policy handling, and a custom filter for runtime permission checks, enabling dynamic role‑based access control without server restarts.

jCasbinjavapermission management
0 likes · 10 min read
Simplify Spring Boot Permission Management with jCasbin
Sanyou's Java Diary
Sanyou's Java Diary
Dec 15, 2022 · Backend Development

How TLog Enables Zero‑Intrusion Log Tracing for Microservices

This article introduces TLog, a lightweight, near‑zero‑intrusion log tracing framework for microservices that automatically tags logs with traceId and other context, explains its core principles, integration steps, supported adapters for various frameworks, and best‑practice usage scenarios.

Distributed TracingTLoglog tracing
0 likes · 14 min read
How TLog Enables Zero‑Intrusion Log Tracing for Microservices
Java High-Performance Architecture
Java High-Performance Architecture
Dec 15, 2022 · Backend Development

How to Build a High‑Performance Follow Service with MySQL, Redis, and Spring Boot

This article explains how to design and implement a friend/follow microservice using MySQL for persistence and Redis sets for efficient set operations, covering database schema, Spring Boot configuration, Redis template setup, service and controller logic, and testing of follow, unfollow, and mutual‑follow features.

Follow ServiceMicroserviceMySQL
0 likes · 19 min read
How to Build a High‑Performance Follow Service with MySQL, Redis, and Spring Boot
Top Architect
Top Architect
Dec 15, 2022 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 Pitfalls

This article explains why using the Linux kill -9 command to stop Java services can cause data loss, demonstrates the differences between forceful and graceful termination, and provides multiple Spring Boot shutdown solutions—including kill -15, actuator endpoints, custom Tomcat connectors, and @PreDestroy hooks—complete with code examples.

Graceful ShutdownKill CommandLinux
0 likes · 21 min read
Graceful Shutdown of Spring Boot Applications: Avoiding kill -9 Pitfalls
Top Architect
Top Architect
Dec 13, 2022 · Backend Development

Implementing Request/Response Encryption and Decryption with a Spring Boot Starter

This article explains how to create a reusable Spring Boot starter that automatically encrypts outgoing responses and decrypts incoming requests using AES, provides a request‑wrapper to allow multiple reads of the input stream, and integrates Spring Validation to simplify parameter checking, all illustrated with complete Java code examples.

Starterencryptionjava
0 likes · 25 min read
Implementing Request/Response Encryption and Decryption with a Spring Boot Starter
Top Architect
Top Architect
Dec 8, 2022 · Backend Development

Spring Retry and Guava Retry: A Comprehensive Guide with Code Examples

This article introduces the Spring‑Retry and Guava‑Retry frameworks for Java, explains their dependencies, configuration, policies, and back‑off strategies, demonstrates both XML/annotation and programmatic usage with detailed code samples, and compares their flexibility and suitability for backend applications.

Guava RetrySpring Retryjava
0 likes · 15 min read
Spring Retry and Guava Retry: A Comprehensive Guide with Code Examples
Top Architect
Top Architect
Dec 8, 2022 · Backend Development

Common MyBatis Batch Insert Techniques and Performance Comparison

This article presents a detailed overview of five commonly used MyBatis and MyBatis-Plus batch insertion methods, including code examples, configuration steps, and performance measurements for inserting ten thousand records, helping developers choose the most efficient approach for large‑scale data insertion in Java backend projects.

Batch InsertPerformancejava
0 likes · 11 min read
Common MyBatis Batch Insert Techniques and Performance Comparison
Java Captain
Java Captain
Dec 8, 2022 · Backend Development

Design and Implementation of a Friend Follow Microservice Using MySQL and Redis

This article explains how to design and implement a friend follow microservice by combining MySQL for persistent storage with Redis sets for efficient follow/unfollow operations and mutual follow queries, covering database schema, Maven dependencies, Spring Boot configuration, RedisTemplate setup, service and controller logic, and testing procedures.

Follow FeatureMicroserviceMySQL
0 likes · 15 min read
Design and Implementation of a Friend Follow Microservice Using MySQL and Redis
Top Architect
Top Architect
Dec 7, 2022 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding the Pitfalls of kill -9

This article explains how the Linux kill -9 command can cause data inconsistency and service disruption, demonstrates why it should be avoided in production, and provides several graceful shutdown techniques for Spring Boot—including using kill -15, the built‑in shutdown hook, Actuator endpoints, and a custom Tomcat connector configuration—along with code examples and best‑practice recommendations.

Graceful ShutdownLinux killjava
0 likes · 19 min read
Graceful Shutdown of Spring Boot Applications: Avoiding the Pitfalls of kill -9
Java Architecture Diary
Java Architecture Diary
Dec 7, 2022 · Backend Development

Boost Spring Boot Development with mica-auto: Auto-Generate Config Files

The mica-auto Spring Boot starter tool leverages Java Annotation Processors to automatically generate essential configuration files such as spring.factories, AutoConfiguration.imports, aot.factories, and spring‑devtools.properties, supporting Spring Boot 2.7+ and 3.0, and simplifying native image builds with GraalVM.

Annotation Processorauto-configurationgraalvm
0 likes · 3 min read
Boost Spring Boot Development with mica-auto: Auto-Generate Config Files
Architecture Digest
Architecture Digest
Dec 7, 2022 · Backend Development

Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9

The article explains how the Linux kill command, especially kill -9, can abruptly terminate processes causing data inconsistency, and demonstrates safer alternatives for stopping Spring Boot applications—including kill -15, the built‑in shutdown script, Actuator endpoints, custom Tomcat connector shutdown, and @PreDestroy backup hooks—providing complete code examples.

Graceful ShutdownLinux signalsjava
0 likes · 19 min read
Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9
Code Ape Tech Column
Code Ape Tech Column
Dec 7, 2022 · Backend Development

Simplified Join Queries with MyBatis-Plus-Join (MPJ) in Spring Boot

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

Join QueryMPJORM
0 likes · 9 min read
Simplified Join Queries with MyBatis-Plus-Join (MPJ) in Spring Boot
macrozheng
macrozheng
Dec 6, 2022 · Backend Development

Master Spring Boot 3 Http Interface: Declarative Remote Calls Made Easy

This article explains how Spring Boot 3's Http Interface feature enables declarative HTTP service calls by defining Java interfaces, covering dependency setup, interface definitions, token handling, WebClient configuration, controller integration, testing with Postman, and discusses its reliance on WebFlux.

Declarative HTTPHTTP Interfacejava
0 likes · 10 min read
Master Spring Boot 3 Http Interface: Declarative Remote Calls Made Easy
Top Architect
Top Architect
Dec 5, 2022 · Backend Development

Integrating Spring Batch with Spring Boot: Full Tutorial and Example

This article provides a comprehensive step‑by‑step guide on integrating Spring Batch with Spring Boot, covering configuration, entity and mapper definitions, job, step, reader, processor, writer implementations, database setup, error handling, and execution via a REST controller, complete with code examples.

Batch ProcessingMySQLSpring Batch
0 likes · 22 min read
Integrating Spring Batch with Spring Boot: Full Tutorial and Example
Top Architect
Top Architect
Dec 5, 2022 · Backend Development

Spring Boot Starter for Automatic Request and Response Encryption/Decryption

This article demonstrates how to create a custom Spring Boot starter that provides automatic request body decryption and response body encryption using Hutool‑crypto, HttpServletRequestWrapper, RequestBodyAdvice, ResponseBodyAdvice, and validation utilities, enabling secure data transmission with timestamp verification.

RequestBodyAdviceencryptionjava
0 likes · 25 min read
Spring Boot Starter for Automatic Request and Response Encryption/Decryption
Top Architect
Top Architect
Dec 4, 2022 · Backend Development

Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations

This article explains multiple ways to perform asynchronous processing in Spring Boot, including @Async annotation, CompletableFuture (supplyAsync, runAsync), WebAsyncTask, DeferredResult, custom AsyncHandlerInterceptor, and server‑side optimizations such as increasing Tomcat connections and switching to Undertow, with complete code examples.

AsynchronousCompletableFuturejava
0 likes · 10 min read
Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations
Top Architect
Top Architect
Dec 2, 2022 · Backend Development

Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes

This article explains how to implement a comprehensive unified exception handling mechanism in Spring Boot by using @ControllerAdvice, custom BaseException/BusinessException classes, enum‑based error codes, assertion utilities, and standardized response objects to simplify error management across controller and service layers.

EnumsException Handlingassertions
0 likes · 22 min read
Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes
Selected Java Interview Questions
Selected Java Interview Questions
Dec 1, 2022 · Backend Development

Five Common Batch Insert Techniques for MyBatis and MyBatis‑Plus

This article presents and compares five practical batch‑insert methods for MyBatis and MyBatis‑Plus, covering preparation steps, code implementations, configuration details, and performance results, helping developers choose the most efficient approach for inserting large volumes of data in Java backend projects.

Batch Insertjavamybatis
0 likes · 9 min read
Five Common Batch Insert Techniques for MyBatis and MyBatis‑Plus
Top Architect
Top Architect
Nov 30, 2022 · Backend Development

Integrating Groovy Scripts with Spring Boot: A Step‑by‑Step Guide

This article introduces Groovy as a JVM scripting language, outlines its typical use cases, and provides a detailed, code‑rich tutorial on how to integrate Groovy scripts into a Spring Boot application, including dependency setup, script execution, bean access, and security considerations.

Backend IntegrationGroovyScripting
0 likes · 11 min read
Integrating Groovy Scripts with Spring Boot: A Step‑by‑Step Guide
macrozheng
macrozheng
Nov 30, 2022 · Backend Development

Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide

This article explains why back‑end parameter validation is essential, introduces the JSR‑303 Bean Validation specification and Hibernate Validator, demonstrates common constraint annotations, shows how to integrate validation in Spring Boot, create custom annotations, and resolve typical pitfalls.

Custom AnnotationHibernate ValidatorJSR-303
0 likes · 14 min read
Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide
Top Architect
Top Architect
Nov 29, 2022 · Databases

Elasticsearch Integration with Spring Boot: Dependency Setup, High‑Level Client, CRUD Operations, Bulk Processing and Search

This article provides a step‑by‑step guide on integrating Elasticsearch into a Spring Boot project, covering Maven dependency configuration, creation of a RestHighLevelClient, basic index and document CRUD operations, bulk data handling, advanced search queries with highlighting, and key implementation notes.

CRUDHigh-Level Clientjava
0 likes · 11 min read
Elasticsearch Integration with Spring Boot: Dependency Setup, High‑Level Client, CRUD Operations, Bulk Processing and Search
Programmer DD
Programmer DD
Nov 29, 2022 · Backend Development

How to Upgrade Spring Cloud Tencent to 2022: A Step‑by‑Step Guide

This article walks developers through upgrading Spring Cloud Tencent to the 2022 release, covering JDK 17 installation, Maven dependency updates, handling package conflicts, migrating javax to jakarta imports, adapting auto‑configuration files, and provides practical tips for a smooth transition to Java 17, Spring 6, and Spring Boot 3.

java-17spring-bootspring-cloud
0 likes · 14 min read
How to Upgrade Spring Cloud Tencent to 2022: A Step‑by‑Step Guide
Code Ape Tech Column
Code Ape Tech Column
Nov 29, 2022 · Backend Development

Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot

This article introduces OKHttpUtil, a lightweight wrapper for OkHttp that simplifies HTTP GET, POST, file upload/download, and chainable requests in Java, provides Maven integration, Spring Boot configuration, and demonstrates how to encapsulate external APIs such as eBay with concise code examples.

API wrapperHTTP clientOkHttp
0 likes · 10 min read
Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot
Java Architect Essentials
Java Architect Essentials
Nov 27, 2022 · Backend Development

Encrypting Spring Boot Configuration with Jasypt – A Complete Guide

This article explains how to securely encrypt sensitive Spring Boot configuration properties such as database passwords using the Jasypt library, covering dependency setup, YAML configuration, encryption/decryption testing, custom encryptors, property detectors, resolvers, filters, and Maven plugin usage, all with practical code examples.

Jasyptconfigurationencryption
0 likes · 22 min read
Encrypting Spring Boot Configuration with Jasypt – A Complete Guide
Programmer DD
Programmer DD
Nov 27, 2022 · Backend Development

Essential Guide to Upgrading Your Spring Boot Apps to 3.0

This article provides a comprehensive step‑by‑step migration guide for upgrading Spring Boot applications to version 3.0, covering JDK updates, dependency assessment, configuration changes, Jakarta EE package renaming, key feature alterations, and practical code snippets.

Backendgraalvmjakarta-ee
0 likes · 9 min read
Essential Guide to Upgrading Your Spring Boot Apps to 3.0
Programmer DD
Programmer DD
Nov 25, 2022 · Backend Development

How to Reduce API Payload Size with GZIP Compression in Spring Boot

Learn how to compress large JSON payloads in a Spring Boot advertising API using GZIP, implement a servlet filter and request wrapper to decompress on the server, and evaluate bandwidth, CPU trade‑offs, testing methods, and deployment steps to halve request size.

GzipHTTP CompressionServlet Filter
0 likes · 14 min read
How to Reduce API Payload Size with GZIP Compression in Spring Boot
Top Architect
Top Architect
Nov 22, 2022 · Backend Development

Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient

The article explains why browsers enforce same‑origin policies, then presents three practical ways to solve cross‑origin issues in a Spring Boot backend—using the @CrossOrigin annotation, routing through Spring Cloud Gateway, and making server‑side requests with HttpClient—accompanied by configuration examples and full code snippets.

CORSHttpClientSpring Cloud Gateway
0 likes · 12 min read
Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient
Java High-Performance Architecture
Java High-Performance Architecture
Nov 21, 2022 · Backend Development

Mastering Spring Data Elasticsearch: Clients, Operations, and Query Techniques

This article explains ElasticSearch’s role in modern applications, compares its clients, shows how to configure RestHighLevelClient in Spring Boot, and details the four Spring Data Elasticsearch Operations interfaces with code examples for building queries using CriteriaQuery, StringQuery, and NativeSearchQuery.

javasearchspring-boot
0 likes · 13 min read
Mastering Spring Data Elasticsearch: Clients, Operations, and Query Techniques
Top Architect
Top Architect
Nov 20, 2022 · Backend Development

Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details

This article provides a thorough tutorial on using Spring Validation for request parameter checking, covering simple usage, dependency setup, requestBody and requestParam validation, group and nested validation, collection handling, custom constraints, programmatic validation, fail‑fast mode, and the underlying implementation in Spring MVC and Hibernate Validator.

Hibernate ValidatorParameter Validationjava
0 likes · 17 min read
Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details
Top Architect
Top Architect
Nov 19, 2022 · Backend Development

Implementing Distributed Transactions with RocketMQ and SEATA in a Microservice Architecture

This article explains the concept of distributed transactions, presents typical microservice scenarios that generate them, and demonstrates a complete implementation using RocketMQ transactional messages and SEATA, including database schema, producer and consumer code, transaction listeners, and idempotent consumption handling.

Distributed TransactionsRocketMQSeata
0 likes · 14 min read
Implementing Distributed Transactions with RocketMQ and SEATA in a Microservice Architecture
Top Architect
Top Architect
Nov 19, 2022 · Backend Development

Design and Implementation of an Open API Token Authentication System with Spring Boot

This article explains how to design an open API authentication mechanism by creating app credentials, storing them in a MySQL table, generating short‑lived access tokens with a utility class, exposing a token endpoint, and securing all /openApi/* routes with a Spring interceptor, complete with code examples.

api-designjavaspring-boot
0 likes · 9 min read
Design and Implementation of an Open API Token Authentication System with Spring Boot
Architect
Architect
Nov 18, 2022 · Backend Development

Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient

This article explains why browsers enforce same‑origin policies, presents common CORS solutions such as the @CrossOrigin annotation, gateway integration with Spring Cloud Gateway, and using HttpClient, and provides detailed configuration and code examples for implementing these approaches in a Java backend project.

BackendCORSHttpClient
0 likes · 11 min read
Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient
Top Architect
Top Architect
Nov 18, 2022 · Information Security

Step-by-Step Guide to Building CAS Single Sign-On (SSO) with Spring Boot

This article provides a comprehensive tutorial on implementing Single Sign-On using the Central Authentication Service (CAS), covering its concepts, features, architecture, environment setup, server and client configuration, and testing procedures with detailed code examples for Java developers.

CASSSOSingle Sign-On
0 likes · 9 min read
Step-by-Step Guide to Building CAS Single Sign-On (SSO) with Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2022 · Backend Development

Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver

This article presents a comprehensive Spring Boot tutorial on implementing non‑intrusive login authentication using three techniques—Filter, Interceptor, and AOP with custom annotations—plus extensions such as ThreadLocal storage and a Spring MVC argument resolver, complete with project setup, Maven dependencies, and test screenshots.

InterceptorParameter ResolverThreadLocal
0 likes · 13 min read
Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver