当前位置:Gxlcms > 数据库问题 > SpringBoot+Thyemleaf报错Template might not exist or might not be accessible

SpringBoot+Thyemleaf报错Template might not exist or might not be accessible

时间:2021-07-01 10:21:17 帮助过:3人阅读

出现这个错误大致从以下几个方面排除

1、application.yml的配置问题

技术图片

2、pom.xml导入,需导入以下依赖

<dependency>
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
    <groupId>org.thymeleaf</groupId>
    <artifactId>thymeleaf-spring5</artifactId>
    <version>3.0.9.RELEASE</version>
</dependency>
<dependency>
    <groupId>net.sourceforge.nekohtml</groupId>
    <artifactId>nekohtml</artifactId>
    <version>1.9.22</version>
</dependency>

3、上述配置之后,执行maven clean -------maven install。

SpringBoot+Thyemleaf报错Template might not exist or might not be accessible

标签:ica   info   mamicode   执行   for   group   配置   color   alt   

人气教程排行