问题查询-批文页面显示别人操作的结果

问题:

客户A与客户B10:56同时操作贷款,操作结果以ResponseResult对象返回,A操作时遇到了异常没有对ResponseResult.result进行赋值,结果显示了B操作的ResponseResult.result结果。

原因:

ResponseResult 被定义成了单例对象,在一个JVM中,单例对象只有一个实例存在。

private static ResponseResult instance = new ResponseResult();

public static ResponseResult getInstance() {

return instance;

}

查询过程:

1.

https://blog.csdn.net/cselmu9/article/details/51366946

https://www.cnblogs.com/WuXuanKun/p/5771068.html

原文地址:https://www.cnblogs.com/hongyedeboke/p/11287058.html