原文:Optional int parameter 'id' is present but cannot be translated into a null value due to being declared as a primitive type.

报错内容如下 解决办法 将 int 改成 Integer。 Integer 是基本数据类型 int 的包装类。int 的初值为 ,Ingeter 的初值为 null。 一般情况下,尽量使用 Integer ,而不是 int。 ...

2020-06-28 09:53 0 742 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM