ip已经获取到是127.0.0.1,但是通过对象保存到数据库后ip却为null,请大神解解惑
layerLog.setId(ip);
layerLog.setUsername(username);
layerLog.setOpBy(opBy);
layerLog.setLayername(layername);
layerLog.setLayerId(layerId);
layerLog.setLayerDetail(layerDetail);
layerLog.setMapType(mapType);
this.dao().insert(layerLog);
@Column
@Comment("ip")
@ColDefine(type = ColType.VARCHAR, width = 100)
private String ip;