首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >org.thymeleaf.exceptions.TemplateInputException: Error resolving template 解决

org.thymeleaf.exceptions.TemplateInputException: Error resolving template 解决

作者头像
tanoak
发布2018-06-06 11:47:28
6.3K0
发布2018-06-06 11:47:28
举报
文章被收录于专栏:java闲聊java闲聊

首先展示一下这个Error 描述, 大致意思是没有找到我所配置的template的位置,然而我找了N遍

ERROR 20044 --- [nio-8080-exec-7] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "demo", template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause

后面重现创建一个工程项目对比发现,thtmeleaf的配置中有一个坑,这里记录下

spring:
 thymeleaf: prefix: /templates/
    suffix: .html

然而出现了

Fail

注释后

succeed

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.03.11 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档