Tagged articles
1047 articles
Page 4 of 11
Architecture Digest
Architecture Digest
Oct 23, 2024 · Backend Development

Generating Dynamic PDF Invoices with iTextPdf in Java

This article explains how to use the iTextPdf library in a Java SpringBoot project to create, fill, and merge PDF invoice templates—covering dependency setup, template design, dynamic table generation, and final PDF concatenation for both fixed and variable invoice data.

BackendDynamic PDFJava
0 likes · 11 min read
Generating Dynamic PDF Invoices with iTextPdf in Java
Java Backend Technology
Java Backend Technology
Oct 23, 2024 · Backend Development

How Cool Request Transforms Java API Debugging and Performance Tracing

Cool Request is an IDEA plugin that enhances HTTP debugging by offering reflection calls, traceable method execution, MyBatis function monitoring, customizable timing highlights, and scriptable environment handling, enabling Java developers to efficiently analyze performance and automate request workflows without leaving the IDE.

HTTP debuggingIDEASpringBoot
0 likes · 5 min read
How Cool Request Transforms Java API Debugging and Performance Tracing
Architecture Digest
Architecture Digest
Oct 22, 2024 · Backend Development

Comprehensive Guide to Using Ctrip’s Apollo Distributed Configuration Center with Spring Boot

This article provides a step‑by‑step tutorial on Apollo, Ctrip’s open‑source distributed configuration center, covering its core concepts, features, architecture, four‑dimensional model, project creation, Maven dependencies, Spring Boot configuration, test controllers, various runtime scenarios, cluster and namespace usage, and deployment on Kubernetes with Docker.

ApolloConfiguration ManagementJava
0 likes · 23 min read
Comprehensive Guide to Using Ctrip’s Apollo Distributed Configuration Center with Spring Boot
macrozheng
macrozheng
Oct 22, 2024 · Backend Development

Can @Service Replace @Controller in Spring Boot? A Deep Dive

This article explores whether the @Service annotation can replace @Controller in Spring Boot, demonstrates a working example, explains the underlying bean registration process, and clarifies how Spring’s component scanning and request mapping enable such unconventional usage.

BackendControllerJava
0 likes · 8 min read
Can @Service Replace @Controller in Spring Boot? A Deep Dive
Architect's Guide
Architect's Guide
Oct 22, 2024 · Backend Development

Design and Implementation of a Business Middle Platform Using SpringBoot, Kong API Gateway, and Kubernetes

This article details the end‑to‑end architecture of a high‑traffic business middle platform, covering business and technical design, Kong API Gateway, SpringBoot microservices, Dockerfile creation, MyCat‑MySQL sharding, cold/hot data strategies, DevOps pipelines, Kubernetes deployment, and operational monitoring.

DevOpsDockerKong
0 likes · 18 min read
Design and Implementation of a Business Middle Platform Using SpringBoot, Kong API Gateway, and Kubernetes
Top Architect
Top Architect
Oct 18, 2024 · Backend Development

Using Spring Transaction Hooks to Send Kafka Messages After Commit

This article explains how to leverage Spring's TransactionSynchronizationManager to detect active transactions, register synchronization callbacks, and asynchronously send Kafka messages only after a transaction successfully commits, providing a practical example and detailed code snippets for building a reusable Spring Boot starter library.

JavaKafkaSpringBoot
0 likes · 12 min read
Using Spring Transaction Hooks to Send Kafka Messages After Commit
Top Architect
Top Architect
Oct 18, 2024 · Backend Development

UniHttp: Declarative HTTP Interface Integration Framework for Java Backend Projects

This article introduces UniHttp, a declarative Java HTTP client framework that lets developers define third‑party HTTP APIs as annotated interfaces, provides quick‑start instructions, detailed annotation usage, lifecycle hooks, custom client configuration, and an enterprise integration example with full code snippets.

DeclarativeHTTPJava
0 likes · 21 min read
UniHttp: Declarative HTTP Interface Integration Framework for Java Backend Projects
Architecture Digest
Architecture Digest
Oct 17, 2024 · Backend Development

Simplifying Backend CRUD with APIJSON: One Interface per Operation

This article explains how APIJSON can replace dozens of traditional SpringBoot controller methods with a single configurable endpoint, demonstrating concise request formats, permission annotations, and example code for creating, reading, updating, deleting, and aggregating data in a Java backend.

APIJSONBackendCRUD
0 likes · 8 min read
Simplifying Backend CRUD with APIJSON: One Interface per Operation
Code Ape Tech Column
Code Ape Tech Column
Oct 17, 2024 · Backend Development

Comprehensive Guide to Using Ctrip's Open‑Source Apollo Distributed Configuration Center

This article provides an in‑depth tutorial on Apollo, Ctrip's open‑source distributed configuration center, covering its concepts, features, architecture, four management dimensions, client design, Maven integration, SpringBoot implementation, testing procedures, and deployment on Kubernetes with Docker.

