最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

tomcat antiResourceLocking antiJARLocking 的作用和用法

 更新時(shí)間:2009年08月01日 13:55:51   作者:  
tomcat 里 antiResourceLocking 和 antiJARLocking 的作用和用法
我們先來看看這個(gè) antiResourceLocking 到底是干什么的!
If true, Tomcat will prevent any file locking. This will significantly impact startup time of applications, but allows full webapp hot deploy and undeploy on platforms or configurations where file locking can occur. If not specified, the default value is false.
Please note that setting this to true has some side effects, including the disabling of JSP reloading in a running server: see Bugzilla 37668.
Please note that setting this flag to true in applications that are outside the appBase for the Host (the webapps directory by default) will cause the application to be deleted on Tomcat shutdown. You probably don't want to do this, so think twice before setting antiResourceLocking=true on a webapp that's outside the appBase for its Host.
我大致翻譯一下:
如果這個(gè)參數(shù)為true,那么將組織任何文件鎖。這將明顯的影響應(yīng)用的啟動(dòng)時(shí)間,但允許webapps,可能發(fā)生鎖的平臺(tái)和配置下,支持完整的熱部署和熱卸載。如果不配置,默認(rèn)值是false;
如果設(shè)置為true,有一些副作用,包括屏蔽了JSP文件在運(yùn)行服務(wù)器上的重新加載。
如果設(shè)置為true,且部署在Host的AppBase目錄外面(默認(rèn)是webapps),在Tomcat關(guān)閉的時(shí)候?qū)?dǎo)致應(yīng)用被刪除。
最主要的就翻譯到這里了。實(shí)際上,如果為false,因?yàn)榇嬖阪i,在你重新發(fā)布的時(shí)候,可能出現(xiàn)部分代碼無法更新。因?yàn)樵嘉募赡芤驗(yàn)楸绘i住了,不能刪除。
當(dāng)然,如果為false,那么部署的目錄就是和包名相同了。如果是false,則會(huì)每次都放到一個(gè)臨時(shí)目錄下面,一個(gè)temp目錄。這也是這個(gè)配置引發(fā)的一個(gè)副作用。
另外的一個(gè)類似的配置 antiJARLocking 是防止jar類庫被鎖定而無法刪除這個(gè)作用的。

相關(guān)文章

最新評論

楚雄市| 木里| 平阴县| 福建省| 宁河县| 武汉市| 田东县| 阿拉尔市| 余干县| 阜城县| 阳新县| 山东省| 海南省| 庆云县| 开封县| 海门市| 神池县| 贺兰县| 嘉义县| 府谷县| 武清区| 遵义市| 青龙| 武威市| 特克斯县| 宁河县| 马山县| 石首市| 正镶白旗| 夏河县| 布拖县| 绥芬河市| 屯留县| 资中县| 博爱县| 五原县| 华蓥市| 建始县| 泽普县| 连城县| 响水县|