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.
.Net core webapi2.1生成exe可執行文件
2.
查看dll信息工具-oleview
3.
c++初學者
4.
VM下載及安裝
5.
win10下如何安裝.NetFrame框架
6.
WIN10 安裝
7.
JAVA的環境配置
8.
idea全局配置maven
9.
vue項目啓動
10.
SVN使用-Can't remove directoryXXXX,目錄不是空的,項目報錯,有紅叉
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<