简体   繁体   English

无法理解Apache的文档

[英]Having trouble understanding Apache's documentation of

I am having trouble understanding what UriHttpRequestHandlerMapper as written about in the documentation here . 我无法理解UriHttpRequestHandlerMapper在这里的文档中所写的内容。

The documentation says that it: 文档说它:

Maintains a map of HTTP request handlers keyed by a request URI pattern. 维护由请求URI模式键入的HTTP请求处理程序的映射。 Patterns may have three formats: 模式可能有三种格式:
*
*<uri>
<uri>*

It doesn't explain what these patterns actually mean. 它没有解释这些模式究竟意味着什么。 What do the stars do? 明星做什么? How do you actually use this? 你怎么实际使用它?

I have not been able to find any snippets on the internet. 我无法在互联网上找到任何网页摘要。

  1. * means match any request *表示匹配任何请求
  2. *<uri> means match any request that ends with what is specified, eg *.jpg *<uri>表示匹配任何以指定结尾的请求,例如*.jpg
  3. <uri>* means match any request that starts with what is specified, eg http://host/application/* <uri>*表示匹配任何以指定内容开头的请求,例如http://host/application/*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM