1.j2eeåspringåºå«(javaeeåspringmvc)
j2eeåspringåºå«(javaeeåspringmvc)
ä»ä¹æ¯springæ¡æ¶springæ¯j2eeåºç¨ç¨åºæ¡æ¶ï¼æ¯è½»é级çiocåaopç容å¨æ¡æ¶ï¼ä¸»è¦
SpringHibernateStrutsçå±äºè½»é级æ¡æ¶ï¼è½»é级æ¡æ¶æ¯ç¸å¯¹äºéé级æ¡æ¶èè¨çä¸ç§ç¨åºè®¾è®¡æ¨¡å¼ãä¸éé级æ¡æ¶ç¸æ¯ï¼è§£å³é®é¢ç侧éç¹æ¯ä¸åçãè½»é级æ¡æ¶ä¸è¬ç±strutsï¼springç»æï¼ä¾§éäºåå°å¼åçå¤æ度ï¼ç¸åºçå®çå¤çè½å便ææåå¼±ï¼å¦äºå¡åè½å¼±ãä¸å ·å¤åå¸å¼å¤çè½åï¼ï¼æ¯è¾éç¨äºå¼åä¸å°åä¼ä¸åºç¨ãéç¨è½»éæ¡æ¶ä¸æ¹é¢å 为尽å¯è½çéç¨åºäºPOJOsçæ¹æ³è¿è¡å¼åï¼ä½¿åºç¨ä¸ä¾èµäºä»»ä½å®¹å¨ï¼è¿å¯ä»¥æé«å¼åè°è¯æçï¼å¦ä¸æ¹é¢è½»é级æ¡æ¶å¤æ°æ¯å¼æºé¡¹ç®ï¼å¼æºç¤¾åºæä¾äºè¯å¥½ç设计å许å¤å¿«éæå»ºå·¥å ·ä»¥å大éç°æå¯ä¾åèçå¼æºä»£ç ï¼è¿æå©äºé¡¹ç®çå¿«éå¼åãä¾å¦ç®åTomcat+Spring+Hibernateå·²ç»æ为许å¤å¼åè å¼åJ2EEä¸å°åä¼ä¸åºç¨åç±çä¸ç§æ¶æéæ©ã
J2EEåSpring,源码c++ 外挂源码Hibernateè¿äºæ¡æ¶çåºå«ï¼è¯¦ç»ä¸ç¹ãJ2EEæ¯Sunå ¬å¸å®æ¹çJavaä¼ä¸çº§åºç¨ç¨åºçæ åï¼èSpringãHibernateçæ¯å®ç°ä¼ä¸çº§å¼åçæ¡æ¶ã
j2eeï¼ejbï¼Springï¼Strutsï¼Hibernateæ¯ä»ä¹å ³ç³»å±å¼å ¨é¨
1.
J2EE
--java
Enterprise
Editon
ä¸è¬ä¸ºæå¡å¨ç«¯ç¨åºçåºç¨,javaå®å¯¹å¼ååºäºWebçå¤å±{ å³æ¯J2EE}åºç¨æä¾äºåè½ä¸çæ¯æã
2.
J2EEæ¬èº«æä¾äºä¸äºæ¡æ¶ãæ¯å¦ï¼
Enterprise
Java-Beans
(EJB)
container
Enterprise
Java
Beans
(EJB)
æä¾äºä¸ä¸ªæ¡æ¶æ¥å¼ååå®æ½åå¸å¼åå¡é»è¾ï¼æ¾èå°ç®åäºå ·æå¯ä¼¸ç¼©æ§åé«åº¦å¤æçä¼ä¸çº§åºç¨çå¼å
3.
èç°å¨æ¯è¾æµè¡å¼æºæ¡æ¶,主è¦æ¯struts,hibernate,springç
struts+hibernate+springä¸å¤§æ¡æ¶:
struts:æ¯å¨åæmvcåºç¡ä¸å®ç°å¨ä»£ç å离çåè½;
hibernate:å¯ä»¥ææ们çå ³ç³»åæ°æ®åºè½¬æ¢ææ们å¨JAVAä¸çé¢å对åæ¥ä½¿ç¨;
Spring:J2EEæ¡æ¶è¢«å¤§è§æ¨¡å°è¿ç¨å°é¡¹ç®ä¸ï¼è项ç®æ»è¦è´è´£è¿äºæ¡æ¶ä»¥åèªå·±ä¸å¡ä»£ç çè¿æ¥ï¼ä½¿ä¹çæ£èåå°ä¸èµ·ãSpringå°±æ¯ä¸æ³¨äºè¿ä¸ªé®é¢çï¼å®åHibernateèåçå¾å¥½ã
javaeeåspringbootçåºå«javaeeåspringbootçåºå«JavaEEæJ2EEä¹ç§°ä¸ºJavaä¼ä¸çãJ2EEV1.2äºå¹´æä½ä¸ºç¬¬ä¸ä¸ªä¼ä¸è§èå¼åãå¨å¹´ï¼Sunéè¿å é¤J2EEçå称éæ°å½åäºJavaå¹³å°ãå®çæ ¸å¿ç»ä»¶æ¯EJB(EnterpriseJavaBeans)ï¼å ¶æ¬¡æ¯JSP(JavaServerPages)ã该平å°å æ¬ç¨äºæ°æ®åºçJDBC(Javaæ°æ®åºè¿æ¥)ãå®æåç±Sunå¼åï¼Sunäºå¹´è¢«Oracleæ¶è´ãè¿äºæå¡å¨ä¸é´å±çç¨æ·è®¡ç®æºåä¼ä¸æ°æ®åºä¹é´æ§è¡ã
J2EEçä¼ç¹
J2EEåºç¨ç¨åºå¯é ãå®å ¨ä¸å¯æ©å±ãå¦æç¥éJ2SEï¼é£ä¹å¾å®¹æå¦ä¹ ãå¨å¤ä¸ªå¹³å°ä¸è¿è¡ã跨平å°å¯ç§»æ¤æ§ãå®å¤çå¤æåé«äºå¡çåºç¨ç¨åºãå®æä¸ä¸ªç»è¿éªè¯çè®°å½ã
J2EEç缺ç¹
å¤æçåºç¨ç¨åºå¼åç¯å¢ãå¼åãé¨ç½²å管çåºç¨ç¨åºçææ¬å¯è½æ´é«ãå®ç¼ºä¹å¯¹Webæå¡æ åçå ç½®æ¯æã大éçè§èéè¦æ·±åº¦å¦ä¹ çJ2EEãå®å¾å¤æï¼ä½å¾çµæ´»ã
SpringSpringæ¯JavaEEçåºç¨ç¨åºå¼åæ¡æ¶ãå®æ¯ä¸ä¸ªå¼æºçJavaå¹³å°ï¼ä¸ºJavaæä¾æ¯æï¼ä»¥ä¾¿é常顺å©åè½»æ¾å°å¼åå¥å£®çJavaåºç¨ç¨åºãå®æ¯ç±ç½å¾·Â·çº¦ç¿°éå¨å¹´6æåçãSpringç大å°æ¯è½»é级çï¼Springæ¡æ¶çåºæ¬çæ¬çº¦ä¸º2MBãSpringæ¡æ¶çæ ¸å¿ç¹æ§æ¯å¼åä»»ä½Javaåºç¨ç¨åºï¼å ¶ç®æ æ¯ä½¿J2EEå¼åæ´æäºä½¿ç¨ãå®ä½¿å¼å人åè½å¤ä½¿ç¨POJO(æ®éæ§Java对象)å¼åä¼ä¸çº§åºç¨ç¨åºã