Spring Summary-Summary of AOP, JDBC, and transactions, aopjdbc

Source: Internet
Author: User

Spring Summary-Summary of AOP, JDBC, and transactions, aopjdbc

1. The last time I summarized the three Core components (Core, Beans, and Context) of Spring, the AOP, JDBC, and transactions summarized today can all be seen as applications of the three Core components.

Among them, Spring's transaction management adopts AOP-based declarative transaction management to supplement JDBC data operations.

2. Several problems that need to be understood when learning AOP.

(1) AOP is based on dynamic proxy, so before learning AOP, I first have a deep understanding of dynamic proxy.

(2) What is the relationship between AOP and aspect.

(3) AOP has many concepts and understands the meaning of each term: Cut, enhancement, proxy, cut point, and connection point.

(4) Enhanced classification and enhanced use: programming, declarative, and AspectJ annotation. How to use and pay attention to each method.

(5) write an XML expression for AspectJ cut points.

3. Several questions that need to be understood when learning JDBC.

(1) Spring supports JDBC through JdbcTemplate.

(2) JdbcTemplate is similar to DBUtil for JDBC and is a tool.

(3) Use of JdbcTemplate

(4) Two JdbcTemplate configuration methods

(5) Why can't JdbcTemplate be called a framework, but a tool.

4. Several issues that need to be understood when learning Spring transactions.

(1) Spring transaction management is managed through the Transaction Manager, which is the prerequisite for Spring transaction management.

(2) XML declarative Transaction Management and @ Transactional annotation declarative Management

(3) Propagation Behavior of transactions: REQUIRED and REQUIRED_NEW

(4) other attributes of the transaction: Read-only, timeout, and rollback

5. So far, the main content of Spring except web and webmvc has been summarized. There are still a lot of details, so gradually improve it.

 

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.