(a) Build a common DLL for spring.net environment
1.spring.core-the foundation of the entire framework, enabling the function of dependency injection
2.spring.aop--provides aspect-oriented programming (AOP) support
3.SPRING.DATA--A defines an abstract data access layer that allows data access across a variety of data access technologies, from ADO to various ORM.
(ii) configuration file settings
Configuration of 1.XML files
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= "full class name, assembly name" singleton= "true" >
If the class contains other classes
<property name= "Property name" Ref= "class name" ></property>
Assigning values to properties in a class
<property name= "Property name" value= "value" ></property>
</object>
<object id= "class name" Type= "full 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>
The location of the XML
<resource uri= "File://XXX.xml" ></resource>
</context>
<objects xmlns= "Http://www.springframework.net" >
</objects>
</spring>
</configuration>
Spring Learning Path