Wesley13 Wesley13
3年前
java使用jeids实现redis2.6的list操作(2)
代码:            https://github.com/viakiba/redis importorg.junit.Test;importredis.clients.jedis.BinaryClient.LIST_POSITION;importredis.clients.jedis.Jedis
Wesley13 Wesley13
3年前
java16
1:List的子类(掌握)(1)List的子类特点ArrayList:底层数据结构是数组,查询快,增删慢线程不安全,效率高Vector:底层数据结构是数组,查询快,增删慢线程安全,效率低LinkedList:底层数据结构是链表,查询慢,增删快线程不安全,效率高(2)ArrayListA:
Stella981 Stella981
3年前
Kubernetes之Deployment滚动升级和回滚
  k8s版本1.14查看Deployment的升级历史_List1_xx@xx:~/xx$kubectlrollouthistorydeploymentxxxxnxxxdeployment.extensions/xxxREVISIONCHANGECA
Wesley13 Wesley13
3年前
servlet
思路分析:1\.根据需求抽象出业务对象User{usrename;password;}ShoppingCarItem{product;num;}ShoppingCar{List<ShoppingCarItem}2\.写Servlet处理请求...
Easter79 Easter79
3年前
SpringMVC开发中遇到的异常1:No primary or default constructor found for interface java.util.List
SpringMVC开发中遇到的异常1:Noprimaryordefaultconstructorfoundforinterfacejava.util.List参考文章:(1)SpringMVC开发中遇到的异常1:Noprimaryordefaultconstructorfoundforinterfacejav
Stella981 Stella981
3年前
Python —— 函数高级特性(切片、迭代、列表生成式、生成器、迭代器)
一、切片(Slice)    在很多编程语言中,针对字符串提供了很多截取函数(i.e. substring),目的就是对字符串切片。python中没有针对字符串的截取函数,需要通过“切片”来完成。  取一个list或tuple的部分元素可以用切片   格式: 假定list或tuple组成的元素组
Wesley13 Wesley13
3年前
JAVA 数组遍历
一、遍历List1、增强for循环StringarrnewString{"xx","yy","zz"};for(Stringelt:arr){System.out.println(elt);}2、下标的方式String
Wesley13 Wesley13
3年前
Java 8 – Filter a null value from a Stream
Java8–FilteranullvaluefromaStreampackagecom.mkyong.java8;importjava.util.List;importjava.util.stream.Collectors;importjava.util.stream.Stream;publiccla
Stella981 Stella981
3年前
At least one JAR was scanned for TLDs yet conta...
At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. 
Stella981 Stella981
3年前
Android 采用DOM解析XML内容 【学习记录】
importjava.io.InputStream;importjava.util.ArrayList;importjava.util.List;importjavax.xml.parsers.DocumentBuilder;importjavax.xml.parsers.DocumentBuilderFac