摘要: struts 控制用的hibernate 操作数据库的spring 用解耦的Struts 、 spring 、 Hibernate 在各层的作用1 ) struts 负责 web 层 .ActionFormBean 接收网页中表单提交的数据,然后通过 Action 进行处理,再 Forward 到对应的网页。在 struts-config.xml 中定义 <action-mapping>, ActionServlet 会加载。2 ) spring 负责业务层管理,即 Service (或 Manager).1 . service 为 action 提供统计的调用接口,封装持久层的 阅读全文
posted @ 2012-08-04 05:18 无头咸鱼 阅读(224) 评论(0) 推荐(0)