The advantages and disadvantages of the five great JAVA Web frameworks, Spring MVC leads

Source: Internet
Author: User
Tags grails java web

There is no doubt that Java is one of the most important programming languages in the world today. The JS Framework provides a solid foundation for programmers to build programs. It includes defined classes and functions for hardware device management, interacting with system software, and processing input, making developers easier. The JavaScript framework is designed to support the development of dynamic Web sites, Web services, Web resources, and Web applications. In this article, you collected 5 information about the Java Web framework. 1.Spring Mvc-java WEB Framework

The Spring MVC framework is still ahead of competitors since its first release for more than 10 years. Over time, it expands into a complete MVC framework and continues to evolve into a comprehensive Java framework. As a layered J2ee/java framework for integrating special applied Sciences, the framework provides software engineers with a complete toolkit for WEB application configuration, application development, and security projects. Known for its well-developed ecosystems, the framework offers a number of additional options, from SOAP Web services, REST APIs to secure encryption and authorization.

Advantages:

Lightweight containers for enhanced modularity

Can be deployed across a variety of platforms

Flexible Dependency Injection Use

Three-way configuration including Xml,java and annotation configurations

Alleviated the injection test data through Pojo ' s

Disadvantages:

The learning curve is quite steep.

Novice implementation is more difficult

It takes time to deploy the 2.jsf-java WEB framework

Oracle considers JSF to be a practical web Java framework designed to simplify the integrated development of web-based UIs. Although this framework is not very good for Java development, Oracle provides documents that are easy to use. This is a standardized technology with a wealth of tools and libraries that pave the way for you to be in highly complex applications. The JSF specification enables reuse and extension of standard user interface components. It reduces the pain of creating and maintaining Java applications running on the server and rendering UI applications on the target client. Not only that, it also provides simple data transfer and reusable UI components.

Advantages

Because it can create reusable components, it is more efficient and consistent

Support Excellent vendors (Ibm,oracle,jboss, etc.) for JSF implementations like EJB

Prepare to use components such as Apache,infragistics,richfaces

Easy for developers, especially those who use IDE software

Disadvantages of JSF

The steep learning curve

No Bookmark tool considered

Not extensible

Original AJAX support

Lack of flexibility 3.Google Web Toolkit-java web Framework

Google Web Toolkit (GWT) is an open source development tool Set that enables developers to build and optimize complex JS front-end applications. Its primary goal is to provide the development of high-performance Web applications, even if developers are unfamiliar with javascript,xmlhttprequest or browser-biased knowledge. To make it credible, many of Google's own products, including Adsense,hotel finder,wallet,adwords, use GWT.

Advantages:

More easy to learn

Built-in IDE supports refactoring Java code

Can build responsive Web applications and reduce server-side trivia on a client

Can be iteratively migrated smoothly from a typical Web application to a GWT application

Built-in browser Back button support even when using Ajax

Disadvantages:

For Java developers only, not much help for PHP or. NET Developers

Because of the fast development of GWT, there are many versions that make it difficult to get all the features and interfaces

Slow compilation 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 equate developer productivity with default values and Convention-over-configuration APIs. It integrates with Java virtual machines (JVMS) while providing powerful capabilities, including compile-time metaprogramming, asynchronous programming, and domain-specific languages. Grails is updated with powerful view technology, integrated nosql/orm support, plug-in and dependency injection supported by spring. Allows you to easily integrate and interoperate with Java,java EE and JVM containers.

Advantages:

Grails provides a fast development cycle

Ideal for small and medium sized projects

Various plug-ins to choose from

A simple and understandable document

You can change the configuration without restarting the server

Disadvantages:

It can be difficult to use the runtime language

Developing multithreaded applications, GORM may cause problems

Complex integration process

Delayed run time 5.Struts 2-java web Framework

The Apache struts is an open source, free MVC framework for developing modern Java Web applications. It contains a set of classes and interfaces to collaborate on the development of Web applications. It applies to the network framework of many Java applications and is supported by many communities. To further extend the Struts Java framework, struts 2 has changed significantly as a successor. This framework is best for engineers who develop contemporary Java EE Web applications, and the Apache Software Foundation, with Struts 2, provides developers with a tool for developing network-oriented, enterprise-class applications and optimizing the entire development process.

Advantages:

No thread safety issues

Dependency Injection makes testing simpler

It can use the object Map Navigation language (OGNL)

The servlet context of the Struts 2 framework is represented in a simple map form

It supports manual validation through the validation method and also includes child framework validation

Disadvantages:

Because it's completely different from struts 1, it's difficult to migrate

Struts 2 documentation is very limited

Because of poor documentation management, it is difficult for new users to discover its benefits

From: Findnerd RELATED LINKS Grails Details: Click to view grails Download address: Click to download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.