Thymeleaf 3.0 默认不包含布局模块

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


nz.net.ultraq.thymeleaf
thymeleaf-layout-dialect

你可能感兴趣的:(Thymeleaf 3.0 默认不包含布局模块)