java 嵌套json如何转成list集合 10C

#嵌套json
jsonstr="{
"grade":"一班",
"studentnum":"3",
"student":[{
"xh":"0313001",
"name":"zhangsan",
"chengji": [{"ceyan":"one","yuwen":"71","shuxue":"72","yingyu":"73"},{"ceyan":"two","yuwen":"76","shuxue":"77","yingyu":"78"}],
"xh":"0313002",
"name":"lisi",
"chengji":[{"ceyan":"one","yuwen":"81","shuxue":"82","yingyu":"83"},{"ceyan":"one","yuwen":"86","shuxue":"87","yingyu":"88"}],
"xh":"0313003",
"name":"wangswu",
"chengji":[{"ceyan":"one","yuwen":"91","shuxue":"92","yingyu":"93"},{"ceyan":"one","yuwen":"96","shuxue":"97","yingyu":"98"}]
}]
}"

#定义的JavaBean实体类
public class JsonRootBean {

private String grade;
private String studentnum;
private List<Student> student;
public void setGrade(String grade) {
     this.grade = grade;
 }
 public String getGrade() {
     return grade;
 }

public void setStudentnum(String studentnum) {
     this.studentnum = studentnum;
 }
 public String getStudentnum() {
     return studentnum;
 }

public void setStudent(List<Student> student) {
     this.student = student;
 }
 public List<Student> getStudent() {
     return student;
 }

}

public class Student {

private String xh;
private String name;
private List<Chengji> chengji;
public void setXh(String xh) {
     this.xh = xh;
 }
 public String getXh() {
     return xh;
 }

public void setName(String name) {
     this.name = name;
 }
 public String getName() {
     return name;
 }

public void setChengji(List<Chengji> chengji) {
     this.chengji = chengji;
 }
 public List<Chengji> getChengji() {
     return chengji;
 }

}

public class Chengji {

private String cyss;
private String yuwen;
private String shuxue;
private String yingyu;
public void setCyss(String cyss) {
     this.cyss = cyss;
 }
 public String getCyss() {
     return cyss;
 }

public void setYuwen(String yuwen) {
     this.yuwen = yuwen;
 }
 public String getYuwen() {
     return yuwen;
 }

public void setShuxue(String shuxue) {
     this.shuxue = shuxue;
 }
 public String getShuxue() {
     return shuxue;
 }

public void setYingyu(String yingyu) {
     this.yingyu = yingyu;
 }
 public String getYingyu() {
     return yingyu;
 }

}

#该如何转换啊?

11个回答

引入json jar包,
JSON.parseArray() 方法

String jsonString = "";//你的json 字符串
 ist<User> userList = new ArrayList<>();
 userList = JSON.parseArray(jsonString, User.class) ;

转用python import json 直接解决

使用这个类就可以啊net.sf.json.JSONObject

 @Test
    public void toBean() {
        Chengji c1 = new Chengji();
        c1.setCyss("one");
        c1.setShuxue("72");
        c1.setYingyu("73");
        c1.setYuwen("91");
        Student stu = new Student();
        List<Chengji> list = new ArrayList<>();
        list.add(c1);
        stu.setChengji(list);
        List<Student> students = new ArrayList<>();
        students.add(stu);
        JsonRootBean j1 = new JsonRootBean();
        j1.setGrade("一班");
        j1.setStudent(students);
        j1.setStudentnum("3");
        JSONObject jsonObject = JSONObject.fromObject(j1);
        String str = jsonObject.toString();     
        System.out.println(str);
        String jsonString = "{\"student\":[{\"xh\":\"\",\"name\":\"\",\"chengji\":[{\"yingyu\":\"73\",\"yuwen\":\"91\",\"shuxue\":\"72\",\"cyss\":\"one\"}]}],\"grade\":\"一班\",\"studentnum\":\"3\"}";
        JSONObject jObject = JSONObject.fromObject(jsonString);
        //JSONObject jObject = JSONObject.fromObject(str);
        JsonRootBean jsonRootBean = (JsonRootBean)JSONObject.toBean(jObject,JsonRootBean.class);
        System.out.println(jsonRootBean);
    }

