seninel部署
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122
  1. # Sentinel Web Servlet Filter
  2. Sentinel provides Servlet filter integration. To use the filter,
  3. you can simply configure your `web.xml` with:
  4. ```xml
  5. <filter>
  6. <filter-name>SentinelCommonFilter</filter-name>
  7. <filter-class>com.alibaba.csp.sentinel.adapter.servlet.CommonFilter</filter-class>
  8. </filter>
  9. <filter-mapping>
  10. <filter-name>SentinelCommonFilter</filter-name>
  11. <url-pattern>/*</url-pattern>
  12. </filter-mapping>
  13. ```
  14. When a request is blocked, Sentinel servlet filter will give a default page indicating the request blocked.
  15. If customized block page is set (via `WebServletConfig.setBlockPage(blockPage)` method),
  16. the filter will redirect the request to provided URL. You can also implement your own
  17. block handler (the `UrlBlockHandler` interface) and register to `WebCallbackManager`.