org.thymeleaf.exceptions.TemplateInputException: Error resolving template...template might not exist
错误:
template might not exist or might not be accessible by any of the configured Template Resolvers
模板可能不存在,或者任何已配置的模板解析器都无法访问
原因:
这个问题时因为Controller返回给前台的数据不是json格式,前台无法处理,只需要在Controller的方法上加上@Responsebody注解即可。
================================================
可能有的小伙伴不是我这个错误,下面找了两篇文章,可以参考下:
================================================
@ResponseBody
将java对象转换为json格式的数据,一般是在异步获取数据的时候使用(ajax)。