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.
部署Hadoop(3.3.0)僞分佈式集羣
2.
從0開始搭建hadoop僞分佈式集羣(三:Zookeeper)
3.
centos7 vmware 搭建集羣
4.
jsp的page指令
5.
Sql Server 2008R2 安裝教程
6.
python:模塊導入import問題總結
7.
Java控制修飾符,子類與父類,組合重載覆蓋等問題
8.
(實測)Discuz修改論壇最後發表的帖子的鏈接爲靜態地址
9.
java參數傳遞時,究竟傳遞的是什麼
10.
Linux---文件查看(4)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<