Click here to load reader

浅谈 J2EE 架构

  • View
    140

  • Download
    0

Embed Size (px)

DESCRIPTION

浅谈 J2EE 架构. 叶林宝 2014/3/22 厦大数据库实验室. 目录. ( 1 ) J2EE 的来源、整体框架及其核心技术 ( 2 ) MVC 开发模式的优势、劣势 ( 3 ) Struts 介绍 ( 4 ) Hibernate 介绍 ( 5 ) Spring 介绍 ( 6 ) Ibatis 介绍 ( 与 Hibernate 的差别 ) ( 7 ) Nutz (号称 SSH 的替代品)介绍. Java2 平台的 3 个版本: J2ME: Java 2 Platform Micro Edition Java 的微型版 , 常用于手机上的开发 - PowerPoint PPT Presentation

Text of 浅谈 J2EE 架构

Hibernate

J2EE2014/3/221J2EE2MVC3Struts4Hibernate5Spring6Ibatis(Hibernate)7NutzSSHJava2 3

J2ME:Java 2 Platform Micro EditionJava,

J2SE:Java 2 Platform Standard EditionJava,

J2EE:Java 2 Platform Enterprise EditionJava

J2EE

J2EE

J2EE ServletJsp(java )EJBjavaBeanJDBCjavaJTA/JTSjavaJNDIjavaJavaMailjavaRMIJMSjavaXML(Extensible Markup Language)JCAjavaJAFJAVA

MVC

StrutsSun J2EEMVCServletJSPStrutsStrutsServletJSP(message resources)MVCStruts

StrutsActionServletActionFormActionActionErrorActionMappingActionForward

HibernateHibernateO/R MappingabJDBCJTAc

ConfigurationhibernateSessionFactorySessionFactory()hibernatesessionSessionTransactionQueryCriteria

O/R Mapping?object/relationalmappingORM- O/RMapping

2. O/R MappingASQLBCbugDE14 1. 2.SessionFactory 3.Sesssion 4.Transation 5. 6. 7.Session 8.SesstionFactory 1. JDBC2. HibernateJDBCORMDAO3. hibernateJava4. hibernate

SpringIoCInversion of ControlAOPj2eeSpringMVCIoCbeanAOP

SpringIOCAOP

Spring 7 JavaSpringJavaBeanEJBJavaSpringIoCAOP

IOC

IoCIoCSpringIoCDI

IoC

(IoC)

IOC

IOCIOC

IOC

IOC(Spring)

IOCIOC

iBatisiBatis apache O/R Mapping iBatis iBatis

MyBatisiBATISiBATISClinton Begin2001iBATISinternetabatisJavaiBATISSQL MapsData Access ObjectsDAOORMJava.NET iBatis 1 jar ibatis-2.3.0.677.jar mysql-connector-java-5.1.6-bin.jar 2 Jdbc SqlMapConfig.xml Map

iBatis 1 2 3 Sql 4 1 Hibernate sql 2 NutzNutzWebNutzSSHNutzzozoh2009bug1000

Java SSH : Nutz Nutzjar712kbJDBCJDBCjarSSH

Nutz Hibernate iBatis SQLNutz.Dao Spring Nutz.Ioc XML Nutz.Mvc JSON Nutz.Json Java Ruby Nutz.Castor Nutz.Lang SSH JDBC Nutz classpath jar http://www.csdn.net/article/2014-03-21/2818918-Nutz-Java-Framework32

Search related