解决Failed to convert value of type ‘java.lang.String‘ to required type ‘java.lang.Integer‘
项目:网上商城练习问题:使用postman测试接口报错:类型转换异常上代码: @GetMapping(value = "/search/{page}/{size}" ) public Result<PageInfo> findPage(@PathVariable(value = "page") int page, @PathVariable(value = "size") int size){改为: @GetMapping(value = "/search" )
原创
2021-11-01 11:39:56 ·
37207 阅读 ·
1 评论