ApolloConfiguration ManagementJava
0 likes · 23 min read
Comprehensive Guide to Using Ctrip's Open‑Source Apollo Distributed Configuration Center
Top Architect
Top Architect
Oct 15, 2024 · Backend Development

Measuring Heap Memory Allocation per HTTP Request in SpringBoot Applications

This article presents a SpringBoot-based experiment measuring the heap memory allocated per HTTP request, detailing the setup with JMeter, JVM GC logging, observed memory usage of roughly 34 KB per request, analysis of GC frequency, and concludes with recommendations on logging and memory optimization, while also promoting related AI services and community resources.

JVMMemoryOptimizationPerformanceTesting
0 likes · 11 min read
Measuring Heap Memory Allocation per HTTP Request in SpringBoot Applications
Top Architect
Top Architect
Oct 13, 2024 · Backend Development

Spring Boot Project Initialization, Version Management, and Common Backend Utilities Tutorial

This article walks through creating a Spring Boot project, handling version compatibility between Spring Cloud, Spring Boot, and Kafka, demonstrates common Maven configurations, provides global exception handling and logging aspects, and lists useful backend tools such as embedded Redis, MyBatis‑Plus, and Redisson.

JavaSpringBootVersionManagement
0 likes · 13 min read
Spring Boot Project Initialization, Version Management, and Common Backend Utilities Tutorial
Code Ape Tech Column
Code Ape Tech Column
Oct 8, 2024 · Backend Development

Generating Dynamic PDF Invoices with iTextPdf in Java

This article explains how to use the iTextPdf library in Java to design a PDF template, fill fixed fields, dynamically generate product tables, and merge the two parts into a single invoice PDF, including Maven dependencies and sample code.

JavaPDFSpringBoot
0 likes · 12 min read
Generating Dynamic PDF Invoices with iTextPdf in Java
Top Architect
Top Architect
Oct 4, 2024 · Databases

Design and Implementation of Table Sharding for Loan and Repayment Applications Using ShardingSphere and Spring Boot

The article describes a year‑long development experience where a senior architect designs, plans, and implements a sharding solution for loan and repayment tables using ShardingSphere, Spring Boot 3, MySQL, and custom synchronization code to migrate billions of rows while ensuring data consistency and operational continuity.

JavaShardingSphereSpringBoot
0 likes · 25 min read
Design and Implementation of Table Sharding for Loan and Repayment Applications Using ShardingSphere and Spring Boot
IT Services Circle
IT Services Circle
Sep 29, 2024 · Backend Development

Five‑Step Optimization of a Category‑Tree Query in a SpringBoot Application

This article details a step‑by‑step performance improvement journey for a category‑tree query in a SpringBoot‑Thymeleaf system, covering Redis caching, scheduled jobs, local Caffeine cache, Gzip compression, and data slimming with byte‑array storage to resolve latency and large‑key issues.

CaffeineGzipPerformance Optimization
0 likes · 8 min read
Five‑Step Optimization of a Category‑Tree Query in a SpringBoot Application
Su San Talks Tech
Su San Talks Tech
Sep 29, 2024 · Backend Development

5 Proven Optimizations That Supercharged Our Category Tree API Performance

This article walks through five successive performance optimizations—adding Redis caching, scheduling async updates, introducing a Caffeine local cache, enabling Nginx GZip compression, and compressing Redis data—to dramatically reduce the size and latency of a category‑tree API in a SpringBoot application.

CaffeineGzipPerformance Optimization
0 likes · 10 min read
5 Proven Optimizations That Supercharged Our Category Tree API Performance
Top Architect
Top Architect
Sep 28, 2024 · Backend Development

Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling

This article critiques overly complex Spring Boot controllers filled with try-catch and validation logic, demonstrates a cleaner implementation using @Valid annotations and reduced code, provides global exception handling examples, and concludes with advice on maintaining concise controller methods while also promoting related community resources.

ControllerJavaSpringBoot
0 likes · 11 min read
Improving Spring Boot Controllers: From Messy to Elegant with @Valid and Global Exception Handling
macrozheng
macrozheng
Sep 24, 2024 · Backend Development

Master SpringBoot’s Built‑in Utility Classes: Assertions, Collections, IO, and More

This article provides a concise guide to SpringBoot’s built‑in utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP helpers—explaining their purpose, key methods, and offering ready‑to‑use code examples to boost development efficiency.

JavaReflectionSpringBoot
0 likes · 14 min read
Master SpringBoot’s Built‑in Utility Classes: Assertions, Collections, IO, and More
Selected Java Interview Questions
Selected Java Interview Questions
Sep 20, 2024 · Information Security

Generating and Verifying Java License Files with TrueLicense

