-
在Interceptor中配置
path=""
/**
所有路径,及其下子路径
/*
所有路径,不包括子路径
/
web项目的根目录 -
classpath
只会在class路径中查找文件
classpath*
会在jar文件中查找,同时也会在class路径下查找 -
web.xml
中的<url-pattern>...</url-patterm>
/
匹配/login
路径型url,不会匹配到/login.jsp
的后缀型url
/*
会匹配所有url,包括路径型和后缀型
/**
在web.xml
没这种通配符
springMVC中的各路径符号含义/、/*、/**、classpath*:
最新推荐文章于 2025-06-12 15:11:14 发布