http 400报错

http 400报错---springmvc相关:

1.使用了json入参,传递给了对象,如果对象里的属性,如这里的Bonus是int类型,你传入了非int类型,这里就会报400

2.使用了@RequestBody,然而信息头ContentType是非application/json,如:application/x-www-form-urlencoded,也会报400

原文地址:https://www.cnblogs.com/zipon/p/7078278.html