一,添加pom.xml文件依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>nz.net.ultraq.thymeleaf</groupId> <artifactId>thymeleaf-layout-dialect</artifactId> <version>2.4.1</version> </dependency...
使用spring boot整合Thymeleaf 在使用layout dialect时如下图报错 使用时必须配置Thymeleaf 的SpringTemplateEngine,要new的LayoutDialect对象在thymeleaf-layout-dialect-1.4.0.jar中,该jar使用的groovy语言编写的 就出现了如下错误,maven中已经有这些包了。这是什么错误呢?IDE的配置问题?
A dialect for Thymeleaf that lets you build layouts and reusable templates in order to improve code reuse - ultraq/thymeleaf-layout-dialect
一,添加pom.xml文件依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>nz.net.ultraq.thymeleaf</groupId> <artifactId>thymeleaf-layout-dialect</artifactId> <version>2.4.1</version> </dependency...