结果:
{"student":[{"xh":"","name":"","chengji":[{"yingyu":"73","yuwen":"91","shuxue":"72","cyss":"one"}]}],"grade":"一班","studentnum":"3"}
JsonRootBean [grade=一班, studentnum=3, student=[net.sf.ezmorph.bean.MorphDynaBean@d2cc05a[
{xh=, name=, chengji=[net.sf.ezmorph.bean.MorphDynaBean@4f933fd1[
{yingyu=73, yuwen=91, shuxue=72, cyss=one}
]]}
]]]

baidu_39234208
baidu_39234208 我是想生成这样的关系表对应的list,方便list直接插入数据库: 表1:gradeid grade studentnum 表2:gradeid xh name studentid 表3:studentid ceyan yuwen shuxue yingyu
接近 2 年之前 回复

我是想生成这样的关系表对应的list,方便list直接插入数据库:
表1:gradeid grade studentnum
表2:gradeid xh name studentid

表3:studentid ceyan yuwen shuxue yingyu

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
//一句代码搞定
JsonRootBean jsonRootBean = JSON.toJavaObject(JSONObject.parseObject(jsonstr), JsonRootBean .class);

maven引入依赖包:

com.alibaba
fastJson
1.2.17

import com.google.gson.Gson
Gson gson = new Gson();
List<类名> list = gson.fromJson(orgsx,new TypeToken>() {}.getType());

Gson gson = new Gson();
List<类名> list = gson.fromJson(json, new TypeToken>() { }.getType());

尖括号发不了 后面是new TypeToken《List《类名》》(){ }.getType());

直接在你的项目中添加Gson依赖就可以了,Gson最基本的操作都可以解决,https://blog.csdn.net/adventer/article/details/79068498

共11条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
JAVA 集合转JSON 嵌套循环

是一对多的数据结构,一个栏目对应多个文章 ``` Category: List<Article> articleList; Article: String categoryId; Category category; ``` 业务: ``` foreach(Category item:categoryList){ item.setArticleList(articleService.getListByCategoryId(item.id)); } ``` 使用的是fastjson 然后将JSON.toJSONString(categoryList); 就会报嵌套循环的问题。 我试了一下,即使categoryList 里面单个实体里面的articleList的size是0,依然会报这个错。 请教大家一下,谢谢!

JAVA 对象中包含了JSON集合 怎么把JSON转换成集合

