Consolidation of Spring knowledge
AOP and IOC concepts, as well as understanding why the spring Framework is used for the purpose of transforming the direction of resource acquisition. More like it's on demand.
How to configure the Bean: Using XML, based on two kinds of annotation method.
1 by means of a full-class name reflection, 2 through a factory instance, 3 through a lower beanfactory way
There are two ways to rely on injecting di: attribute injection: Property and constructor injection: Constructor-args.
Injected details: Literal value can be injected through the tag of value, special characters! Method of [cdata[]]. To specify a reference to another bean by using the Ref method
can also be referenced by ${xxx}.
Cascading properties: That is, Cars.price modifies its value.
Collection properties: The list and map lists are labeled with a ref group, and map uses entry to configure its properties.
Take out the collection beans and separate them into a separate area? New namespaces util such as Util:list id= "Cars" the other is ref car.
There are also autowired byname Bytype, which can be more easily defined by the P-namespace.
Inheritance relationship between beans: parent= ""
Scope of the Bean: scope is set to Singleton and prototype.
Spel language is more dynamic to assign values.
Static factory methods and instance factory methods to configure the bean instance, and the relationship between the Factorybean configuration methods are not understood.
Use external properties file: Context:properties not understand. Remember.
2018/9/6 the Spring framework