zoukankan      html  css  js  c++  java
  • xsd解析

    1.  解释:

    <xsd:element name="interceptors">
    <xsd:annotation> 这一块是对第一行的注解(解释) <xsd:documentation><![CDATA[ The ordered set of interceptors that intercept HTTP Servlet Requests handled by Controllers. Interceptors allow requests to be pre/post processed before/after handling. Each inteceptor must implement the org.springframework.web.servlet.HandlerInterceptor or org.springframework.web.context.request.WebRequestInterceptor interface. The interceptors in this set are automatically configured on each registered HandlerMapping. The URI paths each interceptor applies to are configurable. ]]></xsd:documentation> </xsd:annotation> <xsd:complexType> 表示一个复合类型 <xsd:choice maxOccurs="unbounded"> <xsd:element ref="beans:bean"> 表示可以是一个bean标签 <xsd:annotation> 对上一行的注解 <xsd:documentation source="java:org.springframework.web.servlet.handler.MappedInterceptor"><![CDATA[ Registers an interceptor that intercepts every request regardless of its URI path. ]]></xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="interceptor"> 表示可以是一个interceptor标签 <xsd:annotation> 对上一行的注解 <xsd:documentation source="java:org.springframework.web.servlet.handler.MappedInterceptor"><![CDATA[ Registers an interceptor that interceptors requests sent to one or more URI paths. ]]></xsd:documentation> </xsd:annotation> <xsd:complexType> 表示是一个复合类型 <xsd:sequence> 表示下面的配置是有顺序的 <xsd:element name="mapping" maxOccurs="unbounded"> 可以添加mapping标签 <xsd:complexType> 表示是一个复合类型 <xsd:attribute name="path" type="xsd:string" use="required"> 表示是一个path标签,类型string,必须的 <xsd:annotation> <xsd:documentation><![CDATA[ A path into the application intercepted by this interceptor. Exact path mapping URIs (such as "/myPath") are supported as well as Ant-stype path patterns (such as /myPath/**). ]]></xsd:documentation> </xsd:annotation> </xsd:attribute> </xsd:complexType> </xsd:element> <xsd:element ref="beans:bean"> bean标签 <xsd:annotation> 注解 <xsd:documentation><![CDATA[ The interceptor's bean definition. ]]></xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element>

    2. 上面文档的例子:
    <mvc:interceptors>
    <mvc:interceptor>
    <mvc:mapping path="/xxx/**" />
    <bean class="xxxx.xxInterceptor" />
    </mvc:interceptor>
    </mvc:interceptors>
     

      

  • 相关阅读:
    【算法设计与分析基础】8、背包问题
    【算法设计与分析基础】8、穷举 旅行商问题
    【算法设计与分析基础】7、蛮力求平面中距离最近的两点
    【算法设计与分析基础】6、蛮力字符匹配
    【算法设计与分析基础】5、冒泡排序与选择排序
    【算法设计与分析基础】4、伪随机数
    【算法设计与分析基础】3、斐波拉契数列
    【算法设计与分析基础】2、矩阵相乘
    【算法设计与分析基础】1、埃拉托色尼筛选法
    【JAVA并发编程实战】12、使用condition实现多线程下的有界缓存先进先出队列
  • 原文地址:https://www.cnblogs.com/an5211/p/7560638.html
Copyright © 2011-2022 走看看