学习springMVC时遇到的第一个异常:TemplateInputException

学习springMVC时遇到的第一个异常:TemplateInputException,第1张

学习springMVC时遇到的第一个异常:TemplateInputException
《index.html》错误代码:


Title


首页

报异常:

[http-apr-8080-exec-7] DEBUG org.springframework.web.servlet.DispatcherServlet - Failed to complete request: org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "ServletContext resource [/WEB-INF/templates/index.html]" - line 2, col 1)

检查原因是HTML标签中少了一个右分号

正确代码




  
Title


首页

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5707592.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存