This article explains how to generate a Java license using TrueLicense, configure key pairs, create the license file, and integrate verification and installation steps into a Spring Boot application, including detailed code examples and deployment considerations for secure software licensing.

CodeExampleJavaLicense
0 likes · 15 min read
Generating and Verifying Java License Files with TrueLicense
Top Architect
Top Architect
Sep 18, 2024 · Backend Development

Building a Multi‑Level Approval Workflow with Activiti in Java

This article demonstrates how to design, deploy, and run a two‑level leave‑approval workflow using the Activiti BPMN engine, covering diagram creation, Spring Boot configuration, process variables, task handling, exclusive gateways, database tables, API overview, and best‑practice tips for extending the flow.

ActivitiBPMNJava
0 likes · 25 min read
Building a Multi‑Level Approval Workflow with Activiti in Java
Java Tech Enthusiast
Java Tech Enthusiast
Sep 18, 2024 · Backend Development

Open‑Source Chinese Payment Systems: Jeepay and DaxPay Overview

This guide reviews two actively maintained open-source Chinese payment platforms—Jeepay, an internet-focused system supporting WeChat Pay, Alipay, UnionPay and more with Spring Boot backend and Ant Design Vue front-end, and DaxPay, a Java-SDK-enabled solution for Alipay, WeChat and UnionPay built on Spring Boot and Vue 3, both offering documentation, demos, and high-concurrency deployment options.

JavaMicroservicesSpringBoot
0 likes · 3 min read
Open‑Source Chinese Payment Systems: Jeepay and DaxPay Overview
Top Architect
Top Architect
Sep 11, 2024 · Backend Development

Implementing a Student Leave Approval Workflow with Flowable and Spring Boot

This article provides a step‑by‑step guide to building a student leave approval process using Flowable BPMN, Spring Boot 2.7.5, MySQL, and related dependencies, covering environment setup, Maven configuration, application properties, Java classes, REST endpoints, diagram generation, and database tables.

BPMNFlowableJava
0 likes · 18 min read
Implementing a Student Leave Approval Workflow with Flowable and Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Sep 10, 2024 · Backend Development

Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration

This article explains how Spring Boot handles graceful shutdown in Kubernetes, manual Actuator shutdown, SIGTERM handling, Tomcat graceful termination, and Logback log flushing, providing detailed code examples, configuration snippets, and the underlying shutdown hook mechanisms that ensure resources are released cleanly.

GracefulShutdownJavaKubernetes
0 likes · 18 min read
Graceful Shutdown in Spring Boot: Mechanisms, Code Samples, and Configuration
Top Architect
Top Architect
Sep 8, 2024 · Backend Development

Spring Boot DevTools, Lombok, and Configuration Processor: Setup and Usage Guide

This article explains how to enable hot deployment in Spring Boot using DevTools, configure automatic recompilation in IDEs, simplify Java bean code with Lombok, and add the Spring Configuration Processor for property metadata, providing Maven snippets and step‑by‑step instructions.

ConfigurationProcessorDevToolsJava
0 likes · 8 min read
Spring Boot DevTools, Lombok, and Configuration Processor: Setup and Usage Guide
Code Ape Tech Column
Code Ape Tech Column
Sep 6, 2024 · Backend Development

Comprehensive Guide to Alibaba Sentinel: Installation, Configuration, Flow Control, Degrade Rules, Hotspot Parameters, Persistence, Cluster Flow Control and More

This article provides an in‑depth tutorial on Alibaba Sentinel, covering its core concepts, installation of the dashboard, version selection, integration with Spring Boot microservices, detailed flow‑control and degrade rule configurations, hotspot parameter limiting, system adaptive protection, custom block handlers, blacklist/whitelist settings, rule persistence with Nacos, push‑mode synchronization, cluster flow control, gateway integration and OpenFeign fault‑tolerance, all illustrated with practical code examples.

FlowControlJavaSpringBoot
0 likes · 38 min read
Comprehensive Guide to Alibaba Sentinel: Installation, Configuration, Flow Control, Degrade Rules, Hotspot Parameters, Persistence, Cluster Flow Control and More
Architect's Guide
Architect's Guide
Sep 6, 2024 · Backend Development

Implementing Dynamic Data Source Switching in Spring Boot with ThreadLocal and AbstractRoutingDataSource

This article demonstrates how to implement dynamic data source switching in a Spring Boot application by leveraging ThreadLocal and AbstractRoutingDataSource, providing step‑by‑step code examples for context holders, custom routing, annotation‑driven switching, and runtime addition of new data sources.

DynamicDataSourceMyBatis-PlusSpringBoot
0 likes · 14 min read
Implementing Dynamic Data Source Switching in Spring Boot with ThreadLocal and AbstractRoutingDataSource
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 31, 2024 · Backend Development

Prevent Unintended Field Updates in SpringBoot: DTOs vs @InitBinder

