How to learn the framework?

Source: Internet
Author: User

1. Why learn the framework?

To improve development efficiency, the framework is someone else's written tool class, we need to follow its rules to operate.

2. What frameworks are we currently learning?

A. Persistence Layer Framework: MyBatis

1) What is persistence?

Narrow sense: The data is persisted to the database;

Generalized: All operations against a database are called persistent operations.

2) crud refers to the addition (Create), read (Retrieve) (Data re-fetch), update (refresh), and deletion (delete) during calculation processing.

3) What is the persistence layer framework?

MyBatis and Hibernate are also referred to as ORM Frameworks, O (object) "Object" R (relational) "relationship" M (Mapping) "Mappings" (mappings--relationships between the framework map objects and the tables and fields in the database)

4) What is the difference between MyBatis and hibernate?

MyBatis is semi-automatic, we need a private custom SQL statement for CRUD operations;

Hibernate is fully automated, just what we do with objects.

B.web Layer Frame: Springmvc used to replace the servlet

1) What are the Web layer frameworks?

Sreuts2 and Springmvc

2) What is the difference between Sreuts2 and SPRINGMVC? (Refer to Baidu for details)

1 : spring3 MVC develops more efficiently than struts 2 : spring3 MVC can be consideredas 0 configuration 345: Since Struts2 needs to be encapsulated for each request, the variables of the servlet life cycle, such as request,session, are encapsulated into a single map,
Supply each action to use and ensure thread safety. So in principle, it's more memory-intensive.

C. Container frame: Spring

1) One-stop service, IOC and AOP-based container framework

2) refer to the Spring Learning notes for IOC and AOP

3. How to learn the framework?

A. Find the jar package you need

B. Core configuration Files

C. Simple sample operations and CRUD operations through the API.

4.MyBatis is actually the encapsulation of JDBC personal understanding

How to learn the framework?

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.