Pan Zhi's Tech Notes
Author

Pan Zhi's Tech Notes

Sharing frontline internet R&D technology, dedicated to premium original content.

33
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Pan Zhi's Tech Notes

33 recent articles
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 10, 2025 · Backend Development

How to Gracefully Shut Down a Spring Boot Application

This article explains why force‑killing a Spring Boot process is unsafe and walks through four practical ways—using Actuator, ApplicationContext.close(), PID‑based kill commands, and SpringApplication.exit()—to achieve a graceful shutdown while preserving in‑flight tasks and releasing resources.

ActuatorGraceful ShutdownJava
0 likes · 9 min read
How to Gracefully Shut Down a Spring Boot Application
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 7, 2025 · Backend Development

Spring Cloud Feign Deep Dive: Architecture, Usage, and Practical Demo

This article walks through the background of Spring Cloud's Feign client, explains its core concepts, shows step‑by‑step project setup with Eureka services, demonstrates remote calls and file upload extensions using Feign‑Form, and concludes with a functional microservice example.

FeignFile UploadJava
0 likes · 10 min read
Spring Cloud Feign Deep Dive: Architecture, Usage, and Practical Demo
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 5, 2025 · Backend Development

Spring Cloud Ribbon: Hands‑On Guide to Client‑Side Load Balancing

This article walks through the background of Spring Cloud Ribbon, explains its client‑side load‑balancing role, provides step‑by‑step code to create multiple provider services and a consumer that uses Ribbon, and shows how to configure different balancing algorithms and retry mechanisms.

RibbonSpring Cloudeureka
0 likes · 12 min read
Spring Cloud Ribbon: Hands‑On Guide to Client‑Side Load Balancing
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Mar 3, 2025 · Backend Development

Understanding Spring Cloud Eureka Architecture and Building a High‑Availability Cluster – A Hands‑On Guide

This article explains the core concepts of Spring Cloud Eureka, demonstrates how to create a Eureka server, a provider, and a consumer with full code examples, and shows how to configure a two‑node and multi‑node Eureka cluster for high availability in micro‑service environments.

ClusterService DiscoverySpring Cloud
0 likes · 13 min read
Understanding Spring Cloud Eureka Architecture and Building a High‑Availability Cluster – A Hands‑On Guide
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 28, 2025 · Cloud Native

Spring Cloud Quick‑Start Guide: Getting Started with Microservices

This article introduces Spring Cloud's background, core components (including first‑ and second‑generation modules derived from Netflix OSS), versioning scheme, compatibility with Spring Boot, and practical advice for selecting matching releases to avoid runtime issues in microservice projects.

Cloud NativeNetflix OSSSpring Cloud
0 likes · 12 min read
Spring Cloud Quick‑Start Guide: Getting Started with Microservices
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 25, 2025 · Backend Development

Build a Code Generator from Scratch: Boost Development Efficiency 10×

This article walks through creating a fully automated Spring Boot and MyBatis code generator using Freemarker templates, detailing each step from extracting table metadata to generating DAO, service, controller, and entity classes, and shows how a single-table CRUD can be produced in seconds.

Backend DevelopmentFreemarkerJava
0 likes · 25 min read
Build a Code Generator from Scratch: Boost Development Efficiency 10×
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 20, 2025 · Databases

Mastering Database Concurrency: Dirty Read, Non‑Repeatable Read, and Phantom Read

The article explains ACID properties, details how inadequate isolation levels cause dirty reads, non‑repeatable reads, and phantom reads, illustrates each with transaction scenarios and diagrams, and shows how MySQL’s lock types and isolation settings prevent these anomalies, noting the trade‑off between isolation and concurrency.

DatabaseMySQLdirty read
0 likes · 9 min read
Mastering Database Concurrency: Dirty Read, Non‑Repeatable Read, and Phantom Read
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 14, 2025 · Backend Development

How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial

This guide walks through the need for PDF generation in business scenarios, introduces the iText library (both iText5 and iText7), shows how to add Maven dependencies, provides a minimal “Hello World” PDF example, then details converting HTML (with CSS, images, and Freemarker variables) into PDF, and discusses when custom adaptation is required.

FreemarkerHTML to PDFJava
0 likes · 13 min read
How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 12, 2025 · Backend Development

Comprehensive Guide to Log Configuration and Performance Comparison of Major Java Logging Frameworks

The article explains why logging is essential for problem tracing, status monitoring, and security auditing, introduces Log4j, Log4j2, and Logback components and configuration files, demonstrates usage with Maven dependencies and code snippets, evaluates their synchronous and asynchronous performance, and offers practical recommendations for production environments.

java logginglog4jlog4j2
0 likes · 28 min read
Comprehensive Guide to Log Configuration and Performance Comparison of Major Java Logging Frameworks
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 10, 2025 · Information Security

Is Your Site Vulnerable? Understanding the Common SQL Injection Attack

This article explains the fundamentals of SQL injection attacks, demonstrates step‑by‑step exploitation using the DVWA platform—including data extraction, login bypass, and injection point detection—and outlines practical prevention techniques such as input validation, regex filtering, and prepared statements.

DVWADatabaseMySQL
0 likes · 11 min read
Is Your Site Vulnerable? Understanding the Common SQL Injection Attack