springBoot使用thymeleaf之常识问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41650354/article/details/85227408

springboot已经自动配置thymeleaf ,需要按以上格式进行,页面后面是.html格式  页面必须放在路径classpath:/templates/  目录下面

html 页面要加入导入thymeleaf语法提示 <html lang="en" xmlns:th="http://www.thymeleaf.org">

html中thymeleaf 的基本语法 与 jsp  对比

猜你喜欢

转载自blog.csdn.net/qq_41650354/article/details/85227408