Spring Boot 集成 Thymeleaf
使用 idea 新建一个 demo 项目
pom.xml
在 templates 文件夹中 新增一个 index.html
controller 层
启动后,进行访问得到的效果
访问项目中的静态资源
使用 idea 新建一个 demo 项目
pom.xml
在 templates 文件夹中 新增一个 index.html
controller 层
启动后,进行访问得到的效果
访问项目中的静态资源