原文链接:https://blog.wanvale.com/archives/98/
报错信息
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "User{id=12, username='12', sex='m'}", template might not exist or might not be accessible by any of the configured Template Resolvers
错误原因
字面意思,模板输入异常。
出错原因
忘记加@ResponseBody了
解决方法
在方法体前加@ResponseBody
#(喜极而泣)