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.
微軟準備淘汰 SHA-1
2.
Windows Server 2019 Update 2010,20H2
3.
Jmeter+Selenium結合使用(完整篇)
4.
windows服務基礎
5.
mysql 查看線程及kill線程
6.
DevExpresss LookUpEdit詳解
7.
GitLab簡單配置SSHKey與計算機建立連接
8.
桶排序(BucketSort)
9.
桶排序(BucketSort)
10.
C++ 桶排序(BucketSort)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<