在SpringBoot中运行项目每一出错,但使用Jmeter压测大并发量下报错:
“org.springframework.web.bind.MissingServletRequestParameterException: Required long parameter ‘goodsId’ is not present" 如何解决?
给goodsId加上默认值,@RequestParam(“goodsId”) long goodsId 变为:@RequestParam(value="goodsId,defaultValue=“0”) long goodsId 即可
报错:“Required long parameter ‘goods‘ is not present“ 如何解决?
最新推荐文章于 2024-04-05 20:46:25 发布