这个错误是因为java获取页面数据的时候,id值可能为空,而int的默认值为0,若想能够接受NULL的值,将int换成integer即可解决。
报错:Optional int parameter ‘id‘ is present but cannot be translated into a null value due to being 错误
最新推荐文章于 2023-04-07 09:00:00 发布
这个错误是因为java获取页面数据的时候,id值可能为空,而int的默认值为0,若想能够接受NULL的值,将int换成integer即可解决。