Spring lecture notes (tg)

1. Summary, Spring major review focused on the following points

  - Spring overall structure, Maven dependent (environmental structures)

  - IOC: bean scanning, the bean properties and injection assembly, scope, lifecycle

  - AOP: Dynamic Proxy, proper nouns understanding, front / back / return / exception / surround notification (around advice is powerful, but not recommended), cut priority (the smaller the order, the higher the level)

  - Transaction: Classification Affairs (programmatic / declarative, Spring recommend non-invasive declarative transaction), the transaction attribute (propagation behavior / isolation level / rollback / read only / expiration time)

 

2. The above xml configuration can be used, but is recommended as annotations, more clean and refreshing

 

3. It should be noted, bean automatic assembly mean Spring will automatically scan and assemble bean, not to say that is the way into remarks by configuring automatic assembly.

  Automatic assembly can @Autowired annotation, XML also be configured autowired

Guess you like

Origin www.cnblogs.com/heyboom/p/11354374.html