JavaShuo
欄目
標籤
Null return value from advice does not match primitive return type for
時間 2021-01-16
標籤
動態代理
简体版
原文
原文鏈接
報錯信息 報錯原因:我是代碼裏用了異步線程,AOP做了一層切面處理,底層是通過jdk動態代理實現。 不管是cglib代理還是jdk代理,你的返回值必須是包裝類,如下圖我返回的是基本類型,所以就會報錯。 把int 改成 Integer就可以解決問題了。 這時候有人可能不理解。爲什麼一定要Integer不能用Int類型 查了一下,如果代理的方法返回值類型爲void,就return null;否則就re
>>阅读原文<<
相關文章
1.
Null return value from advice does not match primitive return type for
2.
attempted to return null from a method with a primitive return type (int)
3.
[mybatis]............attempted to return null from a method with a primitive return type (int).
4.
RoleMapper.deleteRole attempted to return null from a method with a primitive return type (int).
5.
(MyBatis)insertStudent attempted to return null from a method with a primitive return type (int).
6.
java.lang.IllegalArgumentException: No converter found for return value of type
7.
No converter found for return value of type: class java.util.ArrayList
8.
(HttpMessageNotWritableException ) No converter found for return value of type xxxx
9.
No converter found for return value of type: class...
10.
No converter found for return value of type: class io.renren.utils.R
更多相關文章...
•
SQL NOT NULL 約束
-
SQL 教程
•
MySQL非空約束(NOT NULL)
-
MySQL教程
•
爲了進字節跳動,我精選了29道Java經典算法題,帶詳細講解
•
Java 8 Stream 教程
相關標籤/搜索
return
try..return..catch..return..finally...return
shellcode+return
finally+return
advice
primitive
match
stoppropagation&preventdefault&return
throw&arguments&rest&return
null
Redis教程
PHP 7 新特性
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
吳恩達深度學習--神經網絡的優化(1)
2.
FL Studio鋼琴卷軸之工具菜單的Riff命令
3.
RON
4.
中小企業適合引入OA辦公系統嗎?
5.
我的開源的MVC 的Unity 架構
6.
Ubuntu18 安裝 vscode
7.
MATLAB2018a安裝教程
8.
Vue之v-model原理
9.
【深度學習】深度學習之道:如何選擇深度學習算法架構
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
Null return value from advice does not match primitive return type for
2.
attempted to return null from a method with a primitive return type (int)
3.
[mybatis]............attempted to return null from a method with a primitive return type (int).
4.
RoleMapper.deleteRole attempted to return null from a method with a primitive return type (int).
5.
(MyBatis)insertStudent attempted to return null from a method with a primitive return type (int).
6.
java.lang.IllegalArgumentException: No converter found for return value of type
7.
No converter found for return value of type: class java.util.ArrayList
8.
(HttpMessageNotWritableException ) No converter found for return value of type xxxx
9.
No converter found for return value of type: class...
10.
No converter found for return value of type: class io.renren.utils.R
>>更多相關文章<<