This article explains how SpringBoot's default data binding can unintentionally modify unwanted fields and demonstrates three safe approaches—using a dedicated DTO, configuring WebDataBinder with @InitBinder to allow only specific fields, and applying advanced @InitBinder options such as required fields, constructor‑only binding, and custom validators—to ensure precise and secure request parameter handling.

InitBinderSpringBootWebDataBinder
0 likes · 7 min read
Prevent Unintended Field Updates in SpringBoot: DTOs vs @InitBinder
Top Architect
Top Architect
Aug 30, 2024 · Backend Development

Diagnosing High Memory Usage in Spring Boot Applications: JVM Parameters and Troubleshooting Steps

The article details how a production Spring Boot system consumed excessive memory due to default JVM heap settings, explains the underlying JVM defaults, demonstrates diagnostic commands, and provides practical recommendations for configuring JVM parameters and monitoring memory usage to prevent similar issues.

Backend DevelopmentJVMJava
0 likes · 8 min read
Diagnosing High Memory Usage in Spring Boot Applications: JVM Parameters and Troubleshooting Steps
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 30, 2024 · Backend Development

Master the 9 Essential SpringBoot Annotations for Backend Development

This article provides a concise yet comprehensive guide to the most common SpringBoot annotations—including @SpringBootApplication, @EnableAutoConfiguration, @ComponentScan, @Service, @Repository, @Component, @RestController, @Bean, @ResponseBody, and @Autowired—explaining their purpose, composition, and practical code examples for building robust Java backend applications.

Backend DevelopmentJavaSpringBoot
0 likes · 6 min read
Master the 9 Essential SpringBoot Annotations for Backend Development
Su San Talks Tech
Su San Talks Tech
Aug 23, 2024 · Backend Development

Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More

This article provides a comprehensive overview of SpringBoot’s most commonly used annotations, covering MVC, bean, JPA, configuration, exception handling, and testing annotations, complete with clear explanations and practical code examples to help developers avoid pitfalls and write cleaner code.

Backend DevelopmentJavaSpring MVC
0 likes · 18 min read
Master SpringBoot Annotations: A Complete Guide to @Controller, @Service, @Repository and More
Architecture Digest
Architecture Digest
Aug 18, 2024 · Backend Development

Zero‑Downtime SpringBoot Port Sharing: Design and Implementation

This article explains how to achieve seamless code updates for SpringBoot applications by allowing two processes to share the same port, detailing the underlying servlet container mechanics, the role of DispatcherServlet, and providing a complete Java implementation with step‑by‑step instructions and code samples.

BackendJavaPortSharing
0 likes · 8 min read
Zero‑Downtime SpringBoot Port Sharing: Design and Implementation
Top Architect
Top Architect
Aug 18, 2024 · Databases

Design and Implementation of Database Table Partitioning for Loan and Repayment Systems

This article details the design, planning, and step‑by‑step implementation of a database table‑partitioning solution for loan and repayment request tables, covering schema decisions, sharding strategy, historical data migration, dynamic synchronization, code examples with ShardingSphere, SpringBoot, and operational considerations for seamless migration.

Data MigrationShardingSphereSpringBoot
0 likes · 18 min read
Design and Implementation of Database Table Partitioning for Loan and Repayment Systems
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 13, 2024 · Databases

Automate Database Documentation in SpringBoot with Screw: A Complete Guide

This article explains why maintaining up‑to‑date database schema documentation is essential, introduces the Screw tool and its supported databases and output formats, and provides a step‑by‑step SpringBoot 3.2.5 example—including Maven dependency, configuration classes, a generation component, and a test—to automatically produce HTML, Word, or Markdown docs.

AutomationSpringBootdatabase documentation
0 likes · 8 min read
Automate Database Documentation in SpringBoot with Screw: A Complete Guide
Architect
Architect
Aug 12, 2024 · Backend Development

How to Run Two SpringBoot Instances on the Same Port Seamlessly

When updating a SpringBoot application the old process must be stopped because the new one cannot bind to the same port, but by leveraging Tomcat's embedded container, ServletWebServerFactory, and dynamic port handling you can keep both processes alive and achieve zero‑downtime deployments.

Backend DevelopmentJavaPort Sharing
0 likes · 9 min read
How to Run Two SpringBoot Instances on the Same Port Seamlessly
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 12, 2024 · Backend Development

Mastering Spring’s @PathVariable: Real‑World Examples and Advanced Tips

This article explains the purpose and usage of Spring MVC’s @PathVariable annotation, covering basic binding, custom names, class‑level variables, multiple parameters, map injection, regex and optional variables, path‑suffix handling, and how to retrieve variables outside controllers, all with clear code examples.

PathVariableSpringBootSpringMVC
0 likes · 7 min read
Mastering Spring’s @PathVariable: Real‑World Examples and Advanced Tips
Architect's Guide
Architect's Guide
Aug 11, 2024 · Operations

