根据你的业务场景,选择最合适的 Think 框架
| 你的场景 | 推荐框架 | 语言 / 技术栈 | 一句话特点 |
|---|---|---|---|
| 快速搭建 Python Web 后端 / API 服务 | ThinkPython | Python 3.8+ / FastAPI | 自动路由、三层架构、开箱即用 |
| 单体企业级后台管理系统、中台服务 | ThinkBoot | Java 17 / Spring Boot 3.2.5 | 模块化按需加载、代码生成、企业级安全 |
| 分布式微服务、大型集群架构 | ThinkBootCloud | Java 17 / Spring Cloud 2023.0.1 | Nacos + Gateway + Sentinel 全家桶 |
| Python 接入 AI 大模型、构建 Agent 应用 | ThinkAi | Python 3.9+ | 12 种模型统一接口,Agent / RAG / MCP 内置 |
| Java 项目集成 AI 大模型能力 | ThinkAi4j | Java 17 / Spring Boot 3 | @AiAgent 注解装配,10 种模型开箱即用 |
开始之前,请确认本地已安装对应运行环境
| 框架 | 运行环境 | 构建工具 |
|---|---|---|
| ThinkPython | Python 3.8+ | pip |
| ThinkBoot | JDK 17+ | Maven 3.6+ |
| ThinkBootCloud | JDK 17+ | Maven 3.6+ / Nacos 2.x |
| ThinkAi | Python 3.9+ | pip |
| ThinkAi4j | JDK 17+ | Maven 3.6+ |
基于 FastAPI 的 Python Web 框架 · 完整文档 →
# 克隆框架仓库(或直接下载模板)
git clone https://github.com/hongxinge/ThinkPython.git my-app
cd my-app
# 安装依赖
pip install -r requirements.txt# 启动(支持热重载)
uvicorn main:app --reload
# 或使用 Python 入口
python main.py启动成功后访问 http://127.0.0.1:8000/docs 查看自动生成的接口文档,/health 为内置健康检查接口。
Spring Boot 3 快速开发框架 · 完整文档 →
<parent>
<groupId>com.thinkboot</groupId>
<artifactId>think-boot</artifactId>
<version>1.0.0</version>
</parent><dependencies>
<!-- Web + 认证 + MyBatis-Plus 按需引入 -->
<dependency>
<groupId>com.thinkboot</groupId>
<artifactId>think-boot-starter-web</artifactId>
</dependency>
</dependencies>@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}Spring Cloud 微服务框架 · 完整文档 →
<parent>
<groupId>com.thinkboot</groupId>
<artifactId>think-boot-cloud</artifactId>
<version>1.0.0</version>
</parent># Windows 单机启动
startup.cmd -m standalone
# Docker 启动
docker run -d --name nacos -p 8848:8848 nacos/nacos-serverspring:
application:
name: my-service
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848Python AI 大模型集成框架 · 完整文档 →
pip install thinkai-framework # 当前版本 0.7.1import thinkai
chat = thinkai.Chat(provider="deepseek", api_key="你的Key")
print(chat.ask("用一句话介绍你自己"))Ollama / OpenAI / DeepSeek / 通义千问 / 智谱GLM / 百度文心 / 腾讯混元 / 豆包 / Kimi / MiniMax / Claude / Gemini,零 Web 框架依赖,同步与异步双模式。
Java AI 大模型开发框架 · 完整文档 →
<dependency>
<groupId>com.hongxinge</groupId>
<artifactId>think-ai4j-spring-boot-starter</artifactId>
<version>1.0.2</version>
</dependency>think:
ai:
provider: deepseek
api-key: 你的Key
model: deepseek-chat@Autowired
private Chat chat;
String answer = chat.ask("用 Java 写一个快速排序");