84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
retrofit框架请求下来的数据bean类之前有三个参数,name,age,sex,现在后台又往这个借口里面新增的一个字段,hight,我之前的bean类不变,还能请求下来这个bean类么?或者说请求下来的bean类会报错么????
认证高级PHP讲师
You only need to add a variable in the bean and you can continue to use it, and you can also get new fields
If the code is not changed, no error will be reported, but the new fields cannot be obtained
No, if there are still fields before the new request data, it can still be obtained, but the newly added fields cannot be obtained
This kind of problem. . . Just try it yourself. Be more hands-on. . If you have any questions, please ask again
You only need to add a variable in the bean and you can continue to use it, and you can also get new fields
If the code is not changed, no error will be reported, but the new fields cannot be obtained
No, if there are still fields before the new request data, it can still be obtained, but the newly added fields cannot be obtained
This kind of problem. . . Just try it yourself. Be more hands-on. . If you have any questions, please ask again