1、创建一个thymeleaf的springboot应用
2、勾选springweb和thymeleaf
3、pom中重要的两个starter依赖:
4、创建一个controller
5、在/src/main/resources/templates目录下创建一个hello.html文件,其使用了Thymeleaf模板语法
6、启动程序,打开浏览器访问http://localhost:8080/sayHello?who=Messi
1、创建一个thymeleaf的springboot应用
2、勾选springweb和thymeleaf
3、pom中重要的两个starter依赖:
4、创建一个controller
5、在/src/main/resources/templates目录下创建一个hello.html文件,其使用了Thymeleaf模板语法
6、启动程序,打开浏览器访问http://localhost:8080/sayHello?who=Messi