Comprehensive Guide to Using Apollo Distributed Configuration Center

This article provides an in‑depth tutorial on Apollo, Ctrip's open‑source distributed configuration center, covering its core concepts, architecture, four‑dimensional configuration model, client design, deployment, and step‑by‑step instructions for creating projects, adding configurations, testing dynamic updates, and running the service in Kubernetes with Docker.

ApolloConfiguration CenterDocker
0 likes · 22 min read
Comprehensive Guide to Using Apollo Distributed Configuration Center
Wukong Talks Architecture
Wukong Talks Architecture
Aug 5, 2024 · Operations

Comprehensive Case Study of Large‑Scale Desktop IT Management and Automated Fault Detection at Ctrip

This article presents a detailed case study of Ctrip's large‑scale desktop IT management solution, describing the challenges of handling tens of thousands of office PCs, the full‑link architecture built with Rust, Tauri, SpringBoot and Django, automated health monitoring, fault detection, remediation workflows, security measures, performance optimizations, and the measurable operational improvements achieved.

AutomationDesktop ManagementIT Operations
0 likes · 16 min read
Comprehensive Case Study of Large‑Scale Desktop IT Management and Automated Fault Detection at Ctrip
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 5, 2024 · Backend Development

Boost SpringBoot Reliability with Fast‑Retry Asynchronous Retry Framework

Fast‑Retry is a high‑performance, asynchronous retry framework for SpringBoot that handles millions of concurrent tasks, offering configurable retry attempts, delay, exception handling, and custom result policies, and outperforms traditional synchronous solutions like Spring‑Retry and Guava‑Retry in throughput and resource usage.

AsynchronousRetrySpringBoot
0 likes · 8 min read
Boost SpringBoot Reliability with Fast‑Retry Asynchronous Retry Framework
Java Architect Essentials
Java Architect Essentials
Aug 2, 2024 · Databases

Migrating a SpringBoot + MyBatisPlus + MySQL Project to PostgreSQL: Common Pitfalls and Helper Scripts

This article details the step‑by‑step process of switching a SpringBoot‑MyBatisPlus application from MySQL to PostgreSQL, covering driver integration, JDBC configuration changes, numerous SQL and type‑conversion pitfalls, and provides ready‑to‑run PostgreSQL scripts for bulk column adjustments and default values.

JavaPostgreSQLSQL
0 likes · 11 min read
Migrating a SpringBoot + MyBatisPlus + MySQL Project to PostgreSQL: Common Pitfalls and Helper Scripts
Architecture Digest
Architecture Digest
Aug 2, 2024 · Backend Development

From Messy to Elegant: Refactoring Spring Boot Controllers with @Valid and Global Exception Handling

The article demonstrates how to transform overly complex Spring Boot controllers—filled with repetitive validation and business logic—into clean, maintainable code by using @Valid annotations, concise validation rules, and a centralized exception handler, effectively halving the code size and improving readability.

BackendControllerJava
0 likes · 9 min read
From Messy to Elegant: Refactoring Spring Boot Controllers with @Valid and Global Exception Handling
Java Backend Technology
Java Backend Technology
Aug 2, 2024 · Backend Development

Why SpringBoot @EnableScheduling Is Slow and How to Fix It

This article explains why SpringBoot's default @EnableScheduling runs tasks sequentially with noticeable delays, analyzes the underlying single‑threaded scheduler, and provides multiple solutions—including thread‑pool configuration, asynchronous execution, custom executors, and distributed locks—to achieve reliable and scalable scheduled jobs.

AsyncDistributedLockJava
0 likes · 17 min read
Why SpringBoot @EnableScheduling Is Slow and How to Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 1, 2024 · Backend Development

Why Spring AOP Sometimes Fails to Create Proxies and How to Fix It

This article explains Spring AOP’s core concepts, shows how proxies are normally created with @EnableAspectJAutoProxy, and details several edge cases—such as implementing Advice, Pointcut, Advisor, or using special bean names—where Spring will not generate a proxy, providing code examples and the resulting output for each scenario.

SpringBootaspectjspring-aop
0 likes · 8 min read
Why Spring AOP Sometimes Fails to Create Proxies and How to Fix It
Selected Java Interview Questions
Selected Java Interview Questions
Jul 26, 2024 · Backend Development

Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port

This article explains how to achieve seamless code updates for SpringBoot applications by allowing two instances to share the same port, detailing the underlying Tomcat embedding mechanism, DispatcherServlet handling, and providing a complete Java implementation with step‑by‑step instructions and test results.

BackendJavaPort Sharing
0 likes · 7 min read
Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port
Top Architect
Top Architect
Jul 25, 2024 · Backend Development

Introducing MyBatis‑Mate: Enterprise Features for Spring Boot

