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.
gitlab新建分支後,android studio拿不到
2.
Android Wi-Fi 連接/斷開時間
3.
今日頭條面試題+答案,花點時間看看!
4.
小程序時間組件的開發
5.
小程序學習系列一
6.
[微信小程序] 微信小程序學習(一)——起步
7.
硬件
8.
C3盒模型以及他出現的必要性和圓角邊框/前端三
9.
DELL戴爾筆記本關閉觸摸板觸控板WIN10
10.
Java的long和double類型的賦值操作爲什麼不是原子性的?
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<