当前位置:网站首页>About web in Servlet XML testing
About web in Servlet XML testing
2022-04-21 13:43:00 【Apollo nice circle is not a circle】
<servlet-mapping>
<servlet-name>FileServlet</servlet-name>
<url-pattern>/fileUpload</url-pattern>
</servlet-mapping>
Here I configured /fileUpload, Then I tried to access the following paths
http://localhost:8081/maven_tomcat/fileUpload/
http://localhost:8081/maven_tomcat/fileUpload
http://localhost:8081/maven_tomcat/fileUpload/1
http://localhost:8081/maven_tomcat/fileUpload/1.html
http://localhost:8081/maven_tomcat/fileUpload/1/2.html
Only the second can be accessed , Trigger get Method
<servlet-mapping>
<servlet-name>FileServlet</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
I try to access the following addresses
http://localhost:8081/maven_tomcat/12.jsp
http://localhost:8081/maven_tomcat/
http://localhost:8081/maven_tomcat/index.jsp
http://localhost:8081/maven_tomcat/12/1.jsp
Only the fourth will be intercepted
Last , Matching /*
<servlet-mapping>
<servlet-name>FileServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
So we can intercept everything
版权声明
本文为[Apollo nice circle is not a circle]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211336338764.html
边栏推荐
- 北京大学ACM Problems 1011:Sticks
- 定位子元素的结构伪类
- 字符串串动变化 (10 分)下列程序中,函数fun的功能是:在字符串str中找出ASCII码值最大的字符,将该字符前的所有字符向后顺序移动一个位置,然后将该字符放到第一个位置上。
- 北京大学ACM Problems 1009:Edge Detection
- 浅析 联邦学习是什么?
- npm---npm配置文件
- leetcode:824. Goat Latin [simple string manipulation]
- SQLyog导入sql文件
- Forced to choose an outsourcing company
- Industry video super resolution new benchmark, Kwai & Dalian research, boarded CVPR 2022
猜你喜欢

What kind of comfortable sports earphones are recommended

跑步运动耳机哪个牌子好、适合运动的耳机

In office word 2016, omml2mml appears when the formula edited by word's own formula editor is transferred to MathType Solutions to XSL problems

Huffman coding

Wechat hidden function series: wechat regular reminder, 2 steps, to relax yourself when you are busy

Which brand of running headphones is good and suitable for sports

metasploit渗透

How to recover if U disk data is lost? U disk data recovery, two schemes completed

Nmap usage

Benchmark cell detection scheme based on violence matching threshold
随机推荐
Code Huffman
北京大学ACM Problems 1011:Sticks
跑步运动耳机哪个牌子好、适合运动的耳机
BUUCTF [第三章 web进阶]逻辑漏洞
Do self media and short videos, and don't trust those mutual relations and mutual praise
SECOND: Sparsely Embedded Convolutional Detection
Read fast RCNN
Idea automatically generates unit test classes
Scroll bar style modification
Basic practice questions and answers of economic law in 2022 primary accounting title examination
Tailwind core concept - responsive design
Route selection, anti ring and re release of hcip OSPF
Improving the efficiency of randomly generated sphere interference inspection by block division
Tool function --- get parameters from the address bar
What is federal learning?
Hcip road OSPF expansion configuration
哈夫曼編碼
Peking University ACM problems 1010: stamps
做自媒体、短视频,不要再相信那些互关、互赞了
Color gradient (columns, rings, etc.)