Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0

Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0
Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0

Video: Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0

Video: Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0
Video: Thov Txim Qhov Kuv Txav Deb Ntawm Koj (Official Music Video 2022) N. Vajxob Xyooj & N. Vanxay lauj 2024, Kaum ib hlis
Anonim

Tomcat 7.0 vs Tomcat 6.0

Tomcat (tseem hu ua Apache Tomcat lossis Jakarta Tomcat) muab "java ntshiab" HTTP web server ib puag ncig uas tuaj yeem siv los khiav Java code. Nws yog lub thawv Servlet tsim los ntawm Apache Software Foundation, uas yog muab los ua cov khoom qhib. Sun Microsystems's Java Servlet thiab JSP (Java Server Nplooj) cov lus qhia tshwj xeeb yog siv los ntawm Tomcat. Apache Tomcat tuaj yeem teeb tsa siv XML cov ntaub ntawv teeb tsa (txawm tias cov cuab yeej rau kev teeb tsa thiab kev tswj hwm suav nrog cov neeg rau zaub mov). Tomcat 7.0 yog qhov tseeb ruaj khov version ntawm Tomcat, uas tau qhia ntau yam tshiab ntawm nws cov ntawv dhau los Tomcat 6.0 (uas tau tso tawm xyoo 2007).

Tomcat 6.0 yog dab tsi?

Tomcat 6.0 qhia ntau yam tshiab ntawm nws qhov kev tshaj tawm dhau los. Nrog Tomcat 6.0, kev tswj hwm qib siab ntawm I / O kev ua haujlwm ntawm lawv cov ntawv thov tuaj yeem siv tau vim tias cov neeg siv tuaj yeem siv NIO tshiab (Tshiab I / O) txuas rau kev sib txuas lus asynchronous ntawm cov ntaub ntawv nkag / tso tawm qis. Piv txwv li, cov ntaub ntawv tuaj yeem raug xa mus rau hauv ntau, sib npaug los ntawm ntau qib I / O. Los yog ntawm qhov tod tes, cov neeg siv yuav multiplex cov ntaub ntawv siv cov selectors. Injectable thread pools tuaj yeem teeb tsa los sib koom siv cov txheej txheem Executer tshiab. Tomcat 6.0 muab kev txhawb nqa rau kev siv lwm txoj hauv kev-logging adaptor, ua tsaug rau JULI lub moj khaum tshiab qhov kev hloov kho ntawm lub tsev qiv ntawv nkag. Tsis tas li ntawd, Tomcat 6.0 txhawb nqa HTTP Push txoj kev tshiab hu ua Comet, thiab API tshiab uas tuaj yeem siv los hloov cov sockets hu ua SEND_FILE API. Cov neeg siv tuaj yeem tsim ntau dua ib tus qauv URL hauv ib qho servlet daim ntawv qhia.

Tomcat 7.0 yog dab tsi?

Apache pib ua haujlwm ntawm Apache 7.0 thaum ntxov Lub Ib Hlis, 2009. Tab sis, nws tau tshaj tawm ruaj khov tom qab 2 xyoos (Lub Ib Hlis, 2011). Tomcat 7.0.6 yog thawj Tomcat 7 ruaj khov tso tawm. Tomcat 7.0 tau tsim los ntawm kev txhim kho tau qhia hauv cov ntawv ua ntej, thiab siv Servlet 3.0 API, JSP 2.2 thiab EL 2.2 specifications. Tomcat 7.0 tau qhia ntau yam kev txhim kho tshiab ntawm nws tus kheej, xws li kev tshawb nrhiav / kev tiv thaiv kev nco txog hauv lub vev xaib, txhim kho kev ruaj ntseg rau Tus Thawj Tswj / Tus Thawj Tswj Hwm, CSRF (Cross-Site Request Forgery) kev tiv thaiv, muaj peev xwm suav nrog cov ntsiab lus sab nraud hauv daim ntawv thov ncaj qha thiab ntxuav. up code (xws li refactoring ntawm connectors thiab lifecycles).

Qhov txawv ntawm Tomcat 7.0 thiab Tomcat 6.0 yog dab tsi?

– Tomcat 7.0 yog qhov tseeb version ntawm Tomcat server, thaum Tomcat 6.0 yog nws qhov kev tso tawm dhau los.

– Download loj ntawm Tomcat 7.0 yog me ntsis loj dua Tomcat 6.0.

– Tomcat 7.0 muaj ntau yam tshiab tsis pom hauv Tomcat 6.0.

– Ua ntej tshaj plaws, Tomcat 7.0 sai dua Tomcat 6.0 hauv kev pib thiab khiav lub vev xaib.

– Tomcat 7.0 tau txhim kho kev ruaj ntseg dua Tomcat 6.0 vim muaj ntau qhov kev ruaj ntseg code kho thiab ntxiv (xws li CSRF tiv thaiv lim).

– Tomcat 7.0 suav nrog Servlet 3.0 API, uas nws tus kheej yog ib qho kev txhim kho dua nws cov version dhau los (siv los ntawm Tomcat 6.0).

– Yog li, daim ntawv thov thib 3 uas xav tau Servlet 3 ntim tau txais kev txhawb nqa los ntawm Tomcat 7.0.

– Kev teeb tsa tau zoo dua hauv Tomcat 7.0, uas suav nrog cov khoom ntim tshiab (piv txwv li ExpiresFilter thiab AddDefaultCharsetFilter) uas tso cai rau kev daws teeb meem zoo dua yav dhau los rau hauv daim ntawv thov web los daws.

– Tomcat 7.0 txhawb Java 6, thaum Tomcat 6.0 txhawb Java 5.

– Thaum kawg, Tomcat 7.0 suav nrog cov kev huv huv thiab kev hloov kho tshiab uas siv cov generics hauv qhov xav tau.

Pom zoo: