我在读取.JSON文件并创建DTO对象时遇到了麻烦...当我只读时,我从json文件中获得了第一项,其他所有内容都为null。为什么会发生?我的变量在类中的写入方式应与json中的相同?
Dto类
public class AlunoTestDto {
private String table;
private String rows;
private String AlunoID;
private String Nome;
private String RM;
private String RG;
private String usuario;
private String senha;
private String cursoAluno;
private String urlFoto;
private String email;
private String rgEscolar;
private String cpf;
public String getTable() {
return table;
}
public void setTable(String table) {
this.table = table;
}
public String getRow() {
return rows;
}
public void setRow(String rows) {
this.rows = rows;
}//others
相关分类