This article introduces MyBatis‑Mate, an official MyBatis‑Plus extension that provides enterprise‑level capabilities such as sharding, data auditing, field encryption, dictionary binding, data masking, automatic DDL maintenance, dynamic data‑source switching, distributed transaction logging, and fine‑grained data permissions for Spring Boot applications.

DataMaskingDataShardingFieldEncryption
0 likes · 17 min read
Introducing MyBatis‑Mate: Enterprise Features for Spring Boot
Ctrip Technology
Ctrip Technology
Jul 25, 2024 · Operations

Ctrip's Full‑Chain Desktop Operations Platform for Managing Tens of Thousands of PCs

The article presents a comprehensive case study of Ctrip's full‑chain desktop operations system, detailing its architecture, cross‑platform Rust/Tauri agents, SpringBoot server, security measures, operational challenges, performance optimizations, and the measurable improvements in fault detection and repair across a massive corporate PC fleet.

AutomationDesktop ManagementIT Operations
0 likes · 18 min read
Ctrip's Full‑Chain Desktop Operations Platform for Managing Tens of Thousands of PCs
Selected Java Interview Questions
Selected Java Interview Questions
Jul 22, 2024 · Backend Development

Using a Database as a Central Configuration Center in SpringBoot

This article analyzes the problems of scattered property configuration in SpringBoot projects, designs a database table to store configuration items, implements a configuration loader that injects database values into the Spring environment, and demonstrates testing and best‑practice considerations for a robust backend configuration solution.

BackendConfigurationJava
0 likes · 11 min read
Using a Database as a Central Configuration Center in SpringBoot
IT Services Circle
IT Services Circle
Jul 19, 2024 · Backend Development

Comprehensive Backend Interview Guide: MySQL Indexes, Redis Architecture, Java SpringBoot Auto‑Configuration, and JVM Memory Management

This article provides an in-depth overview of common backend interview topics, covering MySQL index structures and storage engines, Redis single‑threaded design and persistence mechanisms, Java transaction ACID properties, SpringBoot auto‑configuration principles, JVM memory regions, class loading, and garbage‑collection algorithms, all illustrated with code examples.

JVMJavaSpringBoot
0 likes · 40 min read
Comprehensive Backend Interview Guide: MySQL Indexes, Redis Architecture, Java SpringBoot Auto‑Configuration, and JVM Memory Management
Java Architect Essentials
Java Architect Essentials
Jul 19, 2024 · Backend Development

Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot

This article explains how to create a unified SpringBoot utility class that builds hierarchical structures such as multi‑level menus, comments, departments, and categories, discusses database design choices like the optional tree_path field, provides a detailed ITreeNode interface, implementation of TreeNodeUtil with code examples, and demonstrates testing and filtering scenarios.

Backend DevelopmentJavaMulti-level Menu
0 likes · 12 min read
Unified TreeNode Utility Class for Multi‑Level Menus, Comments, Departments, and Categories in SpringBoot
Architect's Guide
Architect's Guide
Jul 16, 2024 · Backend Development

Refactoring Spring Boot Controllers: From Messy to Elegant

The article critiques overly complex Spring Boot controllers filled with repetitive validation and business logic, demonstrates cleaner implementations using @Valid, Assert, and global exception handling, and provides practical code examples and guidelines for building maintainable backend controllers.

@ValidBackendJava
0 likes · 10 min read
Refactoring Spring Boot Controllers: From Messy to Elegant
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 15, 2024 · Backend Development

Build Custom SpringBoot Cache Annotations with Redis and AOP

This guide walks through creating a lightweight SpringBoot cache component using custom @Cacheable and @CacheEvict annotations, configuring Redis, implementing an AOP aspect to handle caching logic, and demonstrating usage with sample services and controller endpoints, while also discussing key generation and potential enhancements.

CacheCustomAnnotationsSpringBoot
0 likes · 9 min read
Build Custom SpringBoot Cache Annotations with Redis and AOP
Java Tech Enthusiast
Java Tech Enthusiast
Jul 13, 2024 · Backend Development

Implementing Captcha Login with Spring Boot and Redis

The guide demonstrates how to build a front‑end/back‑end separated captcha login using Spring Boot, Kaptcha and Redis, showing Redis‑based captcha storage with a unique key, Base64 image delivery, and verification logic that replaces traditional session‑based approaches.

APICaptchaJava
0 likes · 12 min read
Implementing Captcha Login with Spring Boot and Redis
Programmer Null's Self-Cultivation
Programmer Null's Self-Cultivation
Jul 10, 2024 · Information Security

Master Shiro Security: From Basics to CAS SSO Integration with SpringBoot

This comprehensive guide walks you through Shiro's core concepts, authentication and authorization mechanisms, various realm implementations, session management, distributed session handling with Redis, caching strategies, and step‑by‑step integration of CAS single sign‑on using SpringBoot and pac4j, complete with code samples.

