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.
【Java8新特性_尚硅谷】P1_P5
2.
SpringSecurity 基礎應用
3.
SlowFast Networks for Video Recognition
4.
074-enable-right-click
5.
WindowFocusListener窗體焦點監聽器
6.
DNS部署(二)DNS的解析(正向、反向、雙向、郵件解析及域名轉換)
7.
Java基礎(十九)集合(1)集合中主要接口和實現類
8.
瀏覽器工作原理學習筆記
9.
chrome瀏覽器構架學習筆記
10.
eclipse引用sun.misc開頭的類
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<