精确匹配:
url-pattern | 浏览器输入 |
/first | http://localhost:8080/day10/first |
/itcast/demo1 | http://localhost:8080/day10/itcast/demo1 |
模糊匹配:
url-pattern | 浏览器输入 |
---|---|
/*等同于/ | http://localhost:8080/day10/任意路径 |
/itcast/* | http://l |
url-pattern | 浏览器输入 |
/first | http://localhost:8080/day10/first |
/itcast/demo1 | http://localhost:8080/day10/itcast/demo1 |
url-pattern | 浏览器输入 |
---|---|
/*等同于/ | http://localhost:8080/day10/任意路径 |
/itcast/* | http://l |