Good tutorial Java programmers to share a few popular Java frameworks

  Good programmers Java tutorial share several popular Java framework

  A .springmvc framework

  Description: SpringWebMVC is an implementation of a type of request-driven design patterns WebMVC lightweight Java Web framework based on the idea that the use of MVC architectural pattern, the web layer to decouple duties, request driver refers to the use request based - response model, the purpose of the framework is to help us simplify the development, SpringWebMVC also to simplify our daily Web development.

  advantage:

  1. Clear conditioning controller (Controller), validator (Validator), command object (commandobect), the form object (formObject), the object model (modelobject), Servlet distributor (the DispatcherServlet), the mapping processor (HandlerMapping), attempts to parser (viewresoler), etc., so you can structured learning.

  2, clear division of labor, and extension points is quite flexible and can be easily extended, although almost no;

  3, because the command object is a POJO, the framework do not need to inherit a particular API, you can use the command object directly as a business object;

  4, and other frameworks Spring seamless integration, other Web framework is not available;

  5, can be adapted by HandlerAdapter may support any class as the processor;

  6, customization, HandlerMapping, ViewResolver, etc. can be very simple customization;

  7, powerful data validation, formatting, binding mechanism;

  8, using the Spring Mock objects can provide a very simple means of testing for Web layer;

  9, localization, supporting analytical themes, making it easier to switch internationalization and themes.

  10, a powerful JSP tag library to make it easier to write JSP.

  Two .spring framework

  Summary:

  Spring is an open source framework to solve the complexity of enterprise application development created. One of the main advantages of the framework is its layered architecture, layered architecture allows you to select which components to use, as well as J2EE application development provides an integrated framework.

  advantage:

  Lightweight container frame, not intrusive

  IoC easier combination relationships between the objects, through the interface for programming, may develop low coupling.

  Easy local testing (Junit unit testing, do not deploy server)

  AOP can be more easily with enhanced functionality, follow the OCP development principles.

  Spring create a default object for a single case, we do not need to use design patterns to develop a single case of monomers.

  Spring integration is very powerful, the other can be centrally managed configuration other frameworks.

  Spring's declarative transaction convenience of use.

  Three .mybatis framework

  Summary:

  MyBatis's predecessor called iBatis, apache this is an open source project in 2010, the project migrated from apachesoftwarefoundation to googlecode, and changed its name to MyBatis. MyBatis persistence framework is to support outstanding ordinary SQL queries, stored procedures and advanced mappings. MyBatis eliminates almost all of the retrieved manually set JDBC code and parameters and the result set. MyBatis using simple XML or annotation for the original mapping and configuration, interface and Java POJOs (PlanOldJavaObjects, normal Java objects) in the database records.

  advantage:

  sql written in xml, to facilitate unified management and optimization.

  Releasing the coupling sql with program code.

  Providing a mapping label, with the support of the object database orm field relational mapping

  Tags provide object-relational mapping, support for object-relational form maintenance

  Providing xml tags, support the development of dynamic sql


Guess you like

Origin blog.51cto.com/14573321/2454190