打赏
摘要: 1.1高并发压力测试 软件的压力测试是一种保证软件质量的行为。在金融、电商等领域应用比较普遍。通俗的讲,压力测试即在一定的软件条件下,模拟大批量用户对软件系统进行高负荷测试。需要注意的事,压力测试的牡蛎不是为了让软件变得完美无瑕,而是通过压力测试,测试出软件的负载极限,进而重新优化应用性能或在实际的 阅读全文
posted @ 2020-05-11 15:55 吃瓜大湿熊 阅读(3433) 评论(0) 推荐(0)
摘要: 1、二维码生成二维码生成用到了Zxing 包,gradle 中引用 compile 'com.google.zxing:core:3.2.1' 生成带有logo的二维码 public class QrCodeUtil{ /** * 黑点颜色 */ private static final int B 阅读全文
posted @ 2020-05-11 13:17 吃瓜大湿熊 阅读(636) 评论(0) 推荐(0)
摘要: private Bitmap compoundBitmap(Bitmap bitmapOne,Bitmap bitmapTwo){ Bitmap newBitmap = null; newBitmap=bitmapOne.copy(Bitmap.Config.ARGB_8888, true); // 阅读全文
posted @ 2020-05-11 13:11 吃瓜大湿熊 阅读(865) 评论(0) 推荐(0)
摘要: 由于在Android 7.0 采用了StrictMode API政策禁,其中有一条限制就是对目录访问的限制。 这项变更意味着我们无法通过File API访问手机存储上的数据,也就是说,给其他应用传递 file:// URI 类型的Uri,可能会导致接受者无法访问该路径,并且会会触发 FileUriE 阅读全文
posted @ 2020-05-08 13:21 吃瓜大湿熊 阅读(812) 评论(0) 推荐(0)
摘要: List<Student> testList = new ArrayList<Student>(); List<Student> repeatList = new ArrayList<Student>();//用于存放重复的元素的list Map<String, Integer> map = new 阅读全文
posted @ 2020-05-08 10:52 吃瓜大湿熊 阅读(9190) 评论(0) 推荐(1)
摘要: Stream 中文称为 “流”,通过将集合转换为这么一种叫做 “流” 的元素序列,通过声明性方式,能够对集合中的每个元素进行一系列并行或串行的流水线操作。 函数式编程带来的好处尤为明显。这种代码更多地表达了业务逻辑的意图,而不是它的实现机制。易读的代码也易于维护、更可靠、更不容易出错。 面对一对多结 阅读全文
posted @ 2020-05-08 10:36 吃瓜大湿熊 阅读(367) 评论(0) 推荐(0)
摘要: List<User> userList=userList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(User :: ge 阅读全文
posted @ 2020-05-08 10:22 吃瓜大湿熊 阅读(3619) 评论(0) 推荐(0)
摘要: switch (receive.getConditionWhere()) { case "0": break; case "1": //新品优先 Collections.sort(likeFloorGoods, new Comparator<ReturnGoodsStockBean>(){ @Ove 阅读全文
posted @ 2020-05-08 10:18 吃瓜大湿熊 阅读(2719) 评论(0) 推荐(0)
摘要: list.stream().mapToDouble(User::getAge).sum()//和 list.stream().mapToDouble(User::getAge).max()//最大 list.stream().mapToDouble(User::getAge).min()//最小 l 阅读全文
posted @ 2020-05-08 10:16 吃瓜大湿熊 阅读(5480) 评论(0) 推荐(1)
摘要: 集成步骤 Java 项目配置 dependencies { compile 'com.cuieney:rxpay-api:2.2.3' annotationProcessor 'com.cuieney:rxpay-compiler:2.1.1' //如果你项目配置了kotlin请忽略下面这行的配置 阅读全文
posted @ 2020-05-07 14:30 吃瓜大湿熊 阅读(987) 评论(0) 推荐(0)