CASJavaShiro
0 likes · 34 min read
Master Shiro Security: From Basics to CAS SSO Integration with SpringBoot
Top Architect
Top Architect
Jul 9, 2024 · Backend Development

Replacing Tomcat with Undertow in Spring Boot: Configuration, Performance Comparison, and Benefits

This article explains how to replace Spring Boot's default embedded Tomcat with the high‑performance Undertow server, detailing Undertow's features, providing Maven dependency changes, showing configuration steps, and presenting benchmark results that compare QPS and memory usage, concluding that Undertow is preferable for high‑concurrency Java backend applications.

JavaSpringBootTomcat
0 likes · 8 min read
Replacing Tomcat with Undertow in Spring Boot: Configuration, Performance Comparison, and Benefits
macrozheng
macrozheng
Jul 9, 2024 · Operations

Master Lightweight CI/CD with Drone and Gogs: Step-by-Step Docker Deployment

Learn how to set up a lightweight, container‑based CI/CD pipeline using Drone and Gogs, install both tools via Docker, configure servers and runners, write .drone.yml scripts, and automate building and deploying a SpringBoot e‑commerce project, all with minimal memory usage.

AutomationDockerGogs
0 likes · 11 min read
Master Lightweight CI/CD with Drone and Gogs: Step-by-Step Docker Deployment
IT Xianyu
IT Xianyu
Jul 9, 2024 · Information Security

Encrypting Plaintext Passwords in SpringBoot Configuration Using Jasypt

This article explains how to protect sensitive database credentials in SpringBoot applications by encrypting passwords in configuration files, leveraging Jasypt and a custom BeanFactoryPostProcessor to transparently decrypt values at runtime.

Configuration SecurityJasyptJava
0 likes · 8 min read
Encrypting Plaintext Passwords in SpringBoot Configuration Using Jasypt
Java Tech Enthusiast
Java Tech Enthusiast
Jul 6, 2024 · Information Security

Seamless Token Auto‑Refresh with Spring Cloud Gateway and Axios

The article presents a full‑stack solution for seamless token auto‑refresh, combining a Spring Cloud Gateway GlobalFilter that signals expiration with a custom 511 status, Axios response interceptors and a TypeScript timer on the client, plus server‑side token metadata, allowing developers to choose server‑centric or client‑centric refresh strategies.

SpringBootTokenTypeScript
0 likes · 21 min read
Seamless Token Auto‑Refresh with Spring Cloud Gateway and Axios
macrozheng
macrozheng
Jul 4, 2024 · Backend Development

How to Secure Internal‑Only APIs with SpringBoot, Gateway, Redis, and AOP

This article explores three practical approaches—microservice isolation, Redis‑based whitelist, and gateway‑AOP header checks—to restrict certain APIs to internal network calls, and provides step‑by‑step SpringBoot code examples for implementing the preferred gateway‑AOP solution.

API SecurityMicroservicesSpringBoot
0 likes · 7 min read
How to Secure Internal‑Only APIs with SpringBoot, Gateway, Redis, and AOP
macrozheng
macrozheng
Jul 3, 2024 · Operations

How to Visualize SpringBoot Metrics with Grafana and Prometheus Using Docker

This guide walks through installing Grafana and Prometheus with Docker, configuring node_exporter to collect system metrics, adding SpringBoot Actuator and Micrometer for application metrics, setting up Prometheus scrape jobs, and importing ready‑made Grafana dashboards to achieve real‑time monitoring and alerting.

AlertingDockerGrafana
0 likes · 10 min read
How to Visualize SpringBoot Metrics with Grafana and Prometheus Using Docker
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 3, 2024 · Backend Development

SpringBoot 3.3: Annotations @ModelAttribute, @SessionAttribute, @RequestAttribute

This article explains the purpose and proper usage of SpringBoot 3.3’s request‑handling annotations—@ModelAttribute, @SessionAttribute, @RequestAttribute—and the RedirectAttributes class, providing detailed code examples, configuration tips, and scenarios where each tool is essential for form submission, session management, and flash‑attribute redirects.

SpringBootWeb Developmentannotations
0 likes · 9 min read
SpringBoot 3.3: Annotations @ModelAttribute, @SessionAttribute, @RequestAttribute
Top Architect
Top Architect
Jun 29, 2024 · Backend Development

Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project

This article details the design and implementation of a Java SpringBoot seckill system, covering its architecture, technology stack, double‑MD5 password encryption, distributed session management with Redis, unified exception handling, page and object caching, static page generation, memory‑flag plus Redis pre‑decrement and RabbitMQ asynchronous order processing, oversell prevention, and API rate limiting, accompanied by key code snippets.

Distributed SessionJavaRabbitMQ
0 likes · 11 min read
Backend Implementation of a SpringBoot-Based Seckill (Flash Sale) Project
Top Architect
Top Architect
Jun 27, 2024 · Cloud Computing

