首页 > 其他分享 >org.thymeleaf.exceptions.TemplateInputException:模板错误报错问题

org.thymeleaf.exceptions.TemplateInputException:模板错误报错问题

时间:2024-09-21 09:02:33浏览次数:1  
标签:10.1 java jar thymeleaf 报错 6.1 exceptions org

报这种模板错误就是没加注解@RestController

2024-09-21T08:44:40.252+08:00 ERROR 13668 --- [nio-3000-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [lost/findall], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause

org.thymeleaf.exceptions.TemplateInputException: Error resolving template [lost/findall], 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.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1077) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.thymeleaf.spring6.view.ThymeleafView.renderFragment(ThymeleafView.java:372) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.thymeleaf.spring6.view.ThymeleafView.render(ThymeleafView.java:192) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1431) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1167) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1106) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:979) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885) ~[spring-webmvc-6.1.11.jar:6.1.11]
    at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) ~[tomcat-embed-websocket-10.1.26.jar:10.1.26]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) ~[tomcat-embed-core-10.1.26.jar:10.1.26]
    at

 



标签:10.1,java,jar,thymeleaf,报错,6.1,exceptions,org
From: https://www.cnblogs.com/bzsc/p/18423553

相关文章

  • vscode远程连接报错
    在使用vscode进行远程连接时出现无法与服务器连接的报错,在远程连接脚本运行无误(如图)在vscode上设置好主机名、用户名以及端口号在远程服务器上方输入连接指令在连接时选择“Linux”,却在输入密码前显示无法连接到服务器。而此时windows终端脚本运行出现乱码,考虑是脚本文......
  • node.js版本过高vue项目启动报错
    node.js版本过高会导致vue项目启动报错。要解决此问题,请将node.js版本降级到与vue项目兼容的版本:1.检查项目要求确定所需版本。2.查看当前版本运行node-v。3.使用nvm降级:nvminstall[版本]。4.使用npx运行npm命令:npx-pnode@[版本]npmrun[命令]。5.更新......
  • ResizeObserver loop completed with undelivered notifications. 报错
    js使用ResizeObserver时报错,代码实现逻辑如下:functionobserveVideoDom(width:number,height:number){constvideoDom=document.getElementById('videoDom')if(!videoDom)returnif(window.ResizeObserver){//ResizeObserver在iOS13.4及......
  • 视频存储EasyCVR视频监控汇聚管理平台设备录像下载报错404是什么原因?
    EasyCVR视频监控汇聚管理平台是一款针对大中型项目设计的跨区域网络化视频监控集中管理平台。该平台不仅具备视频资源管理、设备管理、用户管理、运维管理和安全管理等功能,还支持多种主流标准协议,如GB28181、RTSP/Onvif、RTMP、部标JT808、GA/T1400协议等,以及支持厂家的私有协议......
  • 云服务器异常报错类型及处理方法
     在现代互联网时代,云服务器已经成为了企业和个人用户的首选解决方案。一方面,云服务器提供了灵活、可扩展的计算资源,另一方面,其治理和维护也相对复杂。当云服务器出现异常报错时,如何有效地解决问题显得尤为重要。本文将就云服务器主机异常报错的常见类型、原因分析以及解决方案进行......
  • 如何解决帝国CMS刷新栏目报错?
    解决帝国CMS刷新栏目报错的问题,可以遵循以下步骤进行排查和解决:了解帝国CMS栏目刷新原理:刷新栏目页通常涉及从数据库中获取数据,并将其转换为静态HTML页面或动态生成页面。这一过程依赖于正确的数据库连接、有效的模板文件以及适当的服务器配置。确认错误类型:查看错误......
  • 帝国CMS报错Deprecated: Function get_magic_quotes
    当使用帝国CMS时遇到“Deprecated:Functionget_magic_quotes”这类报错,通常是因为PHP版本升级后,某些旧的函数被弃用。get_magic_quotes_gpc() 函数在PHP5.4中已被弃用,并在PHP7.0中被移除。原因分析PHP版本升级:如果你的服务器从较旧的PHP版本(如5.3或更低)升级到了PHP7.......
  • R语言安装graph包报错:package graph is not available for this version of R
    我的R语言版本是4.0.2,安装graph包的时候出现如下报错尝试过换源都无法下载后来尝试在google想搜索graph包的官网,搜出来:https://cran.r-project.org/web/packages/graph/index.html 应该是graph包被CRAN更新了,现在已不在使用根据它的提示,进入链接:https://www.bioconductor.or......
  • 帝国CMS报错:您的PHP配置文件php.ini配置有问题,怎么解决
    帝国CMS报错“您的PHP配置文件php.ini配置有问题”时,通常意味着PHP的某些配置项不符合帝国CMS的要求。以下是一些可能的解决方案:检查short_open_tag配置:如果你在使用较新版本的PHP(如5.4及以上),short_open_tag配置项默认是关闭的。帝国CMS可能依赖于<?这样的短标签格式。你需要......
  • C# 报错:System.Threading.ThreadStateException:”当前线程不在单线程单元中,因此无法
    原因分析System.Threading.ThreadStateException 错误通常发生在尝试在非UI线程中创建或访问 ActiveX 控件(如COM 组件)时。在 Windows Forms应用程序中,所有 UI操作必须在创建该UI 的线程(通常是主线程)上执行。解决方案要解决这个问题,你需要确保在 UI 线程上创建......