【struts1和struts2及数据库连接】
Sturts1:核心控制器ActionServlet(org.apache.struts.action.ActionServlet),继承windows xp系统下载DispatchAction
Dao层:(ibatis)继承spring.jar包SqlMapClientDaoSupport
Sturts2:核心控制器FilterDispatcher(org.apache.struts2.dispatcher.FilterDispatcher),继承ActionSupport
Dao层:(hibernate)继承spring-orm.jar包HibernateDaoSupport
SprintMVC:DispatcherServlet(org.springframework.web.servlet.DispatcherServlet)
Dao层:1.springjdbc SimpleJdbcTemplate
2.(hibernate)SimpleHibernateDao
spring容器,BeanFactory和ApplicationContext
1.jdbc
2.jdbc加载配置文件
3.jdbc加载proxool.xml(连接池)
4.hibernate
5.spring加载hibernate
6.spring加载配置文件(可单一,可多)- JNDI(dataSource)
7.spring加载proxool.xml(多,连接池)} - web.xml中加载proxool.xml
8.spring加载Ibatis - SqlMap只是用来映射,还需web.xml中用proxool
hibernate读取:
(
)
spring容器:
(
)