这里对个人会话进行了锁定,当session过期时。个人的会话会被删除, FlowExecutionLock lock = executionRepository.getLock(key);这里就会报异常,直接进入finally,会刷新当前login页面。可以注释掉这几句代码来避免刷新的问题,但是不确定是否会引起其他问题。
方法在:org.springframework.webflow.executor.FlowExecutorImpl:158行
public FlowExecutionResult resumeExecution(String flowExecutionKey, ExternalContext context) throws FlowException {
try {if (logger.isDebugEnabled()) {
logger.debug("Resuming flow execution with key '" + flowExecutionKey);
}
ExternalContextHolder.setExternalContext(context);
FlowExecutionKey key = executionRepository.parseFlowExecutionKey(flowExecutionKey);
/**
* FlowExecutionLock lock = executionRepository.getLock(key);
* ck lock = executionRepository.getLock(key);
* 这里锁住了什么东西,但是这个东西会判断login页面session过期,
* 如果过期直接会刷新login页面
*