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.
Appium入門
2.
Spring WebFlux 源碼分析(2)-Netty 服務器啓動服務流程 --TBD
3.
wxpython入門第六步(高級組件)
4.
CentOS7.5安裝SVN和可視化管理工具iF.SVNAdmin
5.
jedis 3.0.1中JedisPoolConfig對象缺少setMaxIdle、setMaxWaitMillis等方法,問題記錄
6.
一步一圖一代碼,一定要讓你真正徹底明白紅黑樹
7.
2018-04-12—(重點)源碼角度分析Handler運行原理
8.
Spring AOP源碼詳細解析
9.
Spring Cloud(1)
10.
python簡單爬去油價信息發送到公衆號
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<