猿问

xml文件解析疑问?

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"

    xmlns="http://www.springframework.org/schema/beans"

    xsi:schemaLocation="

           http://www.springframework.org/schema/aop   http://www.springframework.org/schema/aop/spring-aop.xsd

           http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd

       "

    default-autowire="byName">

<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">

        <property name="scopes">

            <map>

                <entry key="pvgscope">

                    <bean class="com.alibaba.tboss.common.auth.scope.PvgScope" />

                </entry>

            </map>

        </property>

    </bean>

</beans>

如上是一段xml配置文件,beans这个标签是被xsi:schemaLocation=“”这个里面的来解析的么?它是如何解析的?<bean>标签呢?它又是如何被解析的呢?是被spring中的bean来解析的么?<bean>里面的这些<property><map><entry>标签是如何解析呢?


阿晨1998
浏览 314回答 1
1回答
随时随地看视频慕课网APP

相关分类

Java
我要回答