1.新建项目:File--new ----project--spring  initializr---next---next----web(spring web)------Template Engines(Thymeleaf)  就此spring boot 项目新建完成.

spring boot项目搭建

spring boot项目搭建

spring boot项目搭建

然后点击运行application,即可以成功运行,但是我今天新建之后报错,原因是端口号占用了所以手动设置一下端口号.

spring boot项目搭建

 

这就运行可以了.

相关文章: