致访客
感谢各位一年多的陪伴,因内容调整,本站将于近日迁移到新域名并不再更新主要内容。
特此通知。
感谢各位一年多的陪伴,因内容调整,本站将于近日迁移到新域名并不再更新主要内容。
特此通知。
报错信息
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
(喜极而泣)