熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

struts1和struts2及數據庫連接

2013-11-23 20:21:30  來源: Java開源技術 

  Sturts核心控制器ActionServlet(orgapachestrutsactionActionServlet)繼承DispatchAction

  Dao層(ibatis)繼承springjar包SqlMapClientDaoSupport

  Sturts核心控制器FilterDispatcher(orgapachestrutsdispatcherFilterDispatcher)繼承ActionSupport

  Dao層(hibernate)繼承springormjar包HibernateDaoSupport

  SprintMVCDispatcherServlet(orgspringframeworkwebservletDispatcherServlet)

  Dao層springjdbc SimpleJdbcTemplate

  (hibernate)SimpleHibernateDao

  spring容器BeanFactory和ApplicationContext

  jdbc

  jdbc加載配置文件

  jdbc加載proxoolxml(連接池)

  hibernate

  spring加載hibernate

  spring加載配置文件(可單一可多) JNDI(dataSource)

  spring加載proxoolxml(多連接池)} webxml中加載proxoolxml

  spring加載Ibatis SqlMap只是用來映射還需webxml中用proxool

  hibernate讀取

  (

  )

  spring容器

  (

  )


From:http://tw.wingwit.com/Article/program/Java/ky/201311/28374.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.