JavaShuo
栏目
标签
Optional int parameter 'version' is present but cannot be translated into a null value due to being
时间 2019-12-05
标签
optional
int
parameter
version
present
translated
null
value
繁體版
原文
原文链接
这种状况通常是这种情景下形成的:首次加载这个方法时,是没有参数的值带进来的,后面再进入该方法的时候参数就有值带进来了,String类型的没什么问题,可是int类型就有问题了,由于参数若是没有值的状况下是默认赋null,int类型的参数确定不能定义null因此致使报错了;spa 解决办法: 方法一:定义成Integer类型,Integer version; 方法二:给参数设置默认值, @Reques
>>阅读原文<<
相关文章
1.
Optional int parameter 'rank' is present but cannot be translated into a null value due to being dec
2.
Optional int parameter ‘safetyLevel‘ is present but cannot be translated into a null value
3.
Optional long parameter 'userId' is present but cannot be translated into a null value due to being
4.
Optional int parameter ‘limit‘ is present but cannot be translated into a null value due to错误解决方法
5.
java.lang.IllegalStateException: Optional long parameter 'adminId' is present but cannot be translat
6.
2021-01-26nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to
7.
‘DebugConfig‘ only refers to a type, but is being used as a value here.
8.
String、int类型转换
9.
How to be a …
10.
【问题记录】【Unity打包Android】ArgumentNullException: Value cannot be null. Parameter name: path1
更多相关文章...
•
ADO Parameter 对象
-
ADO 教程
•
Docker version 命令
-
Docker命令大全
•
为了进字节跳动,我精选了29道Java经典算法题,带详细讲解
•
Java 8 Stream 教程
相关标签/搜索
version
translated
optional
present
parameter
null
int
value
a'+'a
but'1.7
Redis教程
PHP 7 新特性
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
排序-堆排序(heapSort)
2.
堆排序(heapSort)
3.
堆排序(HEAPSORT)
4.
SafetyNet简要梳理
5.
中年转行,拥抱互联网(上)
6.
SourceInsight4.0鼠标单击变量 整个文件一样的关键字高亮
7.
游戏建模和室内设计那个未来更有前景?
8.
cloudlet_使用Search Cloudlet为您的搜索添加种类
9.
蓝海创意云丨这3条小建议让编剧大大提高工作效率!
10.
flash动画制作修改教程及超实用的小技巧分享,硕思闪客精灵
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Optional int parameter 'rank' is present but cannot be translated into a null value due to being dec
2.
Optional int parameter ‘safetyLevel‘ is present but cannot be translated into a null value
3.
Optional long parameter 'userId' is present but cannot be translated into a null value due to being
4.
Optional int parameter ‘limit‘ is present but cannot be translated into a null value due to错误解决方法
5.
java.lang.IllegalStateException: Optional long parameter 'adminId' is present but cannot be translat
6.
2021-01-26nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to
7.
‘DebugConfig‘ only refers to a type, but is being used as a value here.
8.
String、int类型转换
9.
How to be a …
10.
【问题记录】【Unity打包Android】ArgumentNullException: Value cannot be null. Parameter name: path1
>>更多相关文章<<