01 2021 档案
摘要:List<类> list; 代表某集合 //返回 对象集合以类属性一升序排序 list.stream().sorted(Comparator.comparing(类::属性一)); //返回 对象集合以类属性一降序排序 注意两种写法 list.stream().sorted(Comparator.c
阅读全文
摘要:返回结果类似如下: { "Message": "SUCCESS", "Code": "200", "Data": null } 解决办法1 只在返回的实体类的get方法上添加@JsonProperty这个注解,例如 @JsonProperty("Code") private Integer code
阅读全文
摘要:第一种方法: $sudo su #echo "209.85.228.22 dl-ssl.google.com">> /etc/hosts #echo "209.85.228.22 dl.google.com">>/etc/hosts 查看添加成功 #cat /etc/hosts 第二种方法: # 修
阅读全文