执行 ## ........(int id); 报出以下错误。 Optional int parameter 'id' is present but cannot be translated into a null value due to being 这个错误是因为java获取页面数据的时候,id值可能为空,而int的默认值为0,若想能够接受NULL的值,将int换成integer即可解决。