5. FrameWork
文章平均质量分 81
uniquepine
这个作者很懒,什么都没留下…
展开
-
整合spring 支持声明式事务的hibernate
1。web.xml 加载你需要的配置文件,eg:data.xml 2.data.xml 在spring的上下文定义 a.定义 dataSource b.定义sessionFactory 并refer to the pre defined datasource c.定义hibernatetemplate ref to the prede原创 2012-02-22 10:19:16 · 550 阅读 · 0 评论 -
hibernate VS ibatis
1. iBatis 易于掌握。拿来文档看半天到两天就可以掌握了。 Hibernate 可能需要 3 倍以上的时间来掌握。 2. iBatis 更容易进行 sql 的 优化。 这个应该大家都有共识了。另外 Hibernate 生成的 sql 也实在是太难看了。鉴 于有的朋友提到了 sql 不太重要。我想在这里强调一下我的经验,一般系统性能 的转载 2012-03-26 17:29:07 · 454 阅读 · 0 评论 -
整合spring 和struts
整合spring 和struts可以归结为三种方式: 1:使用 Spring 的 ActionSupport 类整合 Structs(具体structs 的action继承ActionSupport ,并且通过actionSupport 的getApplicationContext 取得spring 的 applicationContext 从而可以拿到Spring原创 2012-03-13 15:12:00 · 421 阅读 · 0 评论 -
Struts MVC 和 spring MVC
Struts的工作流程: 初始化ActionServlet(基于struts-config.xml) ->ActionMapping ->ActionForm -> Action ->ActionForward 对象 在web应用启动时就会加载初始化ActionServlet,ActionServlet从 struts-config.xml文件中读取配置信息,把它们存放到各种配置对象原创 2012-02-29 14:28:07 · 602 阅读 · 0 评论