# wiki-framework **Repository Path**: cdkjframework/wiki-framework ## Basic Information - **Project Name**: wiki-framework - **Description**: Wiki Framework(维基框架)依托Spring Boot,Spring Cloud 面向全场景的 Java 企业级应用开发框架:高效、开放、安全、微服务!同时兼容 java8(需在1.0.7之前版本), java17及以上。 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: https://framewiki.com/wiki-framework.html - **GVP Project**: No ## Statistics - **Stars**: 27 - **Forks**: 5 - **Created**: 2024-01-25 - **Last Updated**: 2026-04-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: 微服务, 轻量级, java工具, 轻量级框架, 企业级应用系统 ## README
## Introduction Wiki-Framework is built for developers. It is a feature-rich and easy-to-use Java toolkit designed to help developers quickly build projects by providing convenient utilities. These encapsulated utilities cover operations such as string handling, numbers, collections, encoding, dates, files, I/O, encryption, database JDBC, JSON, HTTP, TCP clients ( WebSocket, Socket), and more, meeting various development needs in different scenarios. ### Wiki Philosophy `Wiki-Framework` serves both as a toolkit and a knowledge base. We never claim all code to be original; most utility classes are **curated and adapted** from existing sources. Therefore: - You can introduce it as a dependency, or directly **copy and modify** the code **without requiring any attribution**. - We strive to provide **detailed Chinese comments** in the source code to create good learning conditions, making it accessible to everyone. - We welcome **open-source contributions**. If you find **Wiki-Framework** useful, please give us a **star**! Thank you! --- ## Software Architecture Based on Spring Boot 3.3.5 and Spring Cloud 4.1.4, with integrations including MyBatis, JPA, PageHelper (pagination plugin), and Alibaba database drivers. Includes the following tools: JWT, Redis, easyPoi (Excel import/export), MongoDB (Spring Boot-based), WebSocket ( Netty-based), Chinese-to-Pinyin conversion, Swagger2 (API management), Alibaba Cloud OSS, Alibaba Cloud SMS, fasterxml.jackson, ZXing, MQTTv3, Kryo, CXF Web Services, and encryption/decryption utilities, GZIP compression, HTTP clients, etc. ## Included Components A foundational Java utility library that encapsulates file, stream, encryption/decryption, encoding conversion, regex, threading, XML, and other JDK methods into various Utils classes. Also provides the following components: | Module | Description | |-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | wiki-pom | Core packaging module controlling dependency versions across all project components. | | wiki-all | Core Starter Module,The core starter module provides essential packages required for project startup. To integrate it:Dependency Import: Include the wiki-all module in your project.Annotation Activation: Add @EnableAutoWiki to your application's main startup class.| | wiki-core | Core utilities module providing essential project startup configurations, common request/response interceptors (with AES encryption/decryption), global exception handling. | | wiki-util | Utility library providing HTTP/HTTPS client (HttpUrlConnection-based), script execution (e.g., JavaScript), JSON implementation (Alibaba FastJSON), Excel utilities (EasyExcel), JWT implementation, exception utilities, file I/O, encryption (MD5, Base64, AES, DES, RSA, Unicode, SM), log output (Log4j-based), app push notifications (Uni, Tencent, JPush), email, common regex, hex conversion, object copying, time utilities, deserialization, string utilities. | | wiki-constant | Constants module providing common enums and constants (e.g., caching, logging, error codes, cache keys, regex patterns). | | wiki-entity | Entities module providing base classes (BaseVo, BaseDto, BaseEntity), pagination parameters/results, result wrappers, error codes. | | wiki-datasource | Database utilities (MyBatis) module: connection pooling, data sources, pagination plugin, DB operation utilities. | | wiki-datasource-jpa | Database utilities (JPA) module: connection pooling, data sources, pagination plugin, DB operation utilities, Repository interfaces. | | wiki-datasource-mongodb | Database utilities (MongoDB) module: connection pooling, data sources, pagination plugin, DB operation utilities, Repository interfaces. | | wiki-datasource-rw | Database utilities (MyBatis) module focused on **read-write separation**. | | wiki-redis | Redis utilities module: connection pooling, Redis operations (caching, distributed locks, pub/sub, key expiration subscriptions). | | wiki-kafka | Kafka producer module: connection pooling, message sending utilities. | | wiki-kafka-client | Kafka consumer module: connection pooling, message listening utilities. | | wiki-mqtt | MQTT producer module: connection pooling, message sending utilities. | | wiki-mqtt-client | MQTT consumer module: connection pooling, message listening utilities. | | wiki-socket | Socket server module: connection pooling, message handling utilities (send/receive). | | wiki-socket-client | Socket client module: connection pooling, message handling utilities (send/receive). | | wiki-sse | SSE server module: connection pooling, message handling utilities (send/receive). | | wiki-web-socket | WebSocket server module: connection pooling, message handling utilities (send/receive). | | wiki-web-socket-client | WebSocket client module: connection pooling, message handling utilities (send/receive). | | wiki-log | Logging module: AOP-based logging for controllers, mappers, repositories with configurable parameter injection. | | wiki-minio | MinIO utilities module: connection pooling, file operations (upload/download/delete/exists/list). | | wiki-security | Spring Security module: authentication, authorization, permissions, logout, captcha, token refresh, QR code login. | | wiki-config | Spring Cloud Config client module: automatic configuration loading. | | wiki-message | SMS module: Alibaba Cloud SMS utilities (note: voice calls deprecated). | | wiki-cloud | Spring Cloud utilities module: service discovery, invocation, configuration, circuit breaking, rate limiting, fallback. | | wiki-center | Project center module: code generation from databases (MySQL/PostgreSQL) for entities (Vo/Dto/Entity), controllers, services, repositories (JPA), mappers, XML. | | wiki-license | License management utilities: generation and validation. | | wiki-license-core | License core module. | | wiki-license-verify | License verification module. | | wiki-swagger | Swagger module: OpenAPI documentation generation. | | wiki-web | Functional testing module. | You can selectively include modules as needed (recommended to use `wiki-pom` for dependency version management). Alternatively, include all modules via `wiki-all`. ## Installation Documentation [English Documentation](./README.en.md) [中文文档](./README.md) [备用中文文档](https://framewiki.com/wiki-framework) [API Reference](https://framewiki.com/wiki-framework/apidocs/) ## Installation Guide No installation required. Use directly via dependency management. #### Usage Instructions 1. Deploy to a Maven repository 2. Add dependency ###### Maven Add to your top-level POM: ```xml