type
status
date
slug
summary
tags
category
icon
😀
区分不同判空结果
 

一,字符串判空

isEmpty

观点2

 

二,集合判空

1,CollectionUtils.isEmpty(集合);
2,集合.size()==0

三,object判空

1,字符串,同上
2,其他类型,如Integer, object ==null;
3,entity或者dto类判空:

📎 参考文章

 
redis安装配置以及使用异步任务处理