org.thymeleaf.exceptions.TemplateInputException: Error resolving template解决方案
除了没有添加ResponseBody或者@RestController或者前面有斜杠,
我的问题出现在html页面中:
添加了如下
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block th:include="include :: header('服务商账户列表')" />
<th:block th:include="include :: layout-latest-css" />
<th:block th:include="include :: ztree-css" />
<meta charset="UTF-8">
<title>Title</title>
</head>
去掉后代码
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
之后就可以运行成功!
只是自己遇到的问题,相信自己写的后台,准没错