SpingBean WEB Scope

Source: Internet
Author: User

1. request scope: indicates that each request requires the container to create a brand new Bean. for example, the data submitted to the form must be a new Bean for each request to save the form data. When the request ends, these resources are released. Ii. session scope: indicates that each session requires the container to create a new Bean. For example, each user usually has a session, and the user's information needs to be stored in the session. Www.2cto.com 3. globalSession scope: similar to Session scope, it is only a web application used in the portlet environment. In a non-portlet environment, the session scope is considered. The WEB scope is the same as the basic scope, but must be supported by the WEB environment. Configure the corresponding container listener or Interceptor to apply these scopes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.