springboot项目请求异常: Failed to convert value of type ‘java.lang.String’ to required type ‘java.lang.Long’; nested exception is java.lang.NumberFormatException: For input string: “edit”]异常:
出现原因:
@PostMapping("/blog/edit")接口需要用post进行请求并传入Json数据。
解决: