Update README.md
This commit is contained in:
parent
ba3e36dca9
commit
41c639a079
@ -1,17 +1,18 @@
|
||||
# Spring-Boot 基础
|
||||
|
||||
<nav>
|
||||
<a href="#一项目说明">一、项目说明</a><br/>
|
||||
<a href="#11-项目结构">1.1 项目结构</a><br/>
|
||||
<a href="#12-基本依赖">1.2 基本依赖</a><br/>
|
||||
<a href="#二主启动类">二、主启动类</a><br/>
|
||||
<a href="#三开箱即用">三、开箱即用</a><br/>
|
||||
<a href="#四模板引擎">四、模板引擎</a><br/>
|
||||
<a href="#41-freemarker">4.1 freemarker</a><br/>
|
||||
<a href="#42-thymeleaf">4.2 thymeleaf</a><br/>
|
||||
<a href="#43-文档说明">4.3 文档说明</a><br/>
|
||||
</nav>
|
||||
|
||||
|
||||
<nav>
|
||||
<a href="#一项目说明">一、项目说明</a><br/>
|
||||
<a href="#11-项目结构">1.1 项目结构</a><br/>
|
||||
<a href="#12-基本依赖">1.2 基本依赖</a><br/>
|
||||
<a href="#二主启动类">二、主启动类</a><br/>
|
||||
<a href="#三开箱即用">三、开箱即用</a><br/>
|
||||
<a href="#四模板引擎">四、模板引擎</a><br/>
|
||||
<a href="#41-freemarker">4.1 freemarker</a><br/>
|
||||
<a href="#42-thymeleaf">4.2 thymeleaf</a><br/>
|
||||
<a href="#43-文档说明">4.3 文档说明</a><br/>
|
||||
</nav>
|
||||
|
||||
## 一、项目说明
|
||||
|
||||
### 1.1 项目结构
|
||||
@ -21,6 +22,7 @@
|
||||
3. Spring Boot 2.x 默认不支持 Jsp ,需要额外的配置,关于使用 jsp 的整合可以参考 [spring-boot-jsp](https://github.com/heibaiying/spring-samples-for-all/tree/master/spring-boot/spring-boot-jsp) 项目。
|
||||
|
||||
<div align="center"> <img src="https://github.com/heibaiying/spring-samples-for-all/blob/master/pictures/spring-boot-base.png"/> </div>
|
||||
|
||||
### 1.2 基本依赖
|
||||
|
||||
导入相关的 starter (启动器):
|
||||
@ -92,6 +94,7 @@
|
||||
+ Spring Boot 项目默认继承自 spring-boot-starter-parent,而 spring-boot-starter-parent 则继承自 spring-boot-dependencies,spring-boot-dependencies 中定义了关于 spring boot 依赖的各种 jar 包的版本,它是 Spring Boot 的版本管理中心。
|
||||
|
||||
<div align="center"> <img src="https://github.com/heibaiying/spring-samples-for-all/blob/master/pictures/spring-boot-dependencies.png"/> </div>
|
||||
|
||||
+ 关于Spring Boot 2.x 官方支持的所有 starter 可以参见官方文档:[Table 13.1. Spring Boot application starters](https://docs.spring.io/spring-boot/docs/2.1.1.RELEASE/reference/htmlsingle/#using-boot-starter)
|
||||
|
||||
|
||||
@ -247,4 +250,4 @@ public class ThymeleafController {
|
||||
关于这两种模板引擎的语法可以参考其官方文档:
|
||||
|
||||
- **freemarker**:提供了完善的中文文档,地址为: http://freemarker.foofun.cn/ 。
|
||||
- **thymeleaf**:官方英文文档地址:[thymeleaf 3.0.11RELEASE](https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.pdf) 。我在本仓库中上传了一份 [thymeleaf 中文文档(gangzi828(刘明刚 译)](https://github.com/heibaiying/spring-samples-for-all/tree/master/referenced%20documents),翻译的版本为 3.0.5RELEASE。
|
||||
- **thymeleaf**:官方英文文档地址:[thymeleaf 3.0.11RELEASE](https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.pdf) 。我在本仓库中上传了一份 [thymeleaf 中文文档(gangzi828(刘明刚 译)](https://github.com/heibaiying/spring-samples-for-all/tree/master/referenced%20documents),翻译的版本为 3.0.5RELEASE。
|
||||
|
Loading…
x
Reference in New Issue
Block a user