首页 > 技术文章 > SpringBoot集成Thymeleaf时遇到的坑🕳

openmind-ink 2021-03-21 16:49 原文

问题概述

在SpringBoot集成Thymeleaf中出现视图名老是解析不成功!

2021-03-21 16:33:56.800 ERROR 20136 --- [p1178160997-278] org.thymeleaf.TemplateEngine : [THYMELEAF][qtp1178160997-278] Exception > processing template "index": Error resolving template [index], template might not exist or might not be accessible by any of the configured > > Template Resolvers

org.thymeleaf.exceptions.TemplateInputException: Error resolving template [index], template might not exist or might not be accessible by any > of the configured Template Resolvers
at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869) ~[thymeleaf-3.0.11.RELEASE.jar:3.0.11.RELEASE]

问题出现原因

pom.xml中标签的作用是: 管理读取的配置文件或文件夹中的文件简单的就是配置哪些文件在项目打包的时候该读哪些文件不该读哪些文件!

推荐阅读