接口报错400,Referrer Policy: no-referrer-when-downgrade

接口报错400,Referrer Policy: no-referrer-when-downgrade_第1张图片
找了下原因
接口报错400,Referrer Policy: no-referrer-when-downgrade_第2张图片
{“timestamp”:“2020-06-15 14:47:50”,“status”:400,“error”:“Bad Request”,“exception”:“org.springframework.validation.BindException”,“errors”:[{“codes”:[“typeMismatch.question.questionScore”,“typeMismatch.questionScore”,“typeMismatch.int”,“typeMismatch”],“arguments”:[{“codes”:[“question.questionScore”,“questionScore”],“arguments”:null,“defaultMessage”:“questionScore”,“code”:“questionScore”}],“defaultMessage”:“Failed to convert property value of type ‘java.lang.String’ to required type ‘int’ for property ‘questionScore’; nested exception is java.lang.NumberFormatException: For input string: “””,“objectName”:“question”,“field”:“questionScore”,“rejectedValue”:"",“bindingFailure”:true,“code”:“typeMismatch”}],“message”:“Validation failed for object=‘question’. Error count: 1”,“path”:"/question/addQuestion"}

翻译过来
接口报错400,Referrer Policy: no-referrer-when-downgrade_第3张图片
我设置的是string类型,数据库中定义的是int类型,所以报错喽

你可能感兴趣的:(vue)