Qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav

Qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav
Qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav

Video: Qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav

Video: Qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav
Video: Finance with Python! Downloading Financial Data 2024, Hlis ntuj nqeg
Anonim

Java vs Spring

Java yog ib qho ntawm cov khoom siv nrov tshaj plaws los qhia cov lus hauv ntiaj teb. Java yog siv ntau rau software thiab txhim kho lub vev xaib. Caij nplooj ntoos hlav yog qhib qhov chaw thov lub moj khaum. Txawm hais tias nws tsis yog nyob ntawm txhua tus qauv programming, Spring moj khaum tau ua nrov heev ntawm Java programmers. Lub caij nplooj ntoo hlav ua haujlwm hloov lossis ntxiv rau Java tus kheej EJB (Enterprise Java Beans).

Java yog dab tsi?

Java yog ib qho ntawm cov khoom siv dav siv ntau tshaj plaws (thiab chav kawm-raws li) programming lus siv rau kev txhim kho software rau kev txhim kho lub vev xaib, niaj hnub no. Nws yog lub hom phiaj dav dav thiab cov lus programming ib txhij. Nws yog Ameslikas tsim los ntawm Sun Microsystems hauv 1995. James Gosling yog leej txiv ntawm Java programming lus. Oracle Corporation tam sim no muaj Java (tom qab yuav Sun Microsystems tsis ntev los no). Java Standard Edition 6 yog nws qhov kev tso tawm ruaj khov tam sim no. Java yog hom lus uas muaj zog heev uas txhawb nqa ntau lub platform los ntawm Windows mus rau UNIX. Java muaj ntawv tso cai raws li GNU General Public License. Java's syntax zoo ib yam li C thiab C ++.

Java cov ntaub ntawv muaj qhov txuas ntxiv.java. Tom qab sau Java cov ntaub ntawv siv javac compiler, nws yuav tsim cov ntaub ntawv.class (muaj Java bytecode). Cov ntaub ntawv bytecode no tuaj yeem txhais tau siv JVM (Java Virtual Machine). Txij li thaum JVM tuaj yeem khiav ntawm txhua lub platform, Java tau hais tias yog ntau lub platform (hla-platform) thiab portable heev. Feem ntau, cov neeg siv kawg siv JRE (Java runtime Ib puag ncig) los khiav Java bytecode (lossis Java Applets ntawm web browsers). Cov tsim software siv Java Development Kit (JDK) rau kev txhim kho daim ntawv thov. Qhov no yog ib qho superset ntawm JRE, uas suav nrog lub compiler thiab debugger. Ib qho zoo ntawm Java yog nws cov khoom siv khib nyiab tsis siv neeg, qhov twg cov khoom uas tsis tas yuav raug tshem tawm ntawm lub cim xeeb cia li.

Lub caij nplooj ntoos hlav yog dab tsi?

Caij nplooj ntoos hlav yog qhov qhib daim ntawv thov txheej txheem. Nws yog tsim los ntawm Rod Johnson thiab thawj version tau tso tawm nyob rau hauv 2004. Caij nplooj ntoos hlav 3.0.5 yog tam sim no version ntawm lub caij nplooj ntoos hlav moj khaum. Nws muaj ntawv tso cai raws li Apache 2.0 daim ntawv tso cai. Txhua daim ntawv thov Java tuaj yeem siv cov yam ntxwv tseem ceeb ntawm Lub Caij Nplooj Ntoos Hlav. Caij nplooj ntoos hlav tau dhau los ua dav siv hauv zej zog Java, txawm tias lub moj khaum tsis muaj kev ywj pheej ntawm cov qauv kev ua haujlwm. Lub caij nplooj ntoo hlav yog siv los hloov lossis ntxiv rau EJB qauv. Qee qhov tseem ceeb tshaj plaws ntawm Lub Caij Nplooj Ntoos Hlav yog IoC (Inversion of Control), AOP (Aspect Oriented Programming), MVC (Model View Controller), Kev Tswj Xyuas Kev Lag Luam, Cov Ntaub Ntawv Nkag, Kev Tshawb Fawb, Kev Tso Cai, Kev Tswj Xyuas Chaw Taws Teeb, Kev Ua Haujlwm, Kev Xa Xov thiab Kev sim.

Dab tsi yog qhov txawv ntawm Java thiab Caij Nplooj Ntoos Hlav?

Java yog hom lus programming, thaum Lub Caij Nplooj Ntoos Hlav yog qhov qhib daim ntawv thov lub hauv paus. Yog li ntawd, lawv tsis tuaj yeem muab piv ncaj qha. Txawm li cas los xij, Java EE (uas yog Java tus kheej server programming platform) feem ntau piv rau lub caij nplooj ntoo hlav. Qhov tseeb, Caij Nplooj Ntoos Hlav yog qhov nrov heev ntawm Java programmers (txawm tias Caij Nplooj Ntoos Hlav yog hom lus ywj pheej thiab tuaj yeem siv nrog txhua tus qauv programming) vim nws feem ntau siv los hloov lossis ntxiv rau EJB (uas tuaj nrog Java EE).

Pom zoo: