常用的Ant风格书写

    xiaoxiao2021-03-25  122

    Ant风格,为请求路径的一种匹配方式

    通配符说明?匹配任意一个字符*匹配任意字符(包括0个)**

    匹配任意层路径(包括0个)

     

    支持Ant风格

    1.spring资源加载

    classpath:com/t?st.xml

    2.spring mvc的url映射

    @RequestMapping("/teach*")

    3.spring注解扫描

    <!-- 根上下文只扫描 dao, service.impl 以及 webservice 包下的class -->  

    <context:component-scan base-package="org.xxx.**.dao, org.xxx.**.service.impl, org.xx.**.webservice" />  

    转载请注明原文地址: https://ju.6miu.com/read-7860.html

    最新回复(0)