The Spring Learning Path

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.