{"id":15491,"date":"2025-04-18T22:02:04","date_gmt":"2025-04-18T14:02:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/15491.html"},"modified":"2025-04-18T22:02:04","modified_gmt":"2025-04-18T14:02:04","slug":"undertow%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/15491.html","title":{"rendered":"UnderTow\u670d\u52a1\u5668"},"content":{"rendered":"<h2 id=\"Undertow\u67b6\u6784\u6982\u8ff0\">1.Undertow\u67b6\u6784\u6982\u8ff0<\/h2>\n<p>Undertow\u662f\u4e00\u4e2a\u7075\u6d3b\u7684\u3001\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668&#xff0c;\u5b83\u7684\u8bbe\u8ba1\u7406\u5ff5\u662f\u901a\u8fc7\u7ec4\u5408\u4e0d\u540c\u7684\u7ec4\u4ef6\u6765\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u9700\u6c42\u3002\u4ee5\u4e0b\u662f\u5bf9Undertow\u67b6\u6784\u7684\u8be6\u7ec6\u5206\u6790&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"467\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418140203-68025b5b65560.png\" width=\"984\" \/><\/p>\n<h3>1. \u6574\u4f53\u67b6\u6784<\/h3>\n<p>Undertow\u670d\u52a1\u5668\u7531\u4e09\u4e2a\u4e3b\u8981\u90e8\u5206\u7ec4\u6210&#xff1a;<\/p>\n<ul>\n<li>XNIO\u5de5\u4f5c\u8005\u5b9e\u4f8b&#xff1a;\u8d1f\u8d23\u7ba1\u7406IO\u7ebf\u7a0b\u548c\u5de5\u4f5c\u7ebf\u7a0b\u6c60\u3002<\/li>\n<li>\u8fde\u63a5\u5668&#xff1a;\u5904\u7406\u4f20\u5165\u7684\u8fde\u63a5\u3002<\/li>\n<li>\u5904\u7406\u5668\u94fe&#xff1a;\u5904\u7406\u4f20\u5165\u7684\u8bf7\u6c42\u3002<\/li>\n<\/ul>\n<h3>2. XNIO<\/h3>\n<p>Undertow\u57fa\u4e8eXNIO&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u5bf9Java NIO\u7684\u8f7b\u91cf\u7ea7\u62bd\u8c61\u5c42&#xff0c;\u63d0\u4f9b\u4e86\u4ee5\u4e0b\u529f\u80fd&#xff1a;<\/p>\n<ul>\n<li>IO\u548c\u5de5\u4f5c\u7ebf\u7a0b\u7ba1\u7406&#xff1a;XNIO\u5de5\u4f5c\u8005\u7ba1\u7406IO\u7ebf\u7a0b\u548c\u4e00\u4e2a\u53ef\u7528\u4e8e\u963b\u585e\u4efb\u52a1\u7684\u7ebf\u7a0b\u6c60\u3002\u975e\u963b\u585e\u5904\u7406\u5668\u901a\u5e38\u5728IO\u7ebf\u7a0b\u4e2d\u8fd0\u884c&#xff0c;\u800c\u963b\u585e\u4efb\u52a1&#xff08;\u5982Servlet\u8c03\u7528&#xff09;\u5219\u88ab\u5206\u6d3e\u5230\u5de5\u4f5c\u7ebf\u7a0b\u6c60\u3002<\/li>\n<li>\u901a\u9053API&#xff1a;XNIO\u63d0\u4f9b\u4e86\u4e00\u4e2a\u901a\u9053\u62bd\u8c61&#xff0c;\u901a\u8fc7ChannelListener API\u901a\u77e5\u4e8b\u4ef6&#xff0c;\u800c\u4e0d\u5fc5\u76f4\u63a5\u5904\u7406NIO\u7684\u5174\u8da3\u64cd\u4f5c\u96c6&#xff08;interest OPs&#xff09;\u3002<\/li>\n<li>\u76d1\u542c\u5668&#xff1a;Undertow\u5305\u542b\u591a\u79cd\u76d1\u542c\u5668&#xff0c;\u5982HTTP\/1.1\u3001HTTPS\u3001AJP\u548cHTTP\/2\u76d1\u542c\u5668&#xff0c;\u5b83\u4eec\u901a\u5e38\u5728IO\u7ebf\u7a0b\u4e2d\u4f7f\u7528\u5f02\u6b65IO\u5904\u7406\u6240\u6709IO\u64cd\u4f5c\u3002<\/li>\n<li>\u5904\u7406\u5668&#xff1a;Undertow\u7684\u4e3b\u8981\u529f\u80fd\u7531io.undertow.server.HttpHandler\u5b9e\u4f8b\u63d0\u4f9b&#xff0c;\u8fd9\u4e9b\u5904\u7406\u5668\u53ef\u4ee5\u94fe\u63a5\u5728\u4e00\u8d77\u5f62\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<h3>3. \u76d1\u542c\u5668<\/h3>\n<p>\u76d1\u542c\u5668\u662fUndertow\u5e94\u7528\u7684\u5165\u53e3\u70b9&#xff0c;\u8d1f\u8d23\u5c06\u8bf7\u6c42\u8f6c\u6362\u4e3aHttpServerExchange\u5bf9\u8c61&#xff0c;\u5e76\u5c06\u7ed3\u679c\u8f6c\u6362\u4e3a\u54cd\u5e94\u53d1\u9001\u56de\u5ba2\u6237\u7aef\u3002Undertow\u63d0\u4f9b\u4e86\u591a\u79cd\u76d1\u542c\u5668\u7c7b\u578b&#xff0c;\u5305\u62ecHTTP\/1.1\u3001AJP\u548cHTTP\/2\u76d1\u542c\u5668&#xff0c;\u4ee5\u53ca\u5bf9HTTPS\u548c\u4ee3\u7406\u534f\u8bae\u7684\u652f\u6301\u3002<\/p>\n<h3><span style=\"color:#fe2c24\">4. \u5904\u7406\u5668<\/span><\/h3>\n<p><span style=\"color:#fe2c24\">\u5904\u7406\u5668\u662fUndertow\u7684\u6838\u5fc3\u529f\u80fd\u5355\u5143&#xff0c;\u5b83\u4eec\u901a\u8fc7\u5b9e\u73b0io.undertow.server.HttpHandler\u63a5\u53e3\u6765\u5b9a\u4e49\u3002\u5904\u7406\u5668\u53ef\u4ee5\u88ab\u94fe\u63a5\u5728\u4e00\u8d77&#xff0c;\u5f62\u6210\u4e00\u4e2a\u5904\u7406\u8bf7\u6c42\u7684\u94fe\u6761\u3002\u5e38\u89c1\u7684\u5904\u7406\u5668\u5305\u62ec\u8def\u5f84\u5339\u914d\u5904\u7406\u5668\u3001\u865a\u62df\u4e3b\u673a\u5904\u7406\u5668\u3001\u8d44\u6e90\u5904\u7406\u5668\u7b49&#xff0c;\u5b83\u4eec\u63d0\u4f9b\u4e86\u8bf8\u5982\u8def\u5f84\u5339\u914d\u3001\u865a\u62df\u4e3b\u673a\u652f\u6301\u3001\u8d44\u6e90\u670d\u52a1\u3001\u8bf7\u6c42\u8fc7\u6ee4\u7b49\u529f\u80fd\u3002<\/span><\/p>\n<h3>5. \u914d\u7f6e\u9009\u9879<\/h3>\n<p>Undertow\u7684\u76d1\u542c\u5668\u548c\u5de5\u4f5c\u8005\u53ef\u4ee5\u901a\u8fc7org.xnio.Option\u7c7b\u548cio.undertow.UndertowOptions\u7c7b\u8fdb\u884c\u914d\u7f6e\u3002\u8fd9\u4e9b\u9009\u9879\u5305\u62ec\u5de5\u4f5c\u8005\u7ebf\u7a0b\u6570\u91cf\u3001\u7f13\u51b2\u533a\u5927\u5c0f\u3001\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u5404\u79cd\u9650\u5236\u7b49\u3002<\/p>\n<h3>6. \u5185\u7f6e\u5904\u7406\u5668<\/h3>\n<p><span style=\"color:#fe2c24\">Undertow\u5305\u542b\u4e86\u8bb8\u591a\u5185\u7f6e\u7684\u5904\u7406\u5668&#xff0c;\u63d0\u4f9b\u4e86\u5e38\u89c1\u7684\u529f\u80fd&#xff0c;\u5982\u8def\u5f84\u5339\u914d\u3001\u865a\u62df\u4e3b\u673a\u652f\u6301\u3001\u8d44\u6e90\u670d\u52a1\u3001\u8bf7\u6c42\u8fc7\u6ee4\u7b49\u3002\u8fd9\u4e9b\u5904\u7406\u5668\u53ef\u4ee5\u901a\u8fc7io.undertow.Handlers\u5de5\u5177\u7c7b\u7684\u9759\u6001\u65b9\u6cd5\u521b\u5efa\u3002<\/span><\/p>\n<p>\u901a\u8fc7\u8fd9\u79cd\u6a21\u5757\u5316\u7684\u8bbe\u8ba1&#xff0c;Undertow\u80fd\u591f\u63d0\u4f9b\u9ad8\u5ea6\u7684\u7075\u6d3b\u6027\u548c\u53ef\u5b9a\u5236\u6027&#xff0c;\u4f7f\u5176\u9002\u7528\u4e8e\u5404\u79cd\u4e0d\u540c\u7684Web\u5e94\u7528\u573a\u666f\u3002<\/p>\n<h2 style=\"background-color:transparent\">2.\u5c06\u8bf7\u6c42\u5bf9\u8c61&#xff08;HttpServerExchange&#xff09;\u8f6c\u6362\u4e3aServlet\u89c4\u8303\u4e2d\u7684ServletRequest\u548cServletResponse\u5bf9\u8c61<\/h2>\n<p>\u5728Undertow\u4e2d&#xff0c;\u8bf7\u6c42\u5bf9\u8c61&#xff08;HttpServerExchange&#xff09;\u88ab\u8f6c\u6362\u4e3aServlet\u89c4\u8303\u4e2d\u7684ServletRequest\u548cServletResponse\u5bf9\u8c61&#xff0c;\u7136\u540e\u4f20\u9012\u7ed9Servlet\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230Undertow\u7684Servlet\u5bb9\u5668\u5b9e\u73b0&#xff0c;\u5b83\u8d1f\u8d23\u7ba1\u7406Servlet\u7684\u751f\u547d\u5468\u671f\u548c\u8bf7\u6c42\u5904\u7406\u3002<\/p>\n<h4 id=\"\u8f6c\u6362\u8fc7\u7a0b\" style=\"background-color:transparent\">\u8f6c\u6362\u8fc7\u7a0b<\/h4>\n<li>\n<p>\u521b\u5efaServletRequest\u548cServletResponse&#xff1a;<\/p>\n<ul>\n<li>\u5728Undertow\u7684FilterHandler\u7c7b\u4e2d&#xff0c;\u9996\u5148\u4f1a\u521b\u5efaServletRequest\u548cServletResponse\u5bf9\u8c61\u3002\u8fd9\u662f\u901a\u8fc7ServletRequestContext\u6765\u5b8c\u6210\u7684&#xff0c;\u5b83\u662f\u4eceHttpServerExchange\u4e2d\u83b7\u53d6\u7684\u9644\u4ef6&#xff08;attachment&#xff09;\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff1a;\n<\/p>\n<p> final ServletRequestContext servletRequestContext &#061; exchange.getAttachment(ServletRequestContext.ATTACHMENT_KEY);<br \/>\nServletRequest request &#061; servletRequestContext.getServletRequest();<br \/>\nServletResponse response &#061; servletRequestContext.getServletResponse(); <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8c03\u7528Servlet\u7684service\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u65e6ServletRequest\u548cServletResponse\u5bf9\u8c61\u88ab\u521b\u5efa&#xff0c;Undertow\u4f1a\u8c03\u7528Servlet\u7684service\u65b9\u6cd5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u662f\u5728ServletHandler\u7c7b\u4e2d\u88ab\u8c03\u7528\u7684\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff1a;\n<\/p>\n<p> servlet.getInstance().service(request, response); <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>HttpServlet\u7684service\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5728HttpServlet\u7c7b\u4e2d&#xff0c;service\u65b9\u6cd5\u4f1a\u5c06ServletRequest\u548cServletResponse\u5bf9\u8c61\u8f6c\u6362\u4e3aHttpServletRequest\u548cHttpServletResponse\u5bf9\u8c61&#xff0c;\u7136\u540e\u6839\u636e\u8bf7\u6c42\u7684HTTP\u65b9\u6cd5&#xff08;\u5982GET\u3001POST&#xff09;\u8c03\u7528\u76f8\u5e94\u7684doGet\u3001doPost\u7b49\u65b9\u6cd5\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff1a;\n<\/p>\n<p> public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {<br \/>\n    HttpServletRequest request;<br \/>\n    HttpServletResponse response;<br \/>\n    if (!(req instanceof HttpServletRequest &amp;&amp; res instanceof HttpServletResponse)) {<br \/>\n        throw new ServletException(&#034;non-HTTP request or response&#034;);<br \/>\n    }<br \/>\n    request &#061; (HttpServletRequest) req;<br \/>\n    response &#061; (HttpServletResponse) res;<br \/>\n    service(request, response);<br \/>\n} <\/li>\n<\/ul>\n<\/li>\n<h4 id=\"\u914d\u7f6e\u548c\u521d\u59cb\u5316\">\u914d\u7f6e\u548c\u521d\u59cb\u5316<\/h4>\n<ul>\n<li>Servlet\u7684\u521d\u59cb\u5316&#xff1a;\n<ul>\n<li>Undertow\u4f1a\u5728\u7b2c\u4e00\u6b21\u8bf7\u6c42\u65f6\u521d\u59cb\u5316Servlet\u3002\u8fd9\u662f\u901a\u8fc7firstRequestHandler\u6765\u5b9e\u73b0\u7684&#xff0c;\u5b83\u4f1a\u6267\u884c\u4e00\u7cfb\u5217\u7684nextHandler.call\u65b9\u6cd5&#xff0c;\u76f4\u5230ServletDispatchingHandler\u88ab\u8c03\u7528&#xff0c;\u8fd9\u65f6Servlet\u624d\u4f1a\u88ab\u521d\u59cb\u5316\u3002<\/li>\n<li>\u4ee3\u7801\u793a\u4f8b&#xff1a;\n<\/p>\n<p> private void dispatchRequest(final HttpServerExchange exchange, final ServletRequestContext servletRequestContext, final ServletChain servletChain, final DispatcherType dispatcherType) throws Exception {<br \/>\n    servletRequestContext.setDispatcherType(dispatcherType);<br \/>\n    servletRequestContext.setCurrentServlet(servletChain);<br \/>\n    if (dispatcherType &#061;&#061; DispatcherType.REQUEST || dispatcherType &#061;&#061; DispatcherType.ASYNC) {<br \/>\n        firstRequestHandler.call(exchange, servletRequestContext);<br \/>\n    } else {<br \/>\n        next.handleRequest(exchange);<br \/>\n    }<br \/>\n} <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4 id=\"\u603b\u7ed3\">\u603b\u7ed3<\/h4>\n<p>Undertow\u901a\u8fc7<span style=\"color:#fe2c24\">\u4e00\u7cfb\u5217\u7684\u5185\u90e8\u673a\u5236<\/span>&#xff0c;\u5c06<span style=\"color:#fe2c24\">\u539f\u751f\u7684HttpServerExchange\u5bf9\u8c61<\/span>\u8f6c\u6362\u4e3a<span style=\"color:#fe2c24\">Servlet\u89c4\u8303\u4e2d\u7684ServletRequest\u548cServletResponse\u5bf9\u8c61&#xff08;\u5176\u5b9e\u662fjAVAEE\u89c4\u8303\u7684&#xff09;<\/span>&#xff0c;\u7136\u540e\u8c03\u7528Servlet\u7684service\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u591a\u4e2a\u7c7b\u7684\u534f\u4f5c&#xff0c;\u5305\u62ecFilterHandler\u3001ServletHandler\u548cHttpServlet\u7b49\u3002<span style=\"color:#fe2c24\">\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff0c;\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u4e0d\u9700\u8981\u76f4\u63a5\u5904\u7406\u8fd9\u4e9b\u8f6c\u6362\u8fc7\u7a0b&#xff0c;\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u548c\u90e8\u7f72Servlet\u6765\u5904\u7406\u4e1a\u52a1\u903b\u8f91<\/span>\u3002<\/p>\n<h2>3.\u6240\u4ee5\u76f4\u63a5\u4eceservlet\u7ec4\u4ef6\u7684\u5bb9\u5668\u5165\u624b<\/h2>\n<h3>4.DeploymentInfo\u7c7b\u597d\u50cf\u5f88\u4e2d\u7528\u54c7&#xff0c;\u57fa\u672c\u80fd\u770b\u51fa\u7c7b\u4f3c\u4e8etomcat\u7684\u67b6\u6784<\/h3>\n<p>servlet\u5e94\u7528\u5e94\u8be5\u6307\u7684\u5c31\u662f\u90e8\u7f72\u4e0a\u7684\u4e00\u4e2a\u5e94\u7528&#xff0c;DeploymentInfo<\/p>\n<p>\u4ee5\u4e0b\u662f\u5bf9\u8fd9\u4e2aDeploymentInfo\u7c7b\u7684\u5206\u6790&#xff1a;<\/p>\n<h4 id=\"\u4e00\u3001\u7c7b\u7684\u603b\u4f53\u6982\u8ff0\">\u4e00\u3001\u7c7b\u7684\u603b\u4f53\u6982\u8ff0<\/h4>\n<ul>\n<li>DeploymentInfo\u7c7b\u7528\u4e8e\u914d\u7f6e\u5728Undertow\u4e2dServlet\u5e94\u7528\u7684\u90e8\u7f72\u76f8\u5173\u4fe1\u606f\u3002\u5b83\u5b9e\u73b0\u4e86Cloneable\u63a5\u53e3&#xff0c;\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5bf9\u8fd9\u4e2a\u90e8\u7f72\u914d\u7f6e\u8fdb\u884c\u514b\u9686\u64cd\u4f5c&#xff0c;\u53ef\u80fd\u5728\u9700\u8981\u521b\u5efa\u76f8\u4f3c\u4f46\u7565\u6709\u4e0d\u540c\u7684\u90e8\u7f72\u914d\u7f6e\u573a\u666f\u4e0b\u4f1a\u7528\u5230\u3002<\/li>\n<\/ul>\n<h4 id=\"\u4e8c\u3001\u6210\u5458\u53d8\u91cf\u5206\u6790\">\u4e8c\u3001\u6210\u5458\u53d8\u91cf\u5206\u6790<\/h4>\n<h5>1. \u7248\u672c\u76f8\u5173<\/h5>\n<ul>\n<li>DEFAULT_MAJOR_VERSION&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;static final int\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u9ed8\u8ba4\u7684\u4e3b\u7248\u672c\u53f7\u4e3a6&#xff0c;\u8fd9\u4e2a\u7248\u672c\u53f7\u53ef\u80fd\u4e0eServlet\u89c4\u8303\u6216\u8005Undertow\u81ea\u8eab\u7684\u5185\u90e8\u7248\u672c\u63a7\u5236\u76f8\u5173\u3002<\/li>\n<\/ul>\n<\/li>\n<li>majorVersion\u548cminorVersion&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;int\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5206\u522b\u8868\u793a\u90e8\u7f72\u7684\u4e3b\u7248\u672c\u53f7\u548c\u6b21\u7248\u672c\u53f7&#xff0c;\u9ed8\u8ba4\u4e3b\u7248\u672c\u53f7\u4e3aDEFAULT_MAJOR_VERSION&#xff0c;\u6b21\u7248\u672c\u53f7\u4e3a0\u3002\u8fd9\u4e9b\u7248\u672c\u53f7\u53ef\u4ee5\u7528\u4e8e\u786e\u4fdd\u4e0e\u7279\u5b9a\u7248\u672c\u7684Servlet\u89c4\u8303\u6216\u8005Undertow\u7684\u517c\u5bb9\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>containerMajorVersion\u548ccontainerMinorVersion&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;int\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u4e0e\u5bb9\u5668&#xff08;\u8fd9\u91cc\u6307Undertow\u4f5c\u4e3aServlet\u5bb9\u5668&#xff09;\u76f8\u5173\u7684\u7248\u672c\u53f7\u8bbe\u7f6e&#xff0c;\u540c\u6837\u4e3b\u7248\u672c\u53f7\u9ed8\u8ba4\u662fDEFAULT_MAJOR_VERSION&#xff0c;\u6b21\u7248\u672c\u53f7\u4e3a0\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>2. \u540d\u79f0\u4e0e\u8def\u5f84\u76f8\u5173<\/h5>\n<ul>\n<li>deploymentName&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u662f\u8fd9\u4e2a\u90e8\u7f72\u7684\u540d\u79f0&#xff0c;\u7528\u4e8e\u5728Undertow\u4e2d\u6807\u8bc6\u8fd9\u4e2aServlet\u90e8\u7f72&#xff0c;\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u903b\u8f91\u540d\u79f0&#xff0c;\u4f8b\u5982\u5728\u7ba1\u7406\u591a\u4e2a\u90e8\u7f72\u65f6\u65b9\u4fbf\u533a\u5206\u3002<\/li>\n<\/ul>\n<\/li>\n<li>displayName&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u7528\u4e8e\u663e\u793a\u76ee\u7684\u7684\u540d\u79f0&#xff0c;\u4f8b\u5982\u5728\u7ba1\u7406\u754c\u9762&#xff08;\u5982\u679c\u6709\u7684\u8bdd&#xff09;\u4e2d\u663e\u793a\u8fd9\u4e2a\u90e8\u7f72\u7684\u66f4\u53cb\u597d\u7684\u540d\u79f0\u3002<\/li>\n<\/ul>\n<\/li>\n<li>contextPath&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86Servlet\u5e94\u7528\u5728Web\u670d\u52a1\u5668\u4e2d\u7684\u6839\u8def\u5f84&#xff0c;\u4f8b\u5982\u8bbe\u7f6e\u4e3a&#034;\/&#034;\u8868\u793a\u5728\u670d\u52a1\u5668\u6839\u8def\u5f84\u4e0b\u63d0\u4f9b\u670d\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>hostName&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u6307\u5b9a\u4e86\u4e0e\u8fd9\u4e2a\u90e8\u7f72\u76f8\u5173\u7684\u4e3b\u673a\u540d&#xff0c;\u9ed8\u8ba4\u8bbe\u7f6e\u4e3a&#034;localhost&#034;&#xff0c;\u53ef\u80fd\u5728\u591a\u4e3b\u673a\u73af\u5883\u6216\u8005\u9700\u8981\u7279\u5b9a\u4e3b\u673a\u6807\u8bc6\u7684\u573a\u666f\u4e0b\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>3. \u7c7b\u52a0\u8f7d\u4e0e\u8d44\u6e90\u7ba1\u7406\u76f8\u5173<\/h5>\n<ul>\n<li>classLoader&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ClassLoader\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u52a0\u8f7dServlet\u5e94\u7528\u4e2d\u7684\u7c7b\u7684\u7c7b\u52a0\u8f7d\u5668&#xff0c;\u6b63\u786e\u8bbe\u7f6e\u7c7b\u52a0\u8f7d\u5668\u786e\u4fdd\u4e86\u7c7b\u7684\u6b63\u786e\u52a0\u8f7d&#xff0c;\u5305\u62ecServlet\u7c7b\u3001\u8fc7\u6ee4\u5668\u7c7b\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>resourceManager&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ResourceManager\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u8d1f\u8d23\u7ba1\u7406\u90e8\u7f72\u76f8\u5173\u7684\u8d44\u6e90&#xff0c;\u521d\u59cb\u5316\u4e3aResourceManager.EMPTY_RESOURCE_MANAGER&#xff0c;\u53ef\u80fd\u5728\u9700\u8981\u6269\u5c55\u8d44\u6e90\u7ba1\u7406\u529f\u80fd&#xff08;\u5982\u52a0\u8f7d\u5916\u90e8\u8d44\u6e90\u7b49&#xff09;\u65f6\u88ab\u4fee\u6539\u3002<\/li>\n<\/ul>\n<\/li>\n<li>classIntrospecter&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ClassIntrospecter\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u7c7b\u7684\u5185\u7701\u64cd\u4f5c&#xff0c;\u9ed8\u8ba4\u4f7f\u7528DefaultClassIntrospector.INSTANCE&#xff0c;\u53ef\u80fd\u5728\u5904\u7406Servlet\u7c7b\u3001\u8fc7\u6ee4\u5668\u7c7b\u7b49\u9700\u8981\u53cd\u5c04\u6216\u5185\u7701\u64cd\u4f5c\u7684\u573a\u666f\u4e0b\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>4. \u6267\u884c\u5668\u76f8\u5173<\/h5>\n<ul>\n<li>executor\u548casyncExecutor&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Executor\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u8fd9\u4e24\u4e2a\u6267\u884c\u5668\u53ef\u80fd\u5206\u522b\u7528\u4e8e\u5904\u7406\u5e38\u89c4\u7684Servlet\u8bf7\u6c42\u548c\u5f02\u6b65Servlet\u8bf7\u6c42\u3002\u5408\u9002\u7684\u6267\u884c\u5668\u8bbe\u7f6e\u53ef\u4ee5\u63d0\u9ad8\u8bf7\u6c42\u5904\u7406\u7684\u6548\u7387\u548c\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>5. \u4e34\u65f6\u76ee\u5f55\u76f8\u5173<\/h5>\n<ul>\n<li>tempDir&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Path\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u6307\u5b9a\u4e86\u4e00\u4e2a\u4e34\u65f6\u76ee\u5f55\u7684\u8def\u5f84&#xff0c;\u53ef\u80fd\u5728\u5904\u7406\u6587\u4ef6\u4e0a\u4f20\u3001\u4e34\u65f6\u6587\u4ef6\u751f\u6210\u7b49\u64cd\u4f5c\u65f6\u4f1a\u7528\u5230\u8fd9\u4e2a\u4e34\u65f6\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>6. JSP\u914d\u7f6e\u76f8\u5173<\/h5>\n<ul>\n<li>jspConfigDescriptor&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;JspConfigDescriptor\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u914d\u7f6e\u4e0eJSP\u76f8\u5173\u7684\u8bbe\u7f6e&#xff0c;\u5982\u679c\u8fd9\u4e2a\u90e8\u7f72\u6d89\u53caJSP\u9875\u9762\u7684\u8bdd&#xff0c;\u8fd9\u4e2a\u5bf9\u8c61\u5305\u542b\u4e86JSP\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>7. \u4f1a\u8bdd\u7ba1\u7406\u76f8\u5173<\/h5>\n<ul>\n<li>sessionManagerFactory&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;SessionManagerFactory\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u521b\u5efa\u4f1a\u8bdd\u7ba1\u7406\u5668\u7684\u5de5\u5382&#xff0c;\u9ed8\u8ba4\u4f7f\u7528InMemorySessionManagerFactory&#xff0c;\u8fd9\u610f\u5473\u7740\u9ed8\u8ba4\u7684\u4f1a\u8bdd\u7ba1\u7406\u53ef\u80fd\u662f\u57fa\u4e8e\u5185\u5b58\u7684&#xff0c;\u4e0d\u8fc7\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u66ff\u6362\u4e3a\u5176\u4ed6\u7684\u4f1a\u8bdd\u7ba1\u7406\u65b9\u5f0f&#xff08;\u5982\u57fa\u4e8e\u6570\u636e\u5e93\u7b49&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>defaultSessionTimeout&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;int\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u9ed8\u8ba4\u7684\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4&#xff0c;\u5355\u4f4d\u53ef\u80fd\u662f\u5206\u949f&#xff08;\u4ece\u4ee3\u7801\u770b\u662f60 * 30\u79d2&#xff0c;\u537330\u5206\u949f&#xff09;&#xff0c;\u7528\u4e8e\u63a7\u5236\u7528\u6237\u4f1a\u8bdd\u5728\u591a\u957f\u65f6\u95f4\u65e0\u6d3b\u52a8\u540e\u88ab\u9500\u6bc1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>servletSessionConfig&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ServletSessionConfig\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u914d\u7f6eServlet\u4f1a\u8bdd\u76f8\u5173\u7684\u4e00\u4e9b\u989d\u5916\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>changeSessionIdOnLogin&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;boolean\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u8868\u793a\u5728\u7528\u6237\u767b\u5f55\u65f6\u662f\u5426\u66f4\u6539\u4f1a\u8bddID&#xff0c;\u9ed8\u8ba4\u8bbe\u7f6e\u4e3atrue&#xff0c;\u8fd9\u53ef\u80fd\u662f\u51fa\u4e8e\u5b89\u5168\u8003\u8651&#xff0c;\u9632\u6b62\u4f1a\u8bdd\u56fa\u5b9a\u653b\u51fb\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>sessionIdGenerator&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;SessionIdGenerator\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u751f\u6210\u4f1a\u8bddID\u7684\u5bf9\u8c61&#xff0c;\u9ed8\u8ba4\u4f7f\u7528SecureRandomSessionIdGenerator&#xff0c;\u786e\u4fdd\u751f\u6210\u7684\u4f1a\u8bddID\u5177\u6709\u8db3\u591f\u7684\u968f\u673a\u6027\u548c\u5b89\u5168\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>sessionPersistenceManager&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;SessionPersistenceManager\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u7ba1\u7406\u4f1a\u8bdd\u7684\u6301\u4e45\u5316&#xff0c;\u5982\u679c\u9700\u8981\u5c06\u4f1a\u8bdd\u6570\u636e\u6301\u4e45\u5316\u5230\u5b58\u50a8&#xff08;\u5982\u6570\u636e\u5e93&#xff09;\u4e2d&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u5bf9\u8c61\u8fdb\u884c\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>8. \u5b89\u5168\u76f8\u5173<\/h5>\n<ul>\n<li>loginConfig&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;LoginConfig\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u914d\u7f6e\u767b\u5f55\u76f8\u5173\u7684\u4fe1\u606f&#xff0c;\u4f8b\u5982\u767b\u5f55\u7684\u65b9\u5f0f&#xff08;\u8868\u5355\u767b\u5f55\u3001\u57fa\u672c\u8ba4\u8bc1\u7b49&#xff09;\u7b49\u4e0e\u7528\u6237\u767b\u5f55\u8ba4\u8bc1\u76f8\u5173\u7684\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>identityManager&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;IdentityManager\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u7ba1\u7406\u7528\u6237\u8eab\u4efd\u4fe1\u606f&#xff0c;\u53ef\u80fd\u5728\u8ba4\u8bc1\u548c\u6388\u6743\u8fc7\u7a0b\u4e2d\u7528\u4e8e\u9a8c\u8bc1\u7528\u6237\u8eab\u4efd\u7b49\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>confidentialPortManager&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ConfidentialPortManager\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u4e0e\u5728\u5b89\u5168\u7aef\u53e3&#xff08;\u5982HTTPS\u7aef\u53e3&#xff09;\u4e0a\u5904\u7406\u673a\u5bc6\u4fe1\u606f\u76f8\u5173\u7684\u7ba1\u7406\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<\/li>\n<li>authorizationManager&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;AuthorizationManager\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u7ba1\u7406\u6388\u6743\u64cd\u4f5c&#xff0c;\u9ed8\u8ba4\u4f7f\u7528DefaultAuthorizationManager.INSTANCE&#xff0c;\u8d1f\u8d23\u51b3\u5b9a\u7528\u6237\u662f\u5426\u6709\u6743\u9650\u8bbf\u95ee\u7279\u5b9a\u7684\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<\/li>\n<li>authenticationMechanism&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;AuthenticationMechanism\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u8ba4\u8bc1\u673a\u5236&#xff0c;\u7528\u4e8e\u9a8c\u8bc1\u7528\u6237\u8eab\u4efd&#xff0c;\u4f8b\u5982\u57fa\u4e8e\u7528\u6237\u540d\/\u5bc6\u7801\u3001\u4ee4\u724c\u7b49\u7684\u8ba4\u8bc1\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>securityContextFactory&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;SecurityContextFactory\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u521b\u5efa\u5b89\u5168\u4e0a\u4e0b\u6587\u7684\u5de5\u5382&#xff0c;\u5b89\u5168\u4e0a\u4e0b\u6587\u53ef\u80fd\u5305\u542b\u7528\u6237\u7684\u8ba4\u8bc1\u548c\u6388\u6743\u4fe1\u606f\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>authenticationMode&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;AuthenticationMode\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u8ba4\u8bc1\u6a21\u5f0f&#xff0c;\u4f8b\u5982\u662f\u4e3b\u52a8\u8ba4\u8bc1&#xff08;PRO_ACTIVE&#xff09;\u8fd8\u662f\u5176\u4ed6\u6a21\u5f0f&#xff0c;\u8fd9\u5f71\u54cd\u4e86\u8ba4\u8bc1\u64cd\u4f5c\u4f55\u65f6\u4ee5\u53ca\u5982\u4f55\u88ab\u89e6\u53d1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>securityRoles&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Set&lt;String&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u4e00\u7ec4\u5b89\u5168\u89d2\u8272&#xff0c;\u7528\u4e8e\u5728\u6388\u6743\u8fc7\u7a0b\u4e2d\u786e\u5b9a\u7528\u6237\u7684\u89d2\u8272\u6743\u9650\u3002<\/li>\n<\/ul>\n<\/li>\n<li>securityConstraints&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;SecurityConstraint&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u5b9a\u4e49\u5b89\u5168\u7ea6\u675f&#xff0c;\u4f8b\u5982\u54ea\u4e9bURL\u8def\u5f84\u9700\u8981\u7279\u5b9a\u7684\u89d2\u8272\u6216\u8005\u8ba4\u8bc1\u624d\u80fd\u8bbf\u95ee\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>9. \u7f16\u7801\u4e0e\u7f13\u5b58\u76f8\u5173<\/h5>\n<ul>\n<li>defaultEncoding\u3001defaultRequestEncoding\u548cdefaultResponseEncoding&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5206\u522b\u5b9a\u4e49\u4e86\u9ed8\u8ba4\u7684\u7f16\u7801&#xff08;\u53ef\u80fd\u662f\u6574\u4e2a\u90e8\u7f72\u7684\u3001\u8bf7\u6c42\u7684\u3001\u54cd\u5e94\u7684\u7f16\u7801&#xff09;&#xff0c;\u7528\u4e8e\u5904\u7406\u5b57\u7b26\u7f16\u7801\u76f8\u5173\u7684\u64cd\u4f5c&#xff0c;\u786e\u4fdd\u6b63\u786e\u7684\u5b57\u7b26\u5904\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>urlEncoding&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;String\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u662f\u4e13\u95e8\u7528\u4e8eURL\u7f16\u7801\u7684\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>ignoreFlush&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;boolean\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5982\u679c\u8bbe\u7f6e\u4e3atrue&#xff0c;\u53ef\u80fd\u8868\u793a\u5ffd\u7565\u67d0\u4e9b\u5237\u65b0\u64cd\u4f5c&#xff0c;\u5177\u4f53\u53d6\u51b3\u4e8eUndertow\u5185\u90e8\u7684\u903b\u8f91\u4e0e\u5b9e\u73b0\u3002<\/li>\n<\/ul>\n<\/li>\n<li>disableCachingForSecuredPages&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;boolean\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u51b3\u5b9a\u662f\u5426\u5bf9\u5b89\u5168\u9875\u9762&#xff08;\u4f8b\u5982\u9700\u8981\u8ba4\u8bc1\u624d\u80fd\u8bbf\u95ee\u7684\u9875\u9762&#xff09;\u7981\u7528\u7f13\u5b58&#xff0c;\u9ed8\u8ba4\u8bbe\u7f6e\u4e3atrue&#xff0c;\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u5b89\u5168\u6027&#xff0c;\u9632\u6b62\u7f13\u5b58\u7684\u9875\u9762\u88ab\u672a\u6388\u6743\u7528\u6237\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>10. \u5176\u4ed6\u914d\u7f6e\u76f8\u5173<\/h5>\n<ul>\n<li>servletContextAttributeBackingMap&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;ConcurrentMap&lt;String, Object&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u5b58\u50a8Servlet\u4e0a\u4e0b\u6587\u5c5e\u6027\u7684\u540e\u5907\u6620\u5c04&#xff0c;\u53ef\u80fd\u5728\u5904\u7406Servlet\u4e0a\u4e0b\u6587\u5c5e\u6027\u65f6\u63d0\u4f9b\u989d\u5916\u7684\u5b58\u50a8\u6216\u8005\u6620\u5c04\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>initParameters&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, String&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u5b58\u50a8Servlet\u7684\u521d\u59cb\u5316\u53c2\u6570&#xff0c;\u8fd9\u4e9b\u53c2\u6570\u53ef\u4ee5\u5728Servlet\u521d\u59cb\u5316\u65f6\u88ab\u8bfb\u53d6\u548c\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<\/li>\n<li>servletContextAttributes&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, Object&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u5b58\u50a8Servlet\u4e0a\u4e0b\u6587\u7684\u5c5e\u6027&#xff0c;\u8fd9\u4e9b\u5c5e\u6027\u53ef\u4ee5\u5728\u6574\u4e2aServlet\u5e94\u7528\u4e2d\u88ab\u5171\u4eab\u548c\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<\/li>\n<li>localeCharsetMapping&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, String&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u672c\u5730\u5b57\u7b26\u96c6\u7684\u6620\u5c04\u5173\u7cfb&#xff0c;\u53ef\u80fd\u7528\u4e8e\u5904\u7406\u4e0d\u540c\u5730\u533a\u7684\u5b57\u7b26\u7f16\u7801\u8f6c\u6362\u7b49\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>welcomePages&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;String&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u6b22\u8fce\u9875\u9762\u7684\u5217\u8868&#xff0c;\u5f53\u7528\u6237\u8bbf\u95ee\u6839\u8def\u5f84\u6216\u8005\u7279\u5b9a\u8def\u5f84\u4e14\u6ca1\u6709\u6307\u5b9a\u5177\u4f53\u8d44\u6e90\u65f6&#xff0c;\u53ef\u80fd\u4f1a\u663e\u793a\u8fd9\u4e9b\u6b22\u8fce\u9875\u9762\u3002<\/li>\n<\/ul>\n<\/li>\n<li>errorPages&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;ErrorPage&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u9519\u8bef\u9875\u9762\u7684\u914d\u7f6e&#xff0c;\u5f53\u53d1\u751f\u7279\u5b9a\u7c7b\u578b\u7684\u9519\u8bef&#xff08;\u5982404\u3001500\u7b49&#xff09;\u65f6&#xff0c;\u4f1a\u663e\u793a\u5bf9\u5e94\u7684\u9519\u8bef\u9875\u9762\u3002<\/li>\n<\/ul>\n<\/li>\n<li>mimeMappings&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;MimeMapping&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86MIME\u7c7b\u578b\u7684\u6620\u5c04\u5173\u7cfb&#xff0c;\u7528\u4e8e\u5c06\u6587\u4ef6\u6269\u5c55\u540d\u4e0e\u5bf9\u5e94\u7684MIME\u7c7b\u578b\u8fdb\u884c\u6620\u5c04&#xff0c;\u786e\u4fdd\u6b63\u786e\u7684\u5185\u5bb9\u7c7b\u578b\u5904\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>notificationReceivers&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;NotificationReceiver&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u662f\u7528\u4e8e\u63a5\u6536\u901a\u77e5\u7684\u5bf9\u8c61\u5217\u8868&#xff0c;\u5177\u4f53\u901a\u77e5\u5185\u5bb9\u548c\u7528\u9014\u53d6\u51b3\u4e8eUndertow\u7684\u5185\u90e8\u673a\u5236\u3002<\/li>\n<\/ul>\n<\/li>\n<li>authenticationMechanisms&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, AuthenticationMechanismFactory&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u4e0d\u540c\u540d\u79f0\u5bf9\u5e94\u7684\u8ba4\u8bc1\u673a\u5236\u5de5\u5382\u7684\u6620\u5c04\u5173\u7cfb&#xff0c;\u7528\u4e8e\u6839\u636e\u540d\u79f0\u521b\u5efa\u4e0d\u540c\u7684\u8ba4\u8bc1\u673a\u5236\u3002<\/li>\n<\/ul>\n<\/li>\n<li>lifecycleInterceptors&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;LifecycleInterceptor&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u751f\u547d\u5468\u671f\u62e6\u622a\u5668\u7684\u5217\u8868&#xff0c;\u8fd9\u4e9b\u62e6\u622a\u5668\u53ef\u4ee5\u5728Servlet\u7684\u751f\u547d\u5468\u671f&#xff08;\u5982\u521d\u59cb\u5316\u3001\u9500\u6bc1\u7b49&#xff09;\u8fc7\u7a0b\u4e2d\u6267\u884c\u989d\u5916\u7684\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>sessionListeners&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;SessionListener&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u4f1a\u8bdd\u76d1\u542c\u5668\u7684\u5217\u8868&#xff0c;\u8fd9\u4e9b\u76d1\u542c\u5668\u53ef\u4ee5\u76d1\u542c\u4f1a\u8bdd\u7684\u521b\u5efa\u3001\u9500\u6bc1\u3001\u5c5e\u6027\u53d8\u5316\u7b49\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>servletExtensions&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;ServletExtension&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u5b58\u50a8\u989d\u5916\u7684Servlet\u6269\u5c55\u5bf9\u8c61&#xff0c;\u53ef\u80fd\u7528\u4e8e\u6269\u5c55Servlet\u7684\u529f\u80fd\u6216\u8005\u6dfb\u52a0\u81ea\u5b9a\u4e49\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>principalVersusRolesMap&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, Set&lt;String&gt;&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u4e3b\u4f53&#xff08;\u53ef\u80fd\u662f\u7528\u6237\u6216\u8005\u5176\u4ed6\u5b9e\u4f53&#xff09;\u4e0e\u89d2\u8272\u7684\u6620\u5c04\u5173\u7cfb&#xff0c;\u53ef\u80fd\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6388\u6743\u6216\u8005\u89d2\u8272\u7ba1\u7406\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>initialHandlerChainWrappers\u3001outerHandlerChainWrappers\u3001innerHandlerChainWrappers\u3001initialSecurityWrapper\u548csecurityWrappers&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;HandlerWrapper&gt;\u6216\u8005HandlerWrapper\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u8fd9\u4e9b\u662f\u4e0e\u8bf7\u6c42\u5904\u7406\u94fe\u5305\u88c5\u5668\u76f8\u5173\u7684\u6210\u5458\u53d8\u91cf\u3002\u4e0d\u540c\u7684\u5305\u88c5\u5668\u5728\u8bf7\u6c42\u5904\u7406\u7684\u4e0d\u540c\u9636\u6bb5\u88ab\u5e94\u7528&#xff0c;\u4f8b\u5982\u5728\u521d\u59cb\u7684Servlet\u5904\u7406\u4e4b\u524d\u3001\u5b89\u5168\u5904\u7406\u4e4b\u540e\u7b49\u4e0d\u540c\u9636\u6bb5&#xff0c;\u7528\u4e8e\u6dfb\u52a0\u989d\u5916\u7684\u5904\u7406\u903b\u8f91\u6216\u8005\u4fee\u6539\u8bf7\u6c42\u5904\u7406\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>defaultMultipartConfig&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;MultipartConfigElement\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u914d\u7f6e\u591a\u90e8\u5206&#xff08;\u4f8b\u5982\u6587\u4ef6\u4e0a\u4f20\u6d89\u53ca\u7684\u591a\u90e8\u5206\u5185\u5bb9&#xff09;\u76f8\u5173\u7684\u9ed8\u8ba4\u914d\u7f6e&#xff0c;\u5982\u679cServlet\u6ca1\u6709\u663e\u5f0f\u8bbe\u7f6e\u81ea\u5df1\u7684\u591a\u90e8\u5206\u914d\u7f6e&#xff0c;\u5c06\u4f7f\u7528\u8fd9\u4e2a\u9ed8\u8ba4\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>contentTypeCacheSize&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;int\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u5185\u5bb9\u7c7b\u578b\u7f13\u5b58\u7684\u5927\u5c0f&#xff0c;\u7f13\u5b58\u5185\u5bb9\u7c7b\u578b\u53ef\u80fd\u662f\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd&#xff0c;\u51cf\u5c11\u91cd\u590d\u89e3\u6790\u5185\u5bb9\u7c7b\u578b\u7684\u5f00\u9500\u3002<\/li>\n<\/ul>\n<\/li>\n<li>crawlerSessionManagerConfig&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;CrawlerSessionManagerConfig\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u914d\u7f6e\u4e0e\u722c\u866b&#xff08;\u53ef\u80fd\u662f\u641c\u7d22\u5f15\u64ce\u722c\u866b\u7b49&#xff09;\u4f1a\u8bdd\u7ba1\u7406\u76f8\u5173\u7684\u914d\u7f6e&#xff0c;\u5982\u679c\u9700\u8981\u5bf9\u722c\u866b\u7684\u4f1a\u8bdd\u8fdb\u884c\u7279\u6b8a\u5904\u7406\u7684\u8bdd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>securityDisabled&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;boolean\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u7528\u4e8e\u6807\u8bc6\u662f\u5426\u7981\u7528\u5b89\u5168\u76f8\u5173\u7684\u529f\u80fd&#xff0c;\u5982\u679c\u8bbe\u7f6e\u4e3atrue&#xff0c;\u53ef\u80fd\u4f1a\u8df3\u8fc7\u8ba4\u8bc1\u3001\u6388\u6743\u7b49\u5b89\u5168\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>checkOtherSessionManagers&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;boolean\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u53ef\u80fd\u7528\u4e8e\u51b3\u5b9a\u662f\u5426\u68c0\u67e5\u5176\u4ed6\u7684\u4f1a\u8bdd\u7ba1\u7406\u5668&#xff0c;\u5177\u4f53\u542b\u4e49\u53d6\u51b3\u4e8eUndertow\u5185\u90e8\u7684\u4f1a\u8bdd\u7ba1\u7406\u673a\u5236\u3002<\/li>\n<\/ul>\n<\/li>\n<li>deploymentCompleteListeners&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;List&lt;ServletContextListener&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u90e8\u7f72\u5b8c\u6210\u76d1\u542c\u5668\u7684\u5217\u8868&#xff0c;\u8fd9\u4e9b\u76d1\u542c\u5668\u5728\u90e8\u7f72\u5b8c\u6210\u65f6\u4f1a\u88ab\u89e6\u53d1&#xff0c;\u53ef\u4ee5\u7528\u4e8e\u6267\u884c\u4e00\u4e9b\u521d\u59cb\u5316\u6216\u8005\u540e\u7f6e\u5904\u7406\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>preCompressedResources&#xff1a;\n<ul>\n<li>\u7c7b\u578b&#xff1a;Map&lt;String, String&gt;\u3002<\/li>\n<li>\u542b\u4e49&#xff1a;\u5b9a\u4e49\u4e86\u5185\u5bb9\u7f16\u7801\u5230\u6587\u4ef6\u6269\u5c55\u540d\u7684\u6620\u5c04\u5173\u7cfb&#xff0c;\u53ef\u80fd\u7528\u4e8e\u5904\u7406\u9884\u538b\u7f29\u8d44\u6e90&#xff08;\u5982\u5df2\u7ecf\u538b\u7f29\u597d\u7684gzip\u6587\u4ef6&#xff09;&#xff0c;\u4ee5\u4fbf\u6b63\u786e\u8bc6\u522b\u548c\u5904\u7406\u8fd9\u4e9b\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"80\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418140203-68025b5b8e5e7.png\" width=\"81\" \/><\/p>\n<p>\u9ad8\u7ea7\u6a21\u5f0f\u641c\u7d22\u8be5\u95ee\u9898<\/p>\n<p>\u91cd\u5199<\/p>\n<p>\u590d\u5236<\/p>\n<\/p>\n<\/p>\n<p>DeploymentInfo\u7c7b\u7684cloneable\u6709\u54ea\u4e9b<\/p>\n<p>\u5982\u4f55\u4f7f\u7528DeploymentInfo\u7c7b\u7684cloneable<\/p>\n<p>DeploymentInfo\u7c7b\u7684cloneable\u6709\u4ec0\u4e48\u7528<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf25\u6b21\u3002Undertow\u901a\u8fc7\u4e00\u7cfb\u5217\u7684\u5185\u90e8\u673a\u5236\uff0c\u5c06\u539f\u751f\u7684\u5bf9\u8c61\u8f6c\u6362\u4e3aServlet\u89c4\u8303\u4e2d\u7684\u548c\u5bf9\u8c61\uff08\u5176\u5b9e\u662fjAVAEE\u89c4\u8303\u7684\uff09\uff0c\u7136\u540e\u8c03\u7528Servlet\u7684service\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u591a\u4e2a\u7c7b\u7684\u534f\u4f5c\uff0c\u5305\u62ec\u548c\u7b49\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u4e0d\u9700\u8981\u76f4\u63a5\u5904\u7406\u8fd9\u4e9b\u8f6c\u6362\u8fc7\u7a0b\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u548c\u90e8\u7f72Servlet\u6765\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u3002\u7c7b\u7528\u4e8e\u914d\u7f6e\u5728Undertow\u4e2dServlet\u5e94\u7528\u7684\u90e8\u7f72\u76f8\u5173\u4fe1\u606f\u3002\u5b83\u5b9e\u73b0\u4e86Cloneable\u63a5\u53e3\uff0c\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5bf9\u8fd9\u4e2a\u90e8\u7f72\u914d\u7f6e\u8fdb\u884c\u514b\u9686\u64cd\u4f5c\uff0c\u53ef\u80fd\u5728\u9700\u8981\u521b\u5efa\u76f8\u4f3c\u4f46\u7565\u6709\u4e0d\u540c\u7684\u90e8\u7f72\u914d\u7f6e\u573a\u666f\u4e0b\u4f1a\u7528\u5230\u3002_\u91c7\u7528 undertow \u57fa\u4e8e xnio \u7684\u9ad8\u6027\u80fd\u5bb9\u5668<\/p>\n","protected":false},"author":2,"featured_media":15489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-15491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/15491.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf25\u6b21\u3002Undertow\u901a\u8fc7\u4e00\u7cfb\u5217\u7684\u5185\u90e8\u673a\u5236\uff0c\u5c06\u539f\u751f\u7684\u5bf9\u8c61\u8f6c\u6362\u4e3aServlet\u89c4\u8303\u4e2d\u7684\u548c\u5bf9\u8c61\uff08\u5176\u5b9e\u662fjAVAEE\u89c4\u8303\u7684\uff09\uff0c\u7136\u540e\u8c03\u7528Servlet\u7684service\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u591a\u4e2a\u7c7b\u7684\u534f\u4f5c\uff0c\u5305\u62ec\u548c\u7b49\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u4e0d\u9700\u8981\u76f4\u63a5\u5904\u7406\u8fd9\u4e9b\u8f6c\u6362\u8fc7\u7a0b\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u548c\u90e8\u7f72Servlet\u6765\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u3002\u7c7b\u7528\u4e8e\u914d\u7f6e\u5728Undertow\u4e2dServlet\u5e94\u7528\u7684\u90e8\u7f72\u76f8\u5173\u4fe1\u606f\u3002\u5b83\u5b9e\u73b0\u4e86Cloneable\u63a5\u53e3\uff0c\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5bf9\u8fd9\u4e2a\u90e8\u7f72\u914d\u7f6e\u8fdb\u884c\u514b\u9686\u64cd\u4f5c\uff0c\u53ef\u80fd\u5728\u9700\u8981\u521b\u5efa\u76f8\u4f3c\u4f46\u7565\u6709\u4e0d\u540c\u7684\u90e8\u7f72\u914d\u7f6e\u573a\u666f\u4e0b\u4f1a\u7528\u5230\u3002_\u91c7\u7528 undertow \u57fa\u4e8e xnio \u7684\u9ad8\u6027\u80fd\u5bb9\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/15491.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T14:02:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418140203-68025b5b65560.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15491.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/15491.html\",\"name\":\"UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T14:02:04+00:00\",\"dateModified\":\"2025-04-18T14:02:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/15491.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/15491.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/15491.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UnderTow\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/15491.html","og_locale":"zh_CN","og_type":"article","og_title":"UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.2k\u6b21\uff0c\u70b9\u8d5e23\u6b21\uff0c\u6536\u85cf25\u6b21\u3002Undertow\u901a\u8fc7\u4e00\u7cfb\u5217\u7684\u5185\u90e8\u673a\u5236\uff0c\u5c06\u539f\u751f\u7684\u5bf9\u8c61\u8f6c\u6362\u4e3aServlet\u89c4\u8303\u4e2d\u7684\u548c\u5bf9\u8c61\uff08\u5176\u5b9e\u662fjAVAEE\u89c4\u8303\u7684\uff09\uff0c\u7136\u540e\u8c03\u7528Servlet\u7684service\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5230\u591a\u4e2a\u7c7b\u7684\u534f\u4f5c\uff0c\u5305\u62ec\u548c\u7b49\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u4e0d\u9700\u8981\u76f4\u63a5\u5904\u7406\u8fd9\u4e9b\u8f6c\u6362\u8fc7\u7a0b\uff0c\u800c\u662f\u901a\u8fc7\u914d\u7f6e\u548c\u90e8\u7f72Servlet\u6765\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u3002\u7c7b\u7528\u4e8e\u914d\u7f6e\u5728Undertow\u4e2dServlet\u5e94\u7528\u7684\u90e8\u7f72\u76f8\u5173\u4fe1\u606f\u3002\u5b83\u5b9e\u73b0\u4e86Cloneable\u63a5\u53e3\uff0c\u8fd9\u610f\u5473\u7740\u53ef\u4ee5\u5bf9\u8fd9\u4e2a\u90e8\u7f72\u914d\u7f6e\u8fdb\u884c\u514b\u9686\u64cd\u4f5c\uff0c\u53ef\u80fd\u5728\u9700\u8981\u521b\u5efa\u76f8\u4f3c\u4f46\u7565\u6709\u4e0d\u540c\u7684\u90e8\u7f72\u914d\u7f6e\u573a\u666f\u4e0b\u4f1a\u7528\u5230\u3002_\u91c7\u7528 undertow \u57fa\u4e8e xnio \u7684\u9ad8\u6027\u80fd\u5bb9\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/15491.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T14:02:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418140203-68025b5b65560.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/15491.html","url":"https:\/\/www.wsisp.com\/helps\/15491.html","name":"UnderTow\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T14:02:04+00:00","dateModified":"2025-04-18T14:02:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/15491.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/15491.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/15491.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"UnderTow\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=15491"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/15491\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/15489"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=15491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=15491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=15491"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=15491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}