# 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**: 31 - **Forks**: 5 - **Created**: 2024-01-25 - **Last Updated**: 2026-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: 微服务, 轻量级, java工具, 轻量级框架, 企业级应用系统 ## README
## Introduction Wiki-Framework is a modular foundational framework and utility library for Java backend development, built on JDK 17, Spring Boot 3.3.x, and Spring Cloud 2023.0.x. It packages commonly used capabilities in daily business development into independently importable Maven modules, covering utilities, unified responses, exception handling, data sources, caching, message queues, Socket, object storage, authorization, security, API documentation, code generation, and more. The project aims to reduce repetitive boilerplate code so developers can set up enterprise application infrastructure faster, while keeping a clear source structure and Chinese comments in the codebase for easy customization, learning, and on-demand trimming. ## Highlights - **Modular design**: Split into modules such as `wiki-util`, `wiki-core`, `wiki-datasource`, `wiki-redis`, `wiki-security`, `wiki-minio`, and `wiki-swagger`. Import individually or use the aggregated `wiki-all` package. - **Modern stack**: Supports JDK 17+, built on Spring Boot 3.3.x and Spring Cloud 2023.0.x, suitable for greenfield infrastructure projects. - **Comprehensive utilities**: String, date, collection, file, I/O, encryption, JSON, HTTP, JWT, Excel, QR code, email, push notifications, logging, pagination, database access, and more. - **Enterprise building blocks**: Multi-data-source support, read/write splitting, Redis, Kafka, MQTT, RocketMQ, Socket, WebSocket, SSE, MinIO, Spring Security, OAuth2, config center, and related integrations. - **Code generation & API docs**: Database reverse-engineering for code generation, plus OpenAPI/Swagger documentation support. - **Open-source friendly**: Licensed under Mulan Permissive Software License 2.0. Issues, PRs, and real-world feedback are welcome. ## Use Cases - Bootstrapping Spring Boot / Spring Cloud projects. - Shared infrastructure for admin panels, back-office systems, and microservices. - Java projects that need unified utilities, response wrappers, exception handling, logging, authentication, data sources, caching, and messaging. - Learning how enterprise Java components are split, packaged, and organized in a Maven multi-module project. ## Tech Stack | Category | Technology | | --- | --- | | Runtime | JDK 17+ | | Framework | Spring Boot 3.3.x, Spring Cloud 2023.0.x | | Data Access | MyBatis, Spring Data JPA, MongoDB, PageHelper, Druid | | Cache | Redis | | Message Queue | Kafka, MQTT, RocketMQ | | Communication | Socket, WebSocket, SSE | | Object Storage | MinIO, Alibaba Cloud OSS | | Security | Spring Security, OAuth2, JWT | | Documentation | OpenAPI / Swagger / Knife4j | | Build | Maven | ## Modules | Module | Description | | --- | --- | | `wiki-pom` | Centralized dependency version management, used as BOM/parent POM. | | `wiki-all` | Aggregated package of common modules for quick adoption of Wiki-Framework. | | `wiki-all-jpa` | Aggregated package for JPA-based projects. | | `wiki-core` | Core startup config, unified responses, request/response handling, global exceptions, and other basics. | | `wiki-util` | Utilities for string, date, collection, file, I/O, encryption, HTTP, JSON, JWT, Excel, email, push, and more. | | `wiki-constant` | Shared constants, enums, cache keys, error codes, return codes, etc. | | `wiki-entity` | Base entities, pagination params/results, unified response objects, etc. | | `datasource/wiki-datasource` | MyBatis data source, pagination plugin, and database operation utilities. | | `datasource/wiki-datasource-jpa` | JPA data source and Repository utilities. | | `datasource/wiki-datasource-mongodb` | MongoDB data access utilities. | | `datasource/wiki-datasource-rw` | MyBatis read/write splitting utilities. | | `cache/wiki-redis` | Redis connection, caching, distributed locks, pub/sub, etc. | | `queue/wiki-kafka` | Kafka producer utilities. | | `queue/wiki-kafka-client` | Kafka consumer utilities. | | `queue/wiki-mqtt` | MQTT producer utilities. | | `queue/wiki-mqtt-client` | MQTT consumer utilities. | | `queue/wiki-rocket` | RocketMQ producer utilities. | | `queue/wiki-rocket-client` | RocketMQ consumer utilities. | | `socket/wiki-socket` | Socket server utilities. | | `socket/wiki-socket-client` | Socket client utilities. | | `socket/wiki-sse` | SSE server utilities. | | `socket/wiki-web-socket` | WebSocket server utilities. | | `socket/wiki-web-socket-client` | WebSocket client utilities. | | `wiki-log` | AOP-based logging, parameter injection, and related capabilities. | | `wiki-minio` | MinIO file upload, download, delete, existence check, listing, etc. | | `security/wiki-security` | Spring Security authentication, authorization, captcha, token, QR login, etc. | | `security/wiki-oauth2` | OAuth2-related utilities. | | `config/wiki-config` | Spring Cloud Config reading utilities. | | `config/wiki-nacos-config` | Nacos config reading utilities. | | `config/wiki-nacos-cloud-config` | Nacos and Spring Cloud config integration. | | `wiki-message` | Messaging utilities such as Alibaba Cloud SMS. | | `wiki-cloud` | Spring Cloud utilities for service discovery, calls, config, circuit breaking, rate limiting, and fallback. | | `wiki-center` | Code generation from MySQL, PostgreSQL, and other databases for entities, controllers, services, mappers, repositories, etc. | | `licenses/wiki-license` | License generation and verification utilities. | | `licenses/wiki-license-core` | License core capabilities. | | `licenses/wiki-license-verify` | License verification capabilities. | | `wiki-swagger` | OpenAPI/Swagger documentation generation utilities. | | `wiki-ai` | AI-related extension module. | ## Quick Start ### Requirements - JDK 17 or later - Maven 3.8 or later > Starting from `1.0.8`, Wiki-Framework only supports JDK 17+. If your project still uses JDK 8, please use version `1.0.7` or earlier. Older versions are no longer maintained. ### Maven To import common modules at once, use `wiki-all`: ```xml