# GitRepository **Repository Path**: jbcode/GitRepository ## Basic Information - **Project Name**: GitRepository - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 68 - **Forks**: 41 - **Created**: 2020-04-29 - **Last Updated**: 2025-09-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Guo Xiuzhi's Open Source Technology Repository ## Preface As a developer with years of experience in the IT field, I deeply understand the importance of the collaborative spirit within the technical community—we often rely on solutions shared by others when facing challenges. However, if we only take without giving back, the technical ecosystem cannot be sustained. Therefore, I have open-sourced a collection of practical code snippets accumulated from my learning and work, hoping to provide useful references for fellow developers. For detailed technical explanations of these projects, please refer to my blog series: - [Jianshu Blog Column](https://www.jianshu.com/u/ea0462d5074c) - [Technical Articles Collection](https://t.cn/A6LgMb3H) ## Repository Overview This repository focuses on practical implementations of mainstream technologies in the Java ecosystem, including the following frameworks and accompanying example code: - **Microservices Core**: Spring Cloud, Spring Boot 3.4.0.RELEASE - **Data Storage**: MySQL, Redis, MongoDB - **Service Governance**: Nacos (registration & configuration center), Seata (distributed transactions), Sentinel (rate limiting, circuit breaking, and degradation) - **Gateway Components**: Spring Cloud Gateway (with practical examples including Nacos-based rule configuration, JWT authentication, rate limiting, and circuit breaking) - **Data Governance**: Sharding Sphere (read-write splitting, database/table sharding, data masking) ## Directory Structure and Code Description ### 1. `project1` Folder **Description**: Frontend code developed with Vue Native, supporting builds for H5, WeChat Mini Programs, and Alipay Mini Programs. [Code Details](https://user.qzone.qq.com/52382868/blog/1585976428) ### 2. `parent` Folder **Description**: A lightweight Spring Boot project template, suitable as a base framework for new projects to save initialization time. Includes: - Parent POM: Centralized dependency and version management for all submodules - Common submodule: Encapsulates utility classes and shared logic - API module: Exposes service interfaces and reuses common logic from the common module **Extended Reference**: Another similar project template repository [parent-starter Source Code](https://gitee.com/jbcode/parent-starter) (includes parent-starter parent project, common-starter submodule, and api-service module) [Template Usage Guide](https://user.qzone.qq.com/52382868/blog/1587194712) ### 3. `dataway` Folder **Description**: A lightweight API development framework that generates RESTful APIs and returns JSON data by configuring SQL in the backend—ideal for quickly implementing simple features. [Implementation Details](https://www.jianshu.com/p/23b32699e9fd) ### 4. `setup-init` Folder **Description**: Examples of resource initialization during the Spring Boot startup phase, demonstrating multiple approaches for reading startup arguments and initializing resources. [Startup Configuration Guide](https://www.jianshu.com/p/df5adffcdce0) ### 5. `vue-springboot` Folder **Description**: Backend service example for a simple Vue-based mini program (no database dependency, uses in-memory data simulation), integrated with: - HTTPS certificate configuration - DingTalk robot alerts (for system startup/shutdown notifications) [Feature Overview](https://user.qzone.qq.com/52382868/blog/1586267753) [DingTalk Alert Implementation](https://www.jianshu.com/p/e870b7cdb9ed) ### 6. `Flyway` Folder **Description**: Practical example of database version control using Flyway, integrated with Spring Boot to automate tracking and migration of database changes (supports SQL scripts or Java code for migration logic). [Integration Tutorial](https://www.jianshu.com/p/961b989d4f12) ### 7. `es-spring-data-jest` Folder **Description**: Example of using Spring Data Jest to interact with Elasticsearch, including: - Auto-configuration via `spring-boot-starter-data-jest` - Complete CRUD operations for Elasticsearch [Usage Guide](https://www.jianshu.com/p/f0515a754a05) ### 8. `mybatis-starter` Folder **Description**: Practice of integrating MyBatis with Spring Boot 2.x to access MySQL, using annotation-based development to simplify configuration. [Integration Tutorial](https://www.jianshu.com/p/84280101a99c) ### 9. `mybatis-plus-starter` Folder **Description**: Example usage of MyBatis-Plus, an enhanced tool that simplifies development and improves efficiency on top of MyBatis. [Feature Guide](https://www.jianshu.com/p/3eb1d9eefa27) ### 10. `mybatis-plus-multi-tenant` Folder **Description**: Example implementation of a multi-tenant (SaaS system) solution based on MyBatis-Plus. [Multi-tenancy Practice](https://www.jianshu.com/p/742f40eb9937) ### 11. `JPA` Folder **Description**: Series of JPA (Java Persistence API) practices, including: - Basic CRUD operations - Pagination and sorting - Logical deletion - Specifications for dynamic queries - ProGuard code obfuscation [Series Tutorial](https://www.jianshu.com/nb/45533284) ### 12. `JWT` Folder **Description**: Implementation of JWT (JSON Web Token) authentication and authorization, including: - Login flow to generate tokens - Frontend token storage using `localStorage` - Backend validation via the `Authorization` header [Authentication Principles](https://www.jianshu.com/p/161fbab47a49) ### 13. `Kaptcha` Folder **Description**: Example implementation of captcha generation and verification on web pages. [Captcha Tutorial](https://www.jianshu.com/p/78e4f1a53f25) ### 14. `Tomcat-websocket` Folder **Description**: Example of WebSocket real-time communication, supporting: - Server-to-client message pushing - One-to-one and one-to-many messaging [Implementation Details](https://www.jianshu.com/p/8c03bf4e9ac9) ### 15. `anti-reptile` Folder **Description**: Anti-crawler solution for Spring Boot, blocking crawlers based on IP and User-Agent rules, redirecting to a captcha page when rules are triggered. [Anti-crawling Strategy](https://www.jianshu.com/p/0cbdfdf806c4) ### 16. `async` Folder **Description**: Example of asynchronous multithreading programming in Spring Boot, including thread pool configuration and asynchronous task scheduling. [Asynchronous Practice](https://www.jianshu.com/p/7e1cadc2441a) ### 17. `RSA&AES` Folder **Description**: Practical example combining RSA (asymmetric encryption) and AES (symmetric encryption) to ensure data security. [Encryption Principles](https://www.jianshu.com/p/d5db48fe434b) ### 18. `redis-distributed-lock` Folder **Description**: Distributed lock implementation based on standalone Redis, addressing resource contention issues in distributed environments. [Lock Implementation Details](https://www.jianshu.com/p/5ee7f9207f30) ### 19. `Springboot-rocketmq` Folder **Description**: Practical example of integrating RocketMQ message queue with Spring Boot. [Integration Tutorial](https://www.jianshu.com/nb/47274371) ### 20. `Springboot-webflux` Folder **Description**: Getting-started example of the reactive programming framework WebFlux. ### 21. `MongoDB` Folder **Description**: Basic operation examples for MongoDB, a NoSQL database. ### 22. `pay_by_user-Java-URF-8` Folder **Description**: Sample code simulating a merchant submitting a payment request to Alipay. ### 23. `Apache-shiro` Folder **Description**: Practical use of the Apache Shiro security framework, including: - Authentication - Authorization - Encryption and session management [Security Framework Tutorial](https://www.jianshu.com/nb/47555718) ## Notes More technical practice examples will be continuously added. Stay tuned for updates to this repository.