seninel部署
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

README.md 793B

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`.