Spring Boot 2.1.7.RELEASE Reference Guide
659.21 KB
697 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
英语 | .epub | 3 |
摘要 | ||
The document provides a comprehensive reference guide for Spring Boot 2.1.7.RELEASE, detailing its system requirements, build tools, and supported servlet containers. It outlines the necessary Java and Spring Framework versions for compatibility and explains the dependency management through Maven and Gradle. Additionally, it covers various starter dependencies and their configurations, offering insights into application development and deployment. | ||
AI总结 | ||
《Spring Boot 2.1.7.RELEASE 参考指南》主要内容总结如下:
---
### 1. **文档概述**
- Spring Boot 参考指南提供了详细的文档,涵盖从入门到高级主题的全部内容。
- 文档格式包括 HTML、PDF 和 EPUB,最新版本可从 [docs.spring.io](https://docs.spring.io/spring-boot/docs/current/reference) 获取。
---
### 2. **系统要求**
- **Java 版本**: 需要 Java 8,且支持到 Java 12。
- **Spring Framework 版本**: 需要 5.1.9.RELEASE 或更高版本。
- **构建工具**: 支持 Maven 3.3+ 和 Gradle 4.4+。
- **Servlet 容器**: 支持嵌入式容器(如 Tomcat 9.0、Jetty 9.4、Undertow 2.0)和符合 Servlet 3.1+ 标准的容器。
---
### 3. **开发入门**
- **快速上手**: 通过 Spring Initializr 快速创建项目,或使用 Maven/Gradle 手动配置。
- **开发流程**:
1. 创建 Maven 依赖(`pom.xml` 或 `build.gradle`)。
2. 添加基础依赖(如 `spring-boot-starter-web`)。
3. 编写代码(注解 `@RestController`、`@EnableAutoConfiguration` 等)。
4. 运行应用并生成可执行 JAR 包。
---
### 4. **核心依赖与配置**
- **Spring Boot Starter 依赖**: 提供了多种功能模块(如数据访问、Web 开发、安全等),例如:
- `spring-boot-starter-data-jpa`(JPA 数据访问)
- `spring-boot-starter-web`(Web 开发)
- `spring-boot-starter-security`(安全配置)
- **Maven 配置**:
-继承 `spring-boot-starter-parent` 以获取默认配置(如 Java 8 编译、依赖版本管理等)。
- 示例配置:
```
|
P1
P2
P3
P4
P5
P6
P7
下载文档到本地,方便使用
- 可预览页数已用完,剩余
690 页请下载阅读 -
文档评分