Spring Advanced One

Source: Internet
Author: User

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:tx= "Http://www.springframework.org/schema/tx"
xmlns:task= "Http://www.springframework.org/schema/task"
Xsi:schemalocation= "Http://www.springframework.org/schema/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

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.