springboot前台传值给后端时,出现Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ n伪问题

springboot前台传值给后端时,出现Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ n伪问题
前提: 后端参数@requestbody注解加好了,类上@restcontroller加好了
前台api方法中data也加了。
出现原因: 在vue界面的js代码中,对象赋空值 用了字符串“ ”,简直哈皮。。

springboot前台传值给后端时,出现Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ n伪问题