如:localhost:8080/Struts02/user/a/b/helloWord.action
localhost:8080/Struts02/user/a/b/c/d/f/g/hhelloword.action
都能访问导helloword.action
路径查找步骤:
localhost:访问的机器地址
8080:网站对外的端口号
Strtus02:项目名称
/user/a/b:先看有没有这个名称空间,没找到继续向下查找,找到则返回执行
/user/a:先看有没有这个名称空间,没找到继续向下查找,找到则返回执行
/user:先看有没有这个名称空间,没找到继续向下查找,找到则返回执行
/:默认名称空间,还没找到,报错,找到就返回执行
新闻热点
疑难解答