美文网首页工作生活
Thymeleaf 3.0 默认不包含布局模块

Thymeleaf 3.0 默认不包含布局模块

作者: Quillagua | 来源:发表于2019-07-14 21:58 被阅读0次

Thymeleaf 3.0 默认不包含布局模块
问题:
启动项目的时候发现首页空白,查看后台也没有任何的报错信息
原因:
Spring Boot 2.0 中spring-boot-starter-thymeleaf 包默认并不包含布局模块,需要使用的时候单独添加。
解决方案:

<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
</dependency>

相关文章

网友评论

    本文标题:Thymeleaf 3.0 默认不包含布局模块

    本文链接:https://www.haomeiwen.com/subject/xierhctx.html