1.接口访问的端口跟后台设置的不一致,接口请求无反应 处理办法

2.响应参数不显示问题
(1)返回的参数里面一定要有响应的参数对象,如下:

(2)TableDataInfo 定义成泛型类 TableDataInfo
package com.dcqq.common.core.page;import java.io.Serializable;
import java.util.List;
public class TableDataInfo<T> implements Serializable {private static final long serialVersionUID = 1L;private long total;private T rows;private int code;private String msg;public TableDataInfo() {}public TableDataInfo(T list, int total) {this.rows = list;this.total = total;}public long getTotal() {return total;}public void setTotal(long total) {this.total = total;}public T getRows() {return rows;}public void setRows(T rows) {this.rows = rows;}public int getCode() {return code;}public void setCode(int code) {this.code = code;}public String getMsg() {return msg;}public void setMsg(String msg) {this.msg = msg;}
}