@SessionAttributes: Difference between revisions
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
The class-level @SessionAttributes specifies any model objects that should be kept in session and made available across multiple requests. | |||
<syntaxhighlight lang='java'> | <syntaxhighlight lang='java'> |
Latest revision as of 23:59, 14 October 2018
Internal
Overview
The class-level @SessionAttributes specifies any model objects that should be kept in session and made available across multiple requests.
@Controller
@SessionAttributes("sessionAttr1", "sessionAttr2")
public class ...Controller {
// ...
}