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