"Spring" 2, <load-on-startup>0</load-on-startup> configuration

Source: Internet
Author: User
  • Load-on-startup whether the token container is instantiated at startup and invokes the priority of its init () method.

  • Its value indicates the order in which the servlet should be loaded

  • A value of 0 or greater than 0 o'clock indicates that the container loads and initializes the servlet when the app is started;

  • If the value is less than 0 or unspecified, the initialization function is called only on the first requested container in the servlet

  • The smaller the positive value, the higher the servlet's priority, and the more loaded it will be when the app starts.

  • When the values are the same, the containers are loaded in their own order of choice.

"Spring" 2, <load-on-startup>0</load-on-startup> configuration

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.