[翻译]load-on-startup 元素的作用
發(fā)表于 @ 2006年08月28日 21:47:00
剛找到load-on-startup的作用,嘗試翻譯一下,鍛煉一下.ps.偶e文好lj地說.e文好的看原文吧,不然你會(huì)bs我的.( O_0)
原文:
The load-on-startup element indicates that this servlet should be loaded (instantiated and have its init() called) on the startup of the web application. The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. If the value is a positive integer or 0, the container must load and initialize the servlet as the application is deployed. The container must guarantee that servlets marked with lower integers are loaded before servlets marked with higher integers. The container may choose the order of loading of servlets with the same load-on-start-up value.翻譯:
load-on-startup 元素指出這個(gè)servlet在web應(yīng)用程序啟動(dòng)時(shí)將被加載(實(shí)例化時(shí)將調(diào)用它的init()方法).這個(gè)可選的元素必須給定一個(gè)整數(shù)來標(biāo)記這個(gè)servlet被加載的順序.如果這個(gè)值是一個(gè)負(fù)數(shù)或者這個(gè)元素不存在,容器將自己選擇在空閑的時(shí)候加載.如果它的值是一個(gè)正數(shù)或0,容器在展開(或配置,其實(shí)就是啟動(dòng)時(shí)加載web應(yīng)用.)這個(gè)web 應(yīng)用程序時(shí)必須加載和初始化這個(gè)servlet.容器必須保證這個(gè)servlet 按照給定的整數(shù)標(biāo)記從小到大的順序加載它.如果存在有相同的整數(shù)標(biāo)記時(shí),容器自己選擇加載 load-on-startup 元素值一樣的servlet.(也就是說加載的順序不確定)
轉(zhuǎn)載于:https://www.cnblogs.com/DeguangLi/archive/2010/05/31/1748405.html
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的[翻译]load-on-startup 元素的作用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 将SQL中数据输出到Excel中
- 下一篇: 这几天的在寝心的