Spring Advanced One
Previously created objects are in the way of new
Spring proposes a new solution
principles and usage techniques of the IOC bottom
One: XML configuration
Two: dom4j parsing XML
Three: Design pattern of engineering
Four: Reflection
Ioc Introductory Case
<beans xmlns= "Http://www.springframework.org/schema/beans" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc= "Http://www.springframework.org/schema/mvc" xmlns:context= "Http://www.springframework.org/schema/context" xmlns:aop= "HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP" xmlns:tx= "Http://www.springframework.org/schema/tx" xmlns:task= "Http://www.springframework.org/schema/task" Xsi:schemalocation= "Http://www.springframework.org/schema/beans Http://www.springframework.org/schema/beans/spring-beans-4.0.xsd Http://www.springframework.org/schema/mvc Http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd Http://www.springframework.org/schema/context Http://www.springframework.org/schema/context/spring-context-4.0.xsd Http://www.springframework.org/schema/aop Http://www.springframework.org/schema/aop/spring-aop-4.0.xsd Http://www.springframework.org/schema/tx Http://www.springframework.org/schema/tx/spring-tx-4.0.xsd Http://www.springframework.org/schema/task Http://www.springframework.org/schema/task/spring-task-4.0.xsd
</beans> |
|
|
|
Creating an object from a configuration file
class to create the full path of the object class
XML File Hints
Three ways to create objects
The second Kind
Third Kind
Factory-method as Method name
09-bean Tags common attributes (ID,class , and name)
Introduction to 11- attribute injection
The Spring Framework supports only the previous two ways
Construction Mode
Print results
Set Injection
Set Injection Object
15- Injecting Complex type properties
P Namespace Injection There are many more complex injection arrays of the list map ...
The difference between Ioc and DI
Spring Advanced One