接口报错400,Referrer Policy: no-referrer-when-downgrade
找了下原因
接口报错400,Referrer Policy: no-referrer-when-downgrade
{“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
我设置的是string类型,数据库中定义的是int类型,所以报错喽

相关文章:

  • 2022-01-12
  • 2021-07-20
  • 2021-04-11
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2022-01-18
  • 2022-02-27
  • 2021-11-04
  • 2022-02-11
  • 2021-10-29
相关资源
相似解决方案