dubbo-hessian-lite
dubbo-hessian-lite copied to clipboard
接口参数如果Map的key 是NULL会被替换成0
public class User implements java.io.Serializable {
private Map<Long, Long> map;
public Map<Long, Long> getMap() {
return map;
}
public void setMap(Map<Long, Long> map) {
this.map = map;
}
}
序列化之前:
User user = new User();
Map<Long, Long> map = new HashMap<>();
map.put(null, 1L);
user.setMap(map);
String hello = demoService.sayHello(user);
序列化之后,map里面的key变成0