# 未找到 ID 为 'org.springframework.boot' 的插件。请检查插件是否在 plugins 块中正确声明。

- **ID:** `java/gradle-missing-plugin-id`
- **领域:** java
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

未应用 Spring Boot 插件，或 plugins 块中缺少版本。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7+ | active | — | — |

## 解决方案

1. **Apply the Spring Boot plugin with a valid version** (95% 成功率)
   ```
   plugins { id 'org.springframework.boot' version '3.2.0' }
   ```
2. **Use the plugin management block to define the version centrally** (90% 成功率)
   ```
   pluginManagement { plugins { id 'org.springframework.boot' version '3.2.0' } }
   ```

## 无效尝试

- **Using the full class name instead of the plugin ID** — Gradle requires the plugin ID, not the class name. (90% 失败率)
- **Adding the plugin to buildscript dependencies without using the plugins block** — The plugins block is the recommended way; buildscript may not apply the plugin correctly. (80% 失败率)