请求回来的数据是JSONArray格式的,但是转换成集合时出现了错误,其中paymethod是集合转换的JSONArray ![图片说明](https://img-ask.csdn.net/upload/201807/07/1530933487_662663.png) 请问我改怎么解决这个问题

如何将json字符串包含多个list集合嵌套加到实体对象中?

类一: public class DriverPointResult{ public List<Text> basicInfo; public List<IllegalItem> illegalInfo; public List<IllegalItem> illegalNoPaymentBeforeClearPoint; ....get set 方法 } 类二: public class Text{ :wink: private String content; private List<Text> subInfo; private String title; ....get set 方法 } 类三: public class IllegalItem { public Double amount; public String dealTime; public String illegalAction; public String illegalAddress; public int number; public Boolean payed; public String point; ....get set 方法 } 如下相当于json字符串: String resptransport = "[{'basicInfo':[{'content':'content1','subInfo':[{'content':'content11','subInfo':'','title':'title11'},{'content':'content12','subInfo':'','title':'title12'}],'title':'title1'}],'illegalInfo':[{'amount':'amount','dealTime':'dealTime','illegalAction':'illegalAction','illegalAddress':'illegalAddress','number':'number','payed':'payed','point':'point'}],'illegalNoPaymentBeforeClearPoint':[{'amount':'amount','dealTime':'dealTime','illegalAction':'illegalAction','illegalAddress':'illegalAddress','number':'number','payed':'payed','point':'point'}]}]"; 请求高人相助!!!需要要得到一个DriverPointResult实体类

后台返回list中嵌套list封装到json中怎么在html页面中显示出来

SSM整合,模型类中关联两个对象,将查询到的结果封装到json中,如何在html页面显示数据 ![图片说明](https://img-ask.csdn.net/upload/202003/08/1583645266_968338.jpg) ![图片说明](https://img-ask.csdn.net/upload/202003/08/1583645625_287199.jpg)![图片说明](https://img-ask.csdn.net/upload/202003/08/1583645654_623849.jpg)![图片说明](https://img-ask.csdn.net/upload/202003/08/1583645665_504247.jpg)![图片说明](https://img-ask.csdn.net/upload/202003/08/1583645676_527722.jpg)

java怎么遍历json取出需要的内容

http://www.scnewair.cn:3389/publish/getAllCity24HRealTimeAQIC 这个URL中是个嵌套的json数组。 想通过这个URL来遍历json,只要timePoint:1484542800000部分内容,其他部分不要,代码应该怎么写,求老师指点! [图片说明](https://img-ask.csdn.net/upload/201701/17/1484633496_306642.png)

使用JSON.toJSONString处理过后的list出现问题

在servlet里面,获得了一个list集合,通过JSON.toJSONString处理过后,list里面的日期类型变为一串很长的数字,该怎么处理?

java 多次嵌套数据,如何遍历获取到最内层的数据?

``` [ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U00-U49 对新发生的不明原因疾病的或紧急情况的临时安排", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U04 严重急性呼吸道综合征[SARS]", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U04.9 未特指的严重急性呼吸道综合征", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U04.9", "icdPid":"119f028c-7938-11e9-9611-8cec4bd010f3", "icdName":"未特指的严重急性呼吸道综合征", "icdId":"119f0307-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U04", "icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3", "icdName":"严重急性呼吸道综合征[SARS]", "icdId":"119f028c-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06 紧急使用U06", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.0 紧急使用U06.0", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.0", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.0", "icdId":"119f047b-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.1 紧急使用U06.1", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.1", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.1", "icdId":"119f04f6-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.2 紧急使用U06.2", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.2", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.2", "icdId":"119f056d-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.3 紧急使用U06.3", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.3", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.3", "icdId":"119f05ec-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.4 紧急使用U06.4", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.4", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.4", "icdId":"119f0671-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.5 紧急使用U06.5", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.5", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.5", "icdId":"119f06e5-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.6 紧急使用U06.6", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.6", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.6", "icdId":"119f075c-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.7 紧急使用U06.7", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.7", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.7", "icdId":"119f07db-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.8 紧急使用U06.8", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.8", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.8", "icdId":"119f0852-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U06.9 紧急使用U06.9", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U06.9", "icdPid":"119f0404-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U06.9", "icdId":"119f08cd-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U06", "icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3", "icdName":"紧急使用U06", "icdId":"119f0404-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07 紧急使用U07", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.0 紧急使用U07.0", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.0", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.0", "icdId":"119f0a3a-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.1 紧急使用U07.1", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.1", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.1", "icdId":"119f0ab2-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.2 紧急使用U07.2", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.2", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.2", "icdId":"119f0b2d-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.3 紧急使用U07.3", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.3", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.3", "icdId":"119f0ba7-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.4 紧急使用U07.4", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.4", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.4", "icdId":"119f0c22-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.5 紧急使用U07.5", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.5", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.5", "icdId":"119f0c9a-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.6 紧急使用U07.6", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.6", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.6", "icdId":"119f0d15-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.7 紧急使用U07.7", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.7", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.7", "icdId":"119f0d90-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.8 紧急使用U07.8", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.8", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.8", "icdId":"119f0e0a-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U07.9 紧急使用U07.9", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U07.9", "icdPid":"119f09bf-7938-11e9-9611-8cec4bd010f3", "icdName":"紧急使用U07.9", "icdId":"119f0e96-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U07", "icdPid":"69b8458e-8034-11e9-b519-8cec4bd010f3", "icdName":"紧急使用U07", "icdId":"119f09bf-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 } ], "isParent":"true", "level":1, "icdCode":"U00-U49", "icdPid":"f514142c-795f-11e9-9611-8cec4bd010f3", "icdName":"对新发生的不明原因疾病的或紧急情况的临时安排", "icdId":"69b8458e-8034-11e9-b519-8cec4bd010f3", "open":"false", "codelength":0 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82-U85 对微生物和抗肿瘤药物产生的抗药性", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82 对β-内酰胺类抗生素耐药", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82.0 对青霉素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U82.0", "icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3", "icdName":"对青霉素耐药", "icdId":"119f0f93-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82.1 对甲氧苯青霉素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U82.1", "icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3", "icdName":"对甲氧苯青霉素耐药", "icdId":"119f1178-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82.2 对β-内酰胺(ESBL)类耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U82.2", "icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3", "icdName":"对β-内酰胺(ESBL)类耐药", "icdId":"119f144b-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82.8 对其他β-内酰胺类抗生素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U82.8", "icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3", "icdName":"对其他β-内酰胺类抗生素耐药", "icdId":"119f163e-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U82.9 对β-内酰胺类抗生素耐药,未特指", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U82.9", "icdPid":"119f0f18-7938-11e9-9611-8cec4bd010f3", "icdName":"对β-内酰胺类抗生素耐药,未特指", "icdId":"119f18a7-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U82", "icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3", "icdName":"对β-内酰胺类抗生素耐药", "icdId":"119f0f18-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83 对其他抗生素耐药", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.0 对万古霉素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.0", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对万古霉素耐药", "icdId":"119f1a1c-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.1 对其他与万古霉素有关的抗生素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.1", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对其他与万古霉素有关的抗生素耐药", "icdId":"119f1b85-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.2 对喹诺酮耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.2", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对喹诺酮耐药", "icdId":"119f1c74-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.7 对多种抗生素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.7", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对多种抗生素耐药", "icdId":"119f1d6d-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.8 对其他单一指定抗生素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.8", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对其他单一指定抗生素耐药", "icdId":"119f1e63-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U83.9 对未特指的抗生素耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U83.9", "icdPid":"119f19a4-7938-11e9-9611-8cec4bd010f3", "icdName":"对未特指的抗生素耐药", "icdId":"119f1fef-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U83", "icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3", "icdName":"对其他抗生素耐药", "icdId":"119f19a4-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84 对其他抗菌药耐药", "partnum":"22", "children":[ { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.0 对抗寄生虫药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.0", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对抗寄生虫药物耐药", "icdId":"119f216a-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.1 对抗真菌药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.1", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对抗真菌药物耐药", "icdId":"119f2259-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.2 对抗病毒药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.2", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对抗病毒药物耐药", "icdId":"119f237f-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.3 抗结核病药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.3", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"抗结核病药物耐药", "icdId":"119f2471-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.7 对多种抗菌药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.7", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对多种抗菌药物耐药", "icdId":"119f25ec-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.8 对其他特指抗菌药耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.8", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对其他特指抗菌药耐药", "icdId":"119f2704-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U84.9 对未特指的抗菌药物耐药", "partnum":"22", "isParent":"true", "level":3, "icdCode":"U84.9", "icdPid":"119f20ec-7938-11e9-9611-8cec4bd010f3", "icdName":"对未特指的抗菌药物耐药", "icdId":"119f2801-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":5 } ], "isParent":"false", "level":2, "icdCode":"U84", "icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3", "icdName":"对其他抗菌药耐药", "icdId":"119f20ec-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 }, { "isclinical":-1, "isusing":1, "mid":"", "remark":"", "className":"U85 对抗肿瘤药物耐药", "partnum":"22", "isParent":"false", "level":2, "icdCode":"U85", "icdPid":"69b852ad-8034-11e9-b519-8cec4bd010f3", "icdName":"对抗肿瘤药物耐药", "icdId":"119f297f-7938-11e9-9611-8cec4bd010f3", "open":"false", "codelength":3 } ], "isParent":"true", "level":1, "icdCode":"U82-U85", "icdPid":"f514142c-795f-11e9-9611-8cec4bd010f3", "icdName":"对微生物和抗肿瘤药物产生的抗药性", "icdId":"69b852ad-8034-11e9-b519-8cec4bd010f3", "open":"false", "codelength":0 } ] ``` ![图片说明](https://img-ask.csdn.net/upload/201911/23/1574521364_679491.png) 如图,获取最内层的children节点下的值。 ``` public static List<Map<String, Object>> getLastChildren(List<Map<String, Object>> list,String key) { List<Map<String, Object>> lastChildrenList = new ArrayList<Map<String,Object>>(); for(int i=0;i<list.size();i++) { Map<String,Object> map = list.get(i); /*判断是否存在key*/ boolean containsKey = map.containsKey(key); /*如果存在则继续遍历*/ if(containsKey && map.get(key)!= null) { List<Map<String, Object>> childrenList = (List<Map<String, Object>>) map.get(key); getLastChildren(childrenList,key); }else {/*如果不存在则获取到key值 返回数据*/ lastChildrenList.add(map); } } return lastChildrenList; } ```

一个对象里面包含一个list集合怎么取list的值

一个对象里面包含一个list 我需要怎么取到list的值![图片说明](https://img-ask.csdn.net/upload/201709/20/1505870057_709696.png)

layui的数据表格怎么获取对象中的集合数据

{ "code": 0, "msg": "", "count": 18, "data":[ {"resource_name":"紫原标题1","resource_describe":"描述1","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包1","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具1","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题2","resource_describe":"描述2","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包2","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具2","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题3","resource_describe":"描述3","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包3","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具3","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题4","resource_describe":"描述4","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包4","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具4","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题5","resource_describe":"描述5","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包5","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具5","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题6","resource_describe":"描述6","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包6","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具6","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题7","resource_describe":"描述7","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包7","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具7","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题8","resource_describe":"描述8","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包8","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具8","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题9","resource_describe":"描述9","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包9","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具9","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题10","resource_describe":"描述10","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集包10","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具10","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题11","resource_describe":"描述11","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包11","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具11","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题12","resource_describe":"描述12","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包12","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具12","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题13","resource_describe":"描述13","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包13","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具13","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题14","resource_describe":"描述14","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包14","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具14","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题15","resource_describe":"描述15","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包15","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具15","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题16","resource_describe":"描述16","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包16","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具16","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题17","resource_describe":"描述17","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包17","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具17","rinfo_size":"6MB"}]}, {"resource_name":"紫原标题18","resource_describe":"描述18","resource_author":"Loser","resource_list":[{"rinfo_name":"win10激活工具集合包18","rinfo_size":"7MB"},{"rinfo_name":"JAVA自动配置工具18","rinfo_size":"6MB"}]} ] } 这是json

对接口返回的jsonarray 数据进行过滤

![图片说明](https://img-ask.csdn.net/upload/201810/10/1539163851_482148.jpeg) 接口返回一组 jsonarray的数据(每个jsonobject的key数量都是一样的) ,现在有一个存储了 需要的展示的key的list 从返回的jsonarray中取出和list中的key匹配的数据 重新返回 jsonarray (过滤操作) 除了嵌套循环 有没有其他的方式 Java8的 stream 可以吗?

SpringBootJPA 多对多死循环

``` @DynamicInsert @DynamicUpdate @Builder @Entity @Data //生成getter,setter等函数 @AllArgsConstructor //生成全参数构造函数 @NoArgsConstructor //生成无参构造函数 @SuppressWarnings("unused")//去除黄色警告 @Table(name = "cs_album") public class CsAlbum { // 主键ID @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @ApiModelProperty(name = "id", value = "主键ID",hidden = true) private Long id; //用户id @Column(nullable=false,name="uId",columnDefinition="bigint COMMENT '用户id'") @ApiModelProperty(name = "uId", value = "用户id") private Long uId; @ManyToMany @JoinTable( //指定表名字 name = "cs_album_design_works", //配置维护放字段 joinColumns = @JoinColumn(name = "album_id",referencedColumnName = "id"), //配置被维护放字段 inverseJoinColumns = @JoinColumn(name = "design_works_id",referencedColumnName = "id") ) private List<CsDesignWorks> csDesignWorks = new ArrayList<>( ); } ``` 被维护表CsDesignWorks ``` @DynamicInsert @DynamicUpdate @Builder @Entity @Data //生成getter,setter等函数 @AllArgsConstructor //生成全参数构造函数 @NoArgsConstructor //生成无参构造函数 @SuppressWarnings("unused")//去除黄色警告 @Table(name = "cs_design_works") public class CsDesignWorks { // 主键ID @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @ApiModelProperty(name = "id", value = "主键ID",hidden = true) private Long id; @ManyToMany(mappedBy = "csDesignWorks") private List<CsAlbum> csAlbums = new ArrayList<>( ); } ``` Service类 ``` @Service @Transactional public class CsAlbumServiceImpl implements CsAlbumService { //根据id查询专辑内容 @Override public CsAlbum viewAlbum(Long id){ CsAlbum csAlbum = csAlbumRepository.findById( id ).get(); csAlbum.getCsDesignWorks(); return csAlbum; } } ``` 出现死循环为什么呢

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

你期望月薪4万,出门右拐,不送,这几个点,你也就是个初级的水平

先来看几个问题通过注解的方式注入依赖对象,介绍一下你知道的几种方式@Autowired和@Resource有何区别说一下@Autowired查找候选者的...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《Oracle Java SE编程自学与面试指南》最佳学习路线图2020年最新版(进大厂必备)

正确选择比瞎努力更重要!

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

字节跳动面试官竟然问了我JDBC?

轻松等回家通知

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

2020春招面试了10多家大厂,我把问烂了的数据库事务知识点总结了一下

2020年截止目前,我面试了阿里巴巴、腾讯、美团、拼多多、京东、快手等互联网大厂。我发现数据库事务在面试中出现的次数非常多。

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

在拼多多上班,是一种什么样的体验?我心态崩了呀!

之前有很多读者咨询我:武哥,在拼多多上班是一种什么样的体验?由于一直很忙,没抽出时间来和大家分享。上周末特地花点时间来写了一篇文章,跟大家分享一下拼多多的日常。 1. 倒时差的作息 可能很多小伙伴都听说了,拼多多加班很严重。这怎么说呢?作息上确实和其他公司有点区别,大家知道 996,那么自然也就能理解拼多多的“11 11 6”了。 所以当很多小伙伴早上出门时,他们是这样的: 我们是这样的: 当...

应聘3万的职位,有必要这么刁难我么。。。沙雕。。。

又一次被面试官带到坑里面了。面试官:springmvc用过么?我:用过啊,经常用呢面试官:springmvc中为什么需要用父子容器?我:嗯。。。没听明白你说的什么。面试官:就是contr...

太狠了,疫情期间面试,一个问题砍了我5000!

疫情期间找工作确实有点难度,想拿到满意的薪资,确实要点实力啊!面试官:Spring中的@Value用过么,介绍一下我:@Value可以标注在字段上面,可以将外部配置文件中的数据,比如可以...

自学编程的 6 个致命误区

嗨,小伙伴们大家好,我是沉默王二。本篇文章来和大家聊聊自学编程中的一些误区——这是我在 B 站上看了羊哥的一期视频后有感而发的文章。因为确实有很多读者也曾私信问过我这些方面的问题,很有代表性,所以我就结合自己的亲身体会来谈一谈,希望对小伙伴们有所启发。 01、追求时髦 所谓基础不牢,地动山摇啊。可很多小伙伴压根就没注意过这个问题,市面上出什么新鲜的技术就想去尝试,结果把自己学的乱七八糟,心灰意冷...

祝贺玄姐,创业两个月,估值近亿,融资几千万,奈学教育,太牛逼了!!!...

玄姐,男,前58同城技术委员会主席,前转转首席架构师,我的10年好友。一月下旬,玄姐找到我,说,哥们我准备创业了。画外音:详见《最好的朋友创业了,我必须为他站台》。番外篇《为何大家都叫...

立即提问
相关内容推荐