retrofit框架请求下来的数据bean类之前有三个参数,name,age,sex,现在后台又往这个借口里面新增的一个字
段,hight,我之前的bean类不变,还能请求下来这个bean类么?或者说请求下来的bean类会报错么????
阿神2017-04-18 09:08:54
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
天蓬老师2017-04-18 09:08:54
No, if there are still fields before the new request data, it can still be obtained, but the newly added fields cannot be obtained
阿神2017-04-18 09:08:54
This kind of problem. . . Just try it yourself. Be more hands-on. . If you have any questions, please ask again