When using okhttp3 to request json data, the data can be requested normally, but when it is converted into an entity class, null is always displayed

Reason: I used GsonFormatPlus to directly generate the entity class, but the field name in the entity class starts with a lowercase letter, and in the returned json data, the field name starts with an uppercase letter. After finding the problem, modify the initial letter of the field name and restart Just generate the getset method

 

Guess you like

Origin blog.csdn.net/m0_60199181/article/details/123271193