01 Struts2 framework for learning

1. Introduction framework

The so-called framework, is to put some of the tedious repetitive code is encapsulated, the programmer in the code to put more energy into the analysis of business needs and understand it. 

Features: encapsulates a lot of detail, when using the programmer will be very simple.

Earlier, there are three frame struts, hibernate, spring (SSH)

In recent years, SpringMVC , the mybatis, the Spring (the SSM)

MVC architecture:

M: Model model, the data package. javabean    

V: view view, display interface. jsp     

C: Controller controller, control program flow.

2.Java SSH framework introduced

  SSH shows three kinds of frame J2EE project, i.e. the Spring + + the Struts the Hibernate . Struts Model, View, and the Controller provides the corresponding components. Spring is a lightweight inversion of control (IoC) and section (AOP) facing the container frame, which is created by Rod Johnson. It is designed to address the complexity of enterprise application development created. Spring uses basic JavaBean to do things previously only possible done by EJB. Hibernate object-relational mapping framework is an open source, it had a very lightweight JDBC object package, can be used in any occasion using JDBC can be used in Servlet / JSP Web application, you can also use EJB the J2EE architecture replaced by CMP, complete data persistence task.

3.Struts2 Getting Started --- development environment to build

Apache Struts2 is the issue of open source MVC framework. Note: It is only the presentation layer web (MVC) framework.

 (1) Development Kit download Struts2

http://struts.apache.org

Select the version 2.3.33 of courses offered

 

Guess you like

Origin www.cnblogs.com/luckyplj/p/11288661.html