springboot-starter
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "springboot-starter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-001b955f1f184b9b41cf9f1a3f48af837f6d2e2708f76ae5df7e00c973929b71. Verify the upstream source and version against https://skillhub.cn/skills/user_cd1ab923/s2026717 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A Spring Boot quick-start and development assistant. Provides standard project templates, RESTful API development best practices, project initialization scripts, and development guides. Suitable for creating Spring Boot web projects from scratch, quickly building RESTful services, learning standard project structure, and extending business features from templates. Targeted at Java beginners and developers who need to rapidly build backend services.
Introduction source: third_party · user_cd1ab923 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Software, accounts and paid services
- JDK 17+ Maven 3.6+
- Testing
- Not tested
Browse files
Frontmatter
name: springboot-starter
description: Spring Boot 项目快速启动与开发助手。提供标准的 Spring Boot 项目模板、RESTful API 开发最佳实践、项目初始化脚本和开发指南。使用场景:(1) 从零创建 Spring Boot Web 项目,(2) 快速搭建 RESTful API 服务,(3) 学习 Spring Boot 标准项目结构,(4) 基于模板扩展业务功能。适合 Java 初学者和需要快速搭建后端服务的开发者。Spring Boot Starter Skill
概述
本 Skill 提供标准化的 Spring Boot 项目模板和开发指南,帮助你快速创建和开发 Spring Boot Web 应用。
快速开始
1. 使用项目模板
项目模板位于 assets/springboot-template/,包含完整的 Spring Boot Web 项目结构:
springboot-template/
├── pom.xml # Maven 配置文件
├── src/
│ ├── main/
│ │ ├── java/com/example/demo/
│ │ │ ├── DemoApplication.java # 启动类
│ │ │ ├── controller/ # 控制层
│ │ │ │ └── UserController.java # 用户REST接口
│ │ │ ├── service/ # 服务层
│ │ │ │ └── UserService.java # 用户业务逻辑
│ │ │ └── model/ # 模型层
│ │ │ └── User.java # 用户实体类
│ │ └── resources/
│ │ └── application.properties # 配置文件
│ └── test/ # 测试目录
2. 项目初始化
使用初始化脚本创建新项目:
bash scripts/init_springboot_project.sh <项目名> <包名> <输出目录>
示例:
bash scripts/init_springboot_project.sh myapp com.mycompany.app ./
3. 手动创建项目
如果需要手动搭建,按照以下步骤:
- 复制
assets/springboot-template/到目标位置 - 修改
pom.xml中的 groupId、artifactId、name - 修改包名(将 com.example.demo 改为你的包名)
- 修改
application.properties中的应用名称和端口
核心功能说明
RESTful API 接口
模板内置了完整的用户管理 REST API:
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/hello | 问候接口 |
| GET | /api/users | 获取所有用户 |
| GET | /api/users/{id} | 根据ID获取用户 |
| POST | /api/users | 创建新用户 |
| PUT | /api/users/{id} | 更新用户信息 |
| DELETE | /api/users/{id} | 删除用户 |
三层架构
模板遵循标准的三层架构模式:
- Controller 层:接收 HTTP 请求,参数校验,返回响应
- Service 层:业务逻辑处理
- Model 层:数据实体定义
开发指南
详细开发指南请参考 references/springboot-dev-guide.md,包含:
- 环境配置要求
- 项目启动方式
- 常用注解说明
- 扩展开发建议
- 常见问题解答
扩展开发建议
添加新的业务模块
- 在
model包下创建实体类 - 在
service包下创建服务类(添加 @Service 注解) - 在
controller包下创建控制器类(添加 @RestController 注解) - 使用 @Autowired 注入 Service
添加数据库支持
在 pom.xml 中添加对应依赖:
- MySQL:
mysql-connector-java+spring-boot-starter-data-jpa - MyBatis:
mybatis-spring-boot-starter
添加接口文档
添加 SpringDoc OpenAPI 依赖:
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.2.0</version>
</dependency>
运行项目
前置要求
- JDK 17+
- Maven 3.6+
启动命令
# 进入项目目录
cd springboot-template
# 编译项目
mvn clean package
# 运行项目
mvn spring-boot:run
# 或者运行打包后的jar
java -jar target/springboot-demo-0.0.1-SNAPSHOT.jar
验证启动
访问 http://localhost:8080/api/hello 应该返回问候信息。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供标准化的 Spring Boot 项目模板和开发指南
- 面向 Java 初学者和需要快速搭建后端服务的开发者
- 包含 RESTful API 开发最佳实践和项目初始化脚本
Highlights
- 明确列出 4 个具体使用场景
- 触发词覆盖合理,边界清晰
- description 内容完整且位置正确
Highlights
- 文档结构清晰,包含多个功能章节
- 有详细的步骤说明和代码示例
- frontmatter 完整,单文件长度合理
Highlights
- 提供了项目模板路径和初始化脚本使用说明
- 运行命令和验证步骤清晰明确
- 覆盖了主要的使用场景和扩展开发建议
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Invoke commands or scripts
Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.
Mentioned in main document · lines 41, 46
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- localhost
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
JDK 17+ Maven 3.6+
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.