Better support for @SessionAttributes in clustered environments

A list of "known" session attributes (listed in @SessionAttributes)
was gradually built as attributes get added to the model. In a
failover scenario that knowledge is lost causing session attributes
to be potentially re-initialized via @ModelAttribute methods.

With this change @SessionAttributes listed by name are immediately
added to he list of "known" session attributes thus this knowledge
is not lost after a failover. Attributes listed by type however
still must be discovered as they get added to the model.
This commit is contained in:
Rossen Stoyanchev
2012-02-03 12:14:36 -05:00
parent 81e25b91c2
commit 871336a8c8
3 changed files with 73 additions and 70 deletions

View File

@@ -34,6 +34,7 @@ Changes in version 3.1.1 (2012-02-06)
* add normalize() method to UriComponents
* remove empty path segments from input to UriComponentsBuilder
* add fromRequestUri(request) and fromCurrentRequestUri() methods to ServletUriCommonentsBuilder
* improve @SessionAttributes handling to provide better support for clustered sessions
Changes in version 3.1 GA (2011-12-12)
--------------------------------------