我的答案可能不能解决所有人的问题,首先在后台打印一下数据,确认不是后台的错误,前端页面的错误一般是由于私有属性造成的,解决办法就是调用get方法,如:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Apr 08 10:47:03 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
Error
resolving template "books_upload", template might not exist or might
not be accessible by any of the configured Template Resolvers
同问????