今天前端提交数据的时候,不知道为啥报了415错误
jquery.js:4 POST http://localhost:8000/addTypeSubmit 415 (Unsupported Media Type)
HTTP Status 415 -
type Status report
message
description The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.
发现是因为加了@requestBody,去掉就没事,虽然不知道原理是啥