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.