Comprehensive Guide to Installing and Using MinIO with Spring Boot and Docker

This article provides a detailed tutorial on installing MinIO on CentOS 7 using Docker, configuring it, integrating with Spring Boot for multipart upload, generating presigned URLs, and includes complete Java code examples for utilities and controllers, covering use cases, deployment steps, and troubleshooting tips.

DockerJavaMinio
0 likes · 24 min read
Comprehensive Guide to Installing and Using MinIO with Spring Boot and Docker
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2024 · Backend Development

Caffeine Cache Introduction, Basics, and Spring Boot Integration

This article introduces the Java Caffeine caching library, explains its manual, loading, and async cache APIs, details eviction and refresh strategies, shows how to collect statistics, and demonstrates full integration with Spring Boot using Maven dependencies, cache annotations, constant definitions, configuration classes, and usage examples.

BackendCacheCaffeine
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
Architect
Architect
Jun 25, 2024 · Backend Development

Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit

This article explains how to use Spring's TransactionSynchronizationManager to detect active transactions and register callbacks that asynchronously send Kafka messages after a transaction successfully commits, ensuring data consistency in payment‑system archiving scenarios.

BackendJavaKafka
0 likes · 10 min read
Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit
Top Architect
Top Architect
Jun 25, 2024 · Backend Development

A Comprehensive Guide to Spring Boot Startup Sequence and Extension Points

This article explains the Spring Boot startup process, enumerates the key extension points and their execution order, demonstrates the sequence with practical code examples, and answers common questions about bean initialization, lifecycle callbacks, and the proper timing for opening RPC, MQ, and HTTP traffic.

ExtensionPointsJavaLifecycle
0 likes · 16 min read
A Comprehensive Guide to Spring Boot Startup Sequence and Extension Points
Selected Java Interview Questions
Selected Java Interview Questions
Jun 25, 2024 · Databases

Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot

This article details the end‑to‑end design, configuration, and code implementation of a 50‑table sharding solution for cash repayment and loan application data, covering database schema planning, historical data migration, backend query adaptation, dynamic switches, scheduled consistency checks, and practical pitfalls encountered with Spring Boot 3 and ShardingSphere.

Backend DevelopmentJavaShardingSphere
0 likes · 22 min read
Design and Implementation of Table Sharding for Cash Repayment Applications Using ShardingSphere and Spring Boot
Top Architect
Top Architect
Jun 21, 2024 · Backend Development

Deep Dive into Spring Boot Startup Sequence and Extension Points

This article provides a comprehensive explanation of Spring Boot's startup process, detailing each lifecycle extension point, the order of execution, common pitfalls with RPC/MQ/HTTP traffic, and includes runnable code examples to help developers master Spring initialization.

DependencyInjectionJavaLifecycle
0 likes · 15 min read
Deep Dive into Spring Boot Startup Sequence and Extension Points
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 20, 2024 · Backend Development

Mastering Unified Response and Global Exception Handling in Spring Boot 3

This tutorial explains how to implement a standardized response format and a global exception handling mechanism in Spring Boot 3, providing reusable code examples, status enums, controller advice, and best‑practice guidelines to improve code consistency, readability, and maintainability across backend projects.

APISpringBootexceptionhandling
0 likes · 10 min read
Mastering Unified Response and Global Exception Handling in Spring Boot 3
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 16, 2024 · Backend Development

Master SpringBoot Runners: ApplicationRunner vs CommandLineRunner Explained

This guide explains how to run custom code after SpringApplication starts by implementing ApplicationRunner or CommandLineRunner, compares their method signatures and argument handling, shows execution timing, provides practical examples, and demonstrates how to control execution order with @Order or Ordered.

ApplicationRunnerCommandLineRunnerRunner
0 likes · 7 min read
Master SpringBoot Runners: ApplicationRunner vs CommandLineRunner Explained
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 14, 2024 · Backend Development

Log SpringBoot Controllers, Track Request Time, Dynamically Register Resources

This guide shows how to output all SpringBoot controller endpoints via logging configuration, measure complete request processing time by listening to ServletRequestHandledEvent, dynamically register and deregister static resources at runtime, and execute custom logic after the application context refreshes using ContextRefreshedEvent.

Dynamic ResourcesRequest TimingSpringBoot
0 likes · 7 min read
Log SpringBoot Controllers, Track Request Time, Dynamically Register Resources
Architect
Architect
Jun 13, 2024 · Cloud Native

How to Build and Deploy a SpringBoot Docker Image on Windows Using IDEA

This guide walks through setting up Docker on Windows, creating a Dockerfile for a SpringBoot service, using IntelliJ IDEA to build the image, testing the container locally, and finally deploying the image to a Linux server with proper volume and port mappings.

Container DeploymentDockerDockerfile
0 likes · 11 min read
How to Build and Deploy a SpringBoot Docker Image on Windows Using IDEA