异常信息
1 | org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/search.html]" - line 481, col 96) |
异常截图
1 | 2020-04-14 19:52:29.046 ERROR 18892 --- [nio-9009-exec-1] org.thymeleaf.TemplateEngine : [THYMELEAF][http-nio-9009-exec-1] Exception processing template "search": An error happened during template parsing (template: "class path resource [templates/search.html]" - line 481, col 96) |
1 | 2020-04-14 19:52:29.052 ERROR 18892 --- [nio-9009-exec-1] 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: An error happened during template parsing (template: "class path resource [templates/search.html]" - line 481, col 96)] with root cause |
异常原因
1 | 页面(html文件)标签的属性被多次写入(Springboot整合Thymeleaf项目,未尝试过ssm项目能否出现该异常) |
异常展示(不仅限于展示属性)
解决方法
1 | 找到并删除同一标签下的重复属性 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 123!