Spring learning path, spring path
(1) Build Common DLL in Spring. NET Environment
1. spring. core-the basis of the entire framework, implementingDependency InjectionFunctions
2. Spring. AOP-Support for Aspect-oriented programming (aop)
3. Spring. Data -- a defines an abstract Data access layer, which can be accessed across various Data access technologies (from ADO. NET to various orm.
4. Common. Logging. dll
(2) Configuration File Settings
1. XML file configuration
Copy to output directory: Always copy
<? Xml version = "1.0" encoding = "UTF-8"?>
<Objects xmlns = "http://www.springframework.net"
Xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
Xsi: schemaLocation = "http://www.springframework.net
Http://www.springframework.net/xsd/spring-objects.xsd>
<Object id = "Class Name" type = "complete Class Name, assembly name" singleton = "true">
// If the class contains other classes
<Property name = "property name" ref = "Class name"> </property>
// Attribute assignment in the class
<Property name = "property name" value = "value"> </property>
</Object>
<Object id = "Class Name" type = "complete Class Name, assembly name" singleton = "true">
<Property name = "property name" value = "value"> </property>
</Object>
</Objects>
1. appconfig
<? Xml version = "1.0" encoding = "UTF-8"?>
<Configuration>
<ConfigSections>
<SectionGroup name = "spring">
<Section name = "context" type = "Spring. Context. Support. ContextHandler, Spring. Core"/>
<Section name = "objects" type = "Spring. Context. Support. DefaultSectionHandler, Spring. Core"/>
</SectionGroup>
</ConfigSections>
<Spring>
<Context>
// XML location
<Resource uri = "file: // XXX. xml"> </resource>
</Context>
<Objects xmlns = "http://www.springframework.net">
</Objects>
</Spring>
</Configuration>