exception processing, template error resolving template
错误信息:Exception processing template “/view/df”: Error resolving template “/view/df”, template might not exist or might not be accessible by any of the configured Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template “/view/df”, template might not exist or might not be accessible by any of the configured Template Resolvers
错误描述:再开发环境下,访问不出错。打成jar包后运行出错,经过一番查看,最终找到原因。
特别说明该项目我是用的是Thymeleaf的th标签。
原因:在控制器中返回的视图路径如下,return “/view/df” 修改前,修改为return “view/df” 即可,然后再重新打包访问,问题解决了。该问题是由于路径的问题导致的。
参考博客:
https://blog.csdn.net/Lin_xiaofeng/article/details/79122053
https://blog.csdn.net/PubliclyAccessible/article/details/79726360
https://blog.csdn.net/u012613251/article/details/80304722
exception processing, template error resolving template的更多相关文章
- org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/ template might not exist or might not be accessible by any of the configured
		
异常现象:在本地打包部署完全没有问题,资源文件也都可以映射上,但是打包成jar包部署到服务器上时,就一直报异常,异常信息如下: 严重: Servlet.service() for servlet [d ...
 - Error resolving template,template might not exist or might not be accessible by any of the configured Template Resolvers
		
template might not exist or might not be accessible by any of the configured Template Resolvers at o ...
 - 异常:Error resolving template "xxx", template might not exist or might not be accessible...解决办法
		
在开发环境下正常,但使用jar运行时,报错Error resolving template template might not exist or might not be accessible,意思 ...
 - Error resolving template [xxx], template might not exist or might not be exist
		
Springboot+thymeleaf+mybatis 抛Error resolving template [xxx], template might not exist的异常 原因是我们在pom. ...
 - Error resolving template: template might not exist or might not be accessible是一句缩水报错?
		
一 thymeleaf在开发的时候本地调试正常,但是在测试环境打成jar包就报这个错误了. 二 template might not exist or might not be accessible ...
 - org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/home/index2", template might not exist or might not be accessible by any of the configured Template Resolvers
		
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/home/index2", ...
 - org.thymeleaf.exceptions.TemplateInputException: Error resolving template 报错
		
org.thymeleaf.exceptions.TemplateInputException: Error resolving template报错 遇到二次,第一次是刚刚学的时候,都是一个原因,而 ...
 - 报错Error resolving template template might not exist or might not be accessible解决方案
		
"C:\Program Files\Java\jdk1.8.0_144\bin\java" "-javaagent:D:\IntelliJ IDEA Community ...
 - Thymeleaf 模板使用 Error resolving template "/home", template might not exist or might not be accessible by any of the
		
和属性文件中thymeleaf模板的配置相关 1.配置信息 spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix= ...
 
随机推荐
- jQuery选择器(基础及应用)
			
jQuery选择器 jQuery的核心思想就是:选取元素,对其操作. jquery选择器对开发有以下优势:写法简洁,不需要考虑主流浏览器是否支持某些选择器(jquery支持css1-css3),不需要 ...
 - python Snakes 库安装
			
SNAKES : A A Flexible High-Level Petri Nets Library SNAKES是python一个可以用于Petri网的库 python2安装SNAKES库: 在 ...
 - python 查找字符串中字母的个数
			
2017.6.17 更新:好像知道错在哪里了.以第一个为例,输入应该是“AHHaaBBa”,因为直接输入AHHaaBBa时,系统不知到这是一个变量还是字符串,所以必须输入的时候申明定义.既然这样的话, ...
 - JavaScript 函数的4种调用方法
			
JavaScript 函数有 4 种调用方式. 每种方式的不同方式在于 this 的初始化. 作为一个函数调用 function myFunction(a, b) { return a * b; } ...
 - jQuery中的100个技巧(译)
			
1.当document文档就绪时执行JavaScript代码. 我们为什么使用jQuery库呢?原因之一就在于我们可以使jQuery代码在各种不同的浏览器和存在bug的浏览器上完美运行. <sc ...
 - windows下如何下载并安装Python
			
1.打开Python官网,点download中的windows(或者打开网址https://www.python.org/downloads/windows/) 2.下载exe后缀的可执行文件,根据自 ...
 - AbstractFactory抽象工厂模式(创建型模式)
			
1.new 的问题 常见的对象创建方法: //创建一个Road对象 Road road=new Road(); new的问题:实现依赖,不能应对具体实例的变化 怎么理解上面这句话呢? 可以这样理解:我 ...
 - 【jQuery源码】preFilter
			
preFilter: { "ATTR": function( match ) { //属性名解码 match[1] = match[1].replace( runescape, f ...
 - mongodb  limit()和skip()
			
MongoDB Limit() 方法 如果你需要在MongoDB中读取指定数量的数据记录,可以使用MongoDB的Limit方法,limit()方法接受一个数字参数,该参数指定从MongoDB中读取的 ...
 - C语言中的条件编译
			
通常情况,我们想让程序选择性地执行,多会使用分支语句,比如if-else 或者switch-case 等.但有些时候,可能在程序的运行过程中,某个分支根本不会执行. 比如我们要写一个跨平台项目,要求项 ...