• xml配置文件解释


    XML 指可扩展标记语言(EXtensible Markup Language)

    xmlns:是指XML命名空间 ( XML Namespace )

    XSD是指XML结构定义 ( XML Schemas Definition ) XML Schema 是DTD的替代品。XML Schema语言也就是XSD。

    下面xml文件中下划线标注的是每个命名空间的唯一标识名,比如xmlns:xsi表示xsi命名空间,xmlns后面没有命名空间名称的,表示默认的命名空间

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:context="http://www.springframework.org/schema/context"
           xmlns:mvc="http://www.springframework.org/schema/mvc"
          xsi:schemaLocation="http://www.springframework.org/schema/beans 
                               http://www.springframework.org/schema/beans/spring-beans.xsd
                               http://www.springframework.org/schema/context 
                               http://www.springframework.org/schema/context/spring-context.xsd
                               http://www.springframework.org/schema/mvc
                               http://www.springframework.org/schema/mvc/spring-mvc.xsd">
        <context:component-scan base-package="xxx.xxx.controller" />
         
        <context:annotation-config/>
        <mvc:default-servlet-handler/>
        <mvc:annotation-driven/>
         
        <mvc:resources mapping="/images/**" location="/images/" />
         
        <bean id="xxx" class="xxx.xxx.xxx.Xxx">
            <property name="xxx" value="xxxx"/>
        </bean>
    </beans>
    schemaLocation是xmlns:xsi里面的属性。

    https://www.cnblogs.com/zhao1949/p/5652167.html

    -----------------------------------------------------------------------------

  • 相关阅读:
    VLAN应用实例
    eNSP 简介及基础操作
    管道符、重定向
    使用Bind提供域名解析服务-DNS
    Samba服务
    虚拟网站主机功能
    springboot接受表单400错误
    Java方法遍历一次数组返回两个结果(最大值与最小值)
    Java异常总结
    Java内部类
  • 原文地址:https://www.cnblogs.com/Alwaysbecoding/p/9777165.html
Copyright © 2020-2023  润新知