thymeleaf:页面无法访问问题

 Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this a

1. 检查配置文件,无误

2. @...mapping , 无误

3. 检查页面的 th 命名空间,无误

4. 后边终于在检查页面标签时发现这个家伙

<div class="title" th:text="">我的第一篇博客</div>

  标签里用了 th: 前缀,后面 "" 里必须要跟 ${},@{},*{},#{} 去取值,不能解析 "" 空的引号。

posted @ 2022-12-20 21:32  兑生  阅读(80)  评论(0)    收藏  举报  来源
Live2D