1. Customize the task. 2. active MQ. 3. Email. 4. configuration. 5. Integration
Spring includes IOC and AOP
IOC
IOC is the inversion of control (DI dependency injection). IOC can improve reusability and refactoring. In applicationContext. xml, each bean is a singleton.
If you do not want to use a Singleton, you can add the scope = "prototype" attribute to the bean.
Method of dependency injection:
1. setter method injection adds property to bean
2. constructor-arg ref = ""/>
3. Interface Injection
Add default-autowire = "byName" to the xml template configuration. If an object exists in a bean, you do not need to reconfigure it.
The bean class must have an attribute. The attribute name must be the same as the bean id of the object in xml.
AOP
Aop is a plane-oriented programming that improves code refactoring and reduces coupling.
Notification is divided
Pre-notification
Post notificationSurround notificationException notificationAdvisor notification
After the target object is woven into the target object, a proxy object with the same interface as the target object is returned. If no interface exists, CGLIB is used as the proxy by default.
CGLIB proxy
Transactions
ACID: atomicity, consistency, isolation, durability