<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
```上面两个是SpringBoot依赖
在maven项目中导入那两个依赖就可以了
```bash
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.9.BUILD-SNAPSHOT</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
SpringBoot跳转方式
String 返回视图名,Model存储数据,
ModelAndView
Map
thylemeaf有他自己的语法表达式
网上搜索thymleaf有很多
推荐一个教程网址:
https://www.hangge.com/blog/cache/detail_2454.html
还有How2站长网站都是不错的学习网站