2013年7月3日

Spring Auto Scanning Components

摘要: Normally you declare all the beans or components in XML bean configuration file, so that Spring container can detect and register your beans or components. Actually, Spring is able to auto scan, detect and instantiate your beans from pre-defined project package, no more tedious beans declaration in 阅读全文

posted @ 2013-07-03 00:29 Step-BY-Step 阅读(316) 评论(0) 推荐(0) 编辑

SSH架构简单总结

摘要: Struts、spring、Hibernate在各层的作用1)struts 负责 web层. ActionFormBean 接收网页中表单提交的数据,然后通过Action 进行处理,再Forward到对应的网页。 在struts-config.xml中定义, ActionServlet会加载。2)spring 负责业务层管理,即Service(或Manager).1. service为action提供统计的调用接口,封装持久层的DAO,。2.可以写一些自己的业务方法。3.统一的javabean管理方法4.声明式事务管理5.集成Hiberante3)Hiberante,负责持久化层,完成数据库的 阅读全文

posted @ 2013-07-03 00:26 Step-BY-Step 阅读(287) 评论(0) 推荐(0) 编辑

导航