在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 即可