Comparative advantages and disadvantages of five JAVA Web Framework, Spring MVC lead

There is no doubt, Java is one of the world's most important programming language. js framework provides programmers with a solid foundation to build a program. It includes classes and functions defined for managing hardware, software and processes interact with the system input that allows developers easier. JavaScript framework designed to support dynamic Web sites, Web services, Web resources and Web development applications. In this paper, we collected five information about Java Web framework.

1.Spring MVC - Java Web Framework

Since its first release from 10 years, Spring MVC framework is still ahead of the competition. Over time, it expanded into a full MVC framework and evolving into a comprehensive framework for Java. As an integrated application-specific scientific tiered J2EE / Java framework that provides a software engineer for the Web application configuration, application development tools and complete security program package. The framework developed by its ecosystem is known, it provides a number of additional options, from SOAP Web Services, REST API to secure encryption and authorization.  

advantage:

  • Enhanced Modular lightweight containers

  • Can be deployed across a variety of platforms

  • Flexible use dependency injection

  • Including XML, Java and comments configuration of the three-way configuration

  • Eased by POJO's injection of test data

Disadvantages:

  • Steep learning curve

  • Novice implementation difficult

  • It takes time to deploy

2.JSF - Java Web Framework

Oracle believes JSF framework Java is a network utility designed to simplify development integration of Web-based UI. Although this is not very good framework in Java development, but Oracle provides documentation is very easy to use. This is a standardized technology, has a wealth of tools and libraries, you can pave the way for highly complex applications. JSF specification allows to enable reuse and extend the standard user interface components. It reduces the creation and maintenance of Java applications running on a server and pain render the UI application on the target client. Not only that, it also provides easy data transfer and reusable UI components. 

advantage  

  • Because it can create reusable components, and therefore more efficient and consistent

  • With good suppliers like JSF EJB implementation (IBM, Oracle, JBoss, etc.)

  • Ready to use like Apache, Infragistics, Richfaces and other components

  • Facilitate the development of personnel, especially those who use the IDE software

JSF shortcomings

  • Steep learning curve

  • Did not consider bookmarking tool

  • Not extensible

  • Original Ajax support

  • Lack of flexibility

3.Google Web Toolkit - Java Web Framework

Google Web Toolkit (GWT) is an open source development toolkit that enables developers to build and optimize complex JS front-end application. Its main goal is to provide high-performance Web application development, even if developers are not familiar with JavaScript, XMLHttpRequest or browser unpopular partial knowledge. In order to let high confidence, Google's own many products, including AdSense, Hotel Finder, Wallet, AdWords so the use of GWT.     

advantage:

  • Easier to learn

  • Built-in IDE support for Java code refactoring

  • We can build a large number of responsive Web applications on the client side and the server side to reduce trivia

  • It can be iteratively smooth migration from a typical Web application to GWT application

  • Even in the case of using AJAX, also has a built-in browser back button support

Disadvantages:

  • Java developers only beneficial, not much help developers PHP or .NET

  • Due to the rapid development of GWT, there are many versions is difficult to get all the features and interfaces

  • Compiling slow, it requires the use of proprietary methods to define the structure

4.Grails - Java Web Framework

Grails is an open source Java Web framework designed to productivity and defaults developer and Convention-over-Configuration API par. It integrates with the Java Virtual Machine (JVM), while providing powerful features, including a compile-time meta-programming, asynchronous programming and domain-specific language. Grails uses powerful view technology, integrated NoSQL / ORM support, plug-ins and support for Spring dependency injection to be updated. So you can easily integrate and interoperate Java, Java EE and JVM container. 

advantage:

  • Grails provides a rapid development cycle

  • Ideal for small and medium-sized projects

  • Choose from a variety of plug-ins

  • It is simple and easy to understand documentation

  • You can change the configuration without restarting the server

Disadvantages:

  • Using runtime language can be difficult

  • Development of multi-threaded applications, GORM may be a problem

  • Complex integration process

  • Running time delay

5.Struts 2 - Java Web Framework

The Apache Struts is used to develop a modern Java Web applications open source MVC framework for free. It contains a set of classes and interfaces, work together to develop Web applications. It is suitable for many applications in the Java Web framework, and subject to a lot of community support. To further extend the Struts Java framework, Struts 2 as the successor has changed dramatically. This framework is best suited for the development of contemporary Java EE web applications engineers, Apache Software Foundation Struts 2 provides a means for developing network-oriented, enterprise-level application developers, and optimize the entire development process of the tool.

advantage:

  • No thread safety issues

  • Dependency injection makes testing easier

  • It can use the "object graph navigation language" (OGNL)

  • Struts 2 framework Servlet context expressed in the form of a simple map 

  • It supports manual verification by verification method, verification and further comprising the sub-frame

Disadvantages:

  • Because it is completely different from 1 and Struts, difficult migration

  • Struts 2 documentation is very limited

  • Due to poor document management, it is difficult to find a new user benefits

 

Reference  https://blog.csdn.net/JackRen_Developer/article/details/79519538

Guess you like

Origin www.cnblogs.com/zhuyeshen/p/11220166.html