ImageVerifierCode 换一换
格式:DOCX , 页数:8 ,大小:19.86KB ,
资源ID:28589438      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/28589438.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(The pros and cons of Struts Hibernate and Springframeworks.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

The pros and cons of Struts Hibernate and Springframeworks.docx

1、The pros and cons of Struts Hibernate and Spring frameworksThe pros and cons of Struts, Hibernate, and Spring 3 frameworksThe struts framework has the advantages of modularity, flexibility and reuse, while simplifying the development of MVC based web applications.Advantages:Struts, like many Apache

2、projects such as Tomcat and Turbine, is open source software, which is one of its great advantages. Enable developers to learn more about their internal implementation mechanisms.Beyond that, the benefits of Struts are primarily focused on two aspects: the Taglib and the page navigation. The Taglib

3、is a tag library for Struts that is flexible enough to greatly improve development efficiency. In addition, as far as the current domestic JSP developers are concerned, it is very rare to develop your own tags in addition to the commonly used tags brought in by JSP, and perhaps Struts is a good star

4、ting point.As for page navigation, I think thats going to be a development in the future, in fact, to make the context of the system clearer. By using a configuration file, you can grasp the connection between the parts of the system, which is of great benefit to later maintenance. This is especiall

5、y true when another developer takes over the project.In addition, struts is an industry standard (many successful cases), rich in learning resources, and excellent HTML tagsDisadvantages:Taglib is one of the advantages of Struts, but for beginners, but need a process of continuous learning, can even

6、 disrupt your web page in the habit of writing, but, when you get used to it, you will feel its really good.Struts split the Controller of MVC into three, adding to the complexity of the system while gaining clarity.ActionForms is not used for unit testing (StrutsTestCase can only be used for integr

7、ation)Struts, like many Apache projects such as Tomcat and Turbine, is open source software, which is one of its great advantages. Enable developers to learn more about their internal implementation mechanisms. The Struts open source framework was created to make it easier for developers to build We

8、b applications based on Java servlets and JavaServer Pages (JSP) technologies. The Struts framework provides a unified standard framework for the open, which allows developers to focus more on the business logic of the application by using Struts as a foundation. The Struts framework itself is a mod

9、el-view-controller (MVC) implementation using Java servlets and JavaServer Pages technology.Specifically, the advantages of Struts are:Implement the MVC pattern, and the structure is clear, allowing developers to focus on the implementation of the business logic.Rich tags can be used, and the Struts

10、 tag library (Taglib), if flexible, can greatly improve development efficiency. In addition, as far as the current domestic JSP developers are concerned, it is very rare to develop your own tags in addition to the commonly used tags brought in by JSP, and perhaps Struts is a good starting point.Page

11、 navigation is going to be a development in the future, in fact, to make the context of the system clearer. By using a configuration file, you can grasp the connection between the parts of the system, which is of great benefit to later maintenance. This is especially true when another developer take

12、s over the project.Provide Exception handling mechanisms.Database connection pool management6. Support the I18NA, go to display layer, need to configure forward, every time go to the show layer, that most are directly transferred to the JSP, and involves turning, need to configure forward, if there

13、are ten shows the JSP layer, need to configure the struts, ten times and does not include directory and file changes, sometimes need to modify the forward, note that every change configuration, request to redeploy the whole project, and tomcate this server, also have to restart the server, if the bu

14、siness change complex frequent system, such as simple operation unthinkable. Now thats it, dozens of people are using our system online at the same time, and you can imagine how big my worries are.The Action of Struts must be thread-safe, which allows only one instance to handle all requests. So all

15、 the resources that action USES must be synchronized, which raises the issue of thread-safety.Each Action of Struts is coupled with the Web layer, so that its tests depend on the Web container, and unit tests are difficult to implement. However, a Junit extension tool, Struts TestCase, can implement

16、 its unit tests.Four, type conversion. Strutss FormBean USES all the data as a String type, which can be transformed using the tool Commons - Beanutils.But its transformation is at the Class level, and the type of transformation is unconfigurable. The error message returned to the user is also very

17、difficult.5, the dependency on servlets is too strong. Struts needs to rely on ServletRequest and ServletResponse to handle Action, and all it cant get rid of the Servlet container.The front-end expression language aspect. Struts integrates JSTL, so it mainly USES the expression language of the JSTL

18、 to get the data. However, the expression language of the JSTL is very weak in the Collection and index properties.7, the control of Action execution is difficult. Struts creates an Action and it will be very difficult to control its execution order. You may even want to rewrite the Servlet to imple

19、ment your functional requirements.Eight, to Action before and after treatment. The Struts processing when the Action is based on the class hierarchies, it is difficult to operated in Action before and after processing.Nine, support for events is not enough. In the struts, is actually a Form the Form

20、 corresponding to an Action class (or DispatchAction), in other words: in the struts is actually a Form corresponding to an event, only the struts this event is called application event, application event and component compared to the event is a coarse-grained events.Struts important actionforms for

21、m object is an object, it represents a kind of application, this object contains at least a few fields, these fields are the Jsp page in the form input field, as a form corresponding to an event, so that when we need to refine the event granularity to form in the field, that is, a field correspondin

22、g to an event, simply use the Struts is unlikely, of course, by combining turn JavaScript can be implemented.2. HibernateHibernate is an open source object-relational mapping framework, it is very lightweight for JDBC object encapsulation, make the use of Java programmers can follow ones inclination

23、s to manipulate the database object programming thinking.Hibernate can be used in any situation, using the JDBC can in the Java client program, practical, and can also be used in the Servlet/JSP Web application, the most revolutionary significance is that Hibernate can replace the CMP in EJB of J2EE

24、 application architecture, to complete the important task of data persistence.Most development organizations often adopt data persistence layers that create separate data. Once the underlying data structure changes, the cost of adapting the rest of the application to this change will be enormous. Hi

25、bernate duly fills this gap, providing an easy-to-use, efficient object-relational mapping framework for Java applications. Hibernate is a lightweight persistence framework that is rich in functionality.Advantages:A.h.ibernate USES the Java reflection mechanism instead of the bytecode enhancement pr

26、ogram to achieve transparency.B.H ibernates performance is excellent because its a lightweight framework. The flexibility of mapping is excellent.It supports a variety of relational databases from one-to-one to many-to-many complex relationships.Cons: it limits the object model you use. (for example

27、, a persistence classes cannot be mapped into multiple tables) its unique interface and poor market share also disturbing, nonetheless, Hibernate or with its powerful momentum to mitigate these risks. Other open source persistence frameworks also have some, but none of them have a market impact like

28、 Hibernate.Above post a little passion, in the hope that understanding, I love you not because of some people criticize the Hibernate and uncomfortable, but because of who I am inside the post view really made me feel ridiculous. No matter what you think of Hibernate as a good thing, the only thing

29、Im sorry about is that you cant find a really high-level evaluation of Hibernate in the Chinese BBS. On TSS has a hot about Hibernate thread, with hundreds of paste, including Hibernate author Gavin and LiDO JDO CTO, for JDO and Hibernate had some heated argument, I have the patience to see it again

30、, still have not found to Hibernate really powerful attack, the so-called attack just to Hibernate without a GUI configuration tool, no commercial company support, not standardized, and so on these untenable reason.Here are some Suggestions:One, Hibernate is the lightweight object encapsulation of J

31、DBC, an independent object persistence layer framework, and App Server, which is not necessarily associated with ejbs. Hibernate can be used in any situation where JDBC can be used,For example, the database access code for the Java application, the implementation class for the DAO interface, and eve

32、n the code for accessing the database in BMP. In that sense, Hibernate and EB are not a category thing, and there is no such thing as an either/or relationship.Second, Hibernate is a closely associated and JDBC framework, Hibernate compatibility and JDBC driver, and the database has a certain relationship, and the Java program that USES it, however, doesnt have anything to do with the App Server, there is no compatibility problems.Hibernate cant be used to compare directly with Entity beans, only in the framework of the entire J2EE project. And even in the whole software framework, Hiberna

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1