
thymeleaf
lyatf
人丑多读书,只记录平常用到又容易忘记的代码
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Thymeleaf的常用属性
th:id 替换id th:id=" ${**.id}"th:text 文本替换 th:text="${text}"th:utext 支持html的文本替换 th:utext="${htmlcontent}"th:object 替换对象 th:object="${Bean}" 一般跟th:file一起使用th:value...原创 2018-06-06 15:10:33 · 400 阅读 · 0 评论 -
template might not exist or might not be accessible by any of the configured Template Resolvers
出现这个error,检查html页面是否引用模板 <html xmlns:th="http://www.thymeleaf.org">检查目录下模板文件是否存在 src/main/resources/templates[html存放路径(默认寻址路径][我用的springmvc,所以在applocation文件里]spring.thymeleaf.p...原创 2018-09-07 15:27:18 · 789 阅读 · 0 评论