{"id":48657,"date":"2025-07-30T12:57:28","date_gmt":"2025-07-30T04:57:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/48657.html"},"modified":"2025-07-30T12:57:28","modified_gmt":"2025-07-30T04:57:28","slug":"%e3%80%90springboot%e3%80%91spring-boot-%e5%86%85%e5%b5%8c-web-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%85%a5%e9%97%a8%ef%bc%8c%e4%b8%80%e6%96%87%e8%ae%b2%e6%98%8e%e7%99%bd-tomcat-%e7%9a%84%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/48657.html","title":{"rendered":"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b"},"content":{"rendered":"<p>  \u2b50 <\/p>\n<p>\u53c2\u8003\u8d44\u6599&#xff1a;Tomcat\u7cfb\u5217\u6559\u6750 &#xff08;\u4e00&#xff09;- \u6559\u7a0b<\/p>\n<h2>\u6982\u8ff0<\/h2>\n<li>\u5b9a\u4e49&#xff1a;\u4e00\u4e2a\u5f00\u6e90 Java Web \u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u5b9e\u73b0\u4e86 Java Servlet\u3001JavaServer Pages (JSP) \u7b49 Java EE \u89c4\u8303&#xff0c;\u662f\u6700\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\u4e4b\u4e00\n<li>Java Servlet&#xff1a;\u8fd0\u884c\u5728 Web \u670d\u52a1\u5668\u4e0a\u7684 Java \u7a0b\u5e8f&#xff0c;\u7528\u4e8e\u5904\u7406\u5ba2\u6237\u7aef\u8bf7\u6c42\u548c\u751f\u6210\u52a8\u6001\u5185\u5bb9&#xff0c;\u662f Java Web \u5e94\u7528\u7684\u6838\u5fc3\u7ec4\u4ef6<\/li>\n<li>JavaServer Pages&#xff1a;\u57fa\u4e8e Java \u7684\u670d\u52a1\u5668\u7aef\u7f51\u9875\u5f00\u53d1\u6280\u672f&#xff0c;\u5141\u8bb8\u5728 HTML \u4e2d\u5d4c\u5165 Java \u4ee3\u7801&#xff0c;\u7b80\u5316\u52a8\u6001\u7f51\u9875\u7684\u5f00\u53d1<\/li>\n<\/li>\n<li>\u529f\u80fd&#xff1a;\u76d1\u542c\u76ee\u6807 ip \u548c\u7aef\u53e3&#xff0c;\u4f7f\u5f97\u670d\u52a1\u8c03\u7528\u8005\u53ea\u9700\u8981\u5c06\u8bf7\u6c42\u53d1\u9001\u5230 ip \u5bf9\u5e94\u7684 \u7aef\u53e3&#xff0c;\u800c\u65e0\u9700\u5173\u5fc3\u5bf9\u65b9\u662f\u4ec0\u4e48\u7c7b\u578b\u7684\u670d\u52a1<\/li>\n<li>\u6838\u5fc3\u76ee\u6807&#xff1a;\u89e3\u8026\u8c03\u7528\u8005&#xff08;\u524d\u7aef\u6216\u7f51\u5173&#xff09;\u548c\u670d\u52a1\u5668&#xff08;\u540e\u7aef&#xff09;&#xff0c;\u8ba9\u53cc\u65b9\u53ef\u4ee5\u901a\u8fc7 http \u65b9\u5f0f\u8fdb\u884c\u901a\u4fe1&#xff0c;\u800c\u4e0d\u9700\u8981\u5173\u5fc3\u5bf9\u65b9\u662f\u5982\u4f55\u8fd0\u4f5c\u7684<\/li>\n<li>\u4e0b\u8f7d&#xff1a; Apache Tomcat\u00ae &#8211; Apache Tomcat 9 Software Downloads<\/li>\n<li>\u540d\u79f0\u6765\u5386&#xff1a;Tomcat\u662f\u4e00\u79cd\u91ce\u5916\u7684\u732b\u79d1\u52a8\u7269&#xff0c;\u4e0d\u4f9d\u8d56\u4eba\u7c7b&#xff0c;\u72ec\u7acb\u751f\u6d3b\u3002 Tomcat\u7684\u4f5c\u8005&#xff0c;\u53d6\u8fd9\u4e2a\u540d\u5b57\u7684\u521d\u8877\u662f\u5e0c\u671b&#xff0c;\u8fd9\u4e00\u6b3e\u670d\u52a1\u5668\u53ef\u4ee5\u81ea\u529b\u66f4\u751f&#xff0c;\u81ea\u7ed9\u81ea\u8db3&#xff0c;\u50cfTomcat\u8fd9\u6837\u4e00\u79cd\u91ce\u751f\u52a8\u7269\u4e00\u822c&#xff0c;\u4e0d\u4f9d\u8d56\u5176\u4ed6\u63d2\u4ef6&#xff0c;\u800c\u53ef\u4ee5\u72ec\u7acb\u8fbe\u5230\u63d0\u4f9b web \u670d\u52a1\u7684\u6548\u679c<\/li>\n<h2>\u76f8\u5173\u6982\u5ff5<\/h2>\n<h4>Web \u670d\u52a1\u5668<\/h4>\n<li>\u5b9a\u4e49&#xff1a;\u5904\u7406 HTTP \u8bf7\u6c42\u800c\u4e0d\u6267\u884c\u5177\u4f53\u4e1a\u52a1\u4ee3\u7801\u7684\u670d\u52a1\u5668<\/li>\n<li>\u529f\u80fd\n<ul>\n<li>\u5904\u7406\u9759\u6001\u8d44\u6e90&#xff1a;HTML\u3001CSS\u3001JS\u3001\u56fe\u7247\u7b49&#xff0c;\u53ef\u4ee5\u63d0\u4f9b\u524d\u7aef\u9875\u9762<\/li>\n<li>\u8f6c\u53d1\u8bf7\u6c42&#xff1a;\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406&#xff0c;\u628a\u52a8\u6001\u8bf7\u6c42\u8f6c\u53d1\u7ed9 Web \u5e94\u7528\u670d\u52a1\u5668&#xff08;\u5982 Tomcat\u3001JBoss&#xff09;<\/li>\n<li>\u8d1f\u8f7d\u5747\u8861&#xff1a;\u8d1f\u8d23\u5206\u914d\u6d41\u91cf\u5230\u591a\u4e2a Web \u5e94\u7528\u670d\u52a1\u5668<\/li>\n<\/ul>\n<\/li>\n<h4>Web \u5bb9\u5668<\/h4>\n<li>\u5b9a\u4e49&#xff1a;\u5b9e\u9645\u4e0a\u5c31\u662f\u540e\u7aef\u670d\u52a1\u5668&#xff0c;\u5c5e\u4e8e Web \u5e94\u7528\u670d\u52a1\u5668\u7684\u4e00\u90e8\u5206&#xff0c;\u4f46\u662f\u4e0d\u5177\u5907 HTTP \u8bf7\u6c42\u5904\u7406\u80fd\u529b<\/li>\n<li>\u529f\u80fd&#xff1a;\u8d1f\u8d23\u5904\u7406\u52a8\u6001\u8bf7\u6c42&#xff0c;\u8fd0\u884c\u548c\u7ba1\u7406 Java Web \u5e94\u7528&#xff08;Servlet\u3001JSP&#xff09;&#xff0c;\u6267\u884c\u5177\u4f53\u7684\u4e1a\u52a1\u4ee3\u7801<\/li>\n<h4>Web \u5e94\u7528\u670d\u52a1\u5668<\/h4>\n<li>\u5b9a\u4e49&#xff1a;Application Server&#xff0c;\u662f\u4e00\u4e2a\u63d0\u4f9b\u4e1a\u52a1\u903b\u8f91\u6267\u884c\u73af\u5883\u7684\u670d\u52a1\u5668\u8f6f\u4ef6&#xff0c;Web \u5e94\u7528\u670d\u52a1\u5668 &#061; Web \u5bb9\u5668 &#043; \u4f01\u4e1a\u7ea7\u670d\u52a1\n<ul>\n<li>\u4f01\u4e1a\u7ea7\u670d\u52a1&#xff1a;\u4e8b\u52a1\u7ba1\u7406\u3001\u5b89\u5168\u8ba4\u8bc1\u3001\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u3001\u6d88\u606f\u961f\u5217\u7b49\u9ad8\u7ea7\u529f\u80fd<\/li>\n<\/ul>\n<\/li>\n<li>\u529f\u80fd\n<ul>\n<li>\u7ba1\u7406\u548c\u8fd0\u884c Web \u5e94\u7528\u7a0b\u5e8f&#xff0c;\u5904\u7406\u5e76\u53d1\u8bf7\u6c42\u548c\u8d1f\u8f7d\u5747\u8861<\/li>\n<li>\u63d0\u4f9b\u4f01\u4e1a\u7ea7\u670d\u52a1\u548c\u8d44\u6e90\u7ba1\u7406&#xff0c;\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027<\/li>\n<\/ul>\n<\/li>\n<h2>\u4e3b\u8981\u529f\u80fd<\/h2>\n<li>\u90e8\u7f72\u548c\u8fd0\u884c Java Web \u5e94\u7528&#xff1a;\u652f\u6301JSP\u9875\u9762\u548cServlet\u7ec4\u4ef6\u7684\u6267\u884c&#xff0c;\u5904\u7406\u52a8\u6001Web\u5185\u5bb9<\/li>\n<li>Web \u5bb9\u5668&#xff1a;\u7b26\u5408 JavaEE \u89c4\u8303&#xff0c;\u63d0\u4f9b\u5b8c\u6574\u7684 Web \u5bb9\u5668\u73af\u5883&#xff0c;\u7ba1\u7406 Servlet \u751f\u547d\u5468\u671f<\/li>\n<li>\u8bf7\u6c42\u5904\u7406&#xff1a;\u9ad8\u6548\u5904\u7406HTTP\u8bf7\u6c42&#xff0c;\u652f\u6301\u4f1a\u8bdd\u7ba1\u7406\u548c\u8bf7\u6c42\u8f6c\u53d1<\/li>\n<li>\u5f00\u53d1\u652f\u6301&#xff1a;\u4e3aJava Web\u5e94\u7528\u63d0\u4f9b\u5b8c\u6574\u7684\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u8c03\u8bd5\u73af\u5883&#xff0c;\u652f\u6301\u70ed\u90e8\u7f72<\/li>\n<h2>\u7ec4\u6210\u90e8\u5206&#xff08;\u4e0d\u662f\u5f88\u91cd\u8981&#xff0c;\u53ea\u60f3\u4e86\u89e3\u57fa\u672c\u539f\u7406\u53ef\u4ee5\u8df3\u8fc7&#xff09;<\/h2>\n<li>Coyote&#xff08;HTTP \u8fde\u63a5\u5668&#xff09;\n<ul>\n<li>\u5b9a\u4e49&#xff1a;Tomcat \u7684 HTTP \u5904\u7406\u5668&#xff0c;\u8d1f\u8d23\u76d1\u542c\u7aef\u53e3&#xff08;\u9ed8\u8ba4 8080&#xff09;\u5e76\u89e3\u6790 HTTP \u8bf7\u6c42<\/li>\n<li>\u529f\u80fd&#xff1a;\u89e3\u6790 HTTP \u8bf7\u6c42\u5934\u3001\u5904\u7406 Keep-Alive \u8fde\u63a5\u3001\u5c06\u8bf7\u6c42\u4ea4\u7ed9 Catalina \u5904\u7406<\/li>\n<\/ul>\n<\/li>\n<li>Jasper&#xff08;JSP \u89e3\u6790\u5f15\u64ce&#xff09;\n<ul>\n<li>\u529f\u80fd&#xff1a;Jasper \u8d1f\u8d23\u89e3\u6790 JSP \u9875\u9762&#xff0c;\u5c06 JSP \u8f6c\u6362\u6210 Java \u7c7b&#xff0c;\u4ea4\u7ed9 Catalina \u6267\u884c<\/li>\n<li>JSP \u8fd0\u884c\u6d41\u7a0b\n<li>Tomcat \u89e3\u6790 JSP \u6587\u4ef6&#xff08;index.jsp&#xff09;\u3002<\/li>\n<li>Jasper \u5c06 JSP \u8f6c\u6362\u4e3a Java Servlet \u4ee3\u7801\u3002<\/li>\n<li>\u7f16\u8bd1 Java \u4ee3\u7801\u6210 .class \u6587\u4ef6&#xff0c;\u4ea4\u7531 Catalina \u8fd0\u884c\u3002<\/li>\n<\/li>\n<\/ul>\n<\/li>\n<li>Catalina&#xff08;Servlet \u5bb9\u5668&#xff09;\n<ul>\n<li>\u5b9a\u4e49&#xff1a;\u8d1f\u8d23 Servlet \u5904\u7406\u7684\u6838\u5fc3\u7ec4\u4ef6&#xff0c;\u5373 Tomcat \u7684 Web \u5bb9\u5668<\/li>\n<li>\u529f\u80fd\n<ul>\n<li>\u8d1f\u8d23\u7ba1\u7406\u591a\u4e2a Web \u5e94\u7528&#xff08;WAR \u5305&#xff09;&#xff0c;\u4e00\u4e2a\u5e94\u7528\u5bf9\u5e94\u4e00\u4e2a ServletContext \u5b9e\u4f8b&#xff0c;\u5e76\u901a\u8fc7 ServletContext \u5b9e\u4f8b\u5c06\u63a5\u53e3\u66b4\u9732\u7ed9 Web \u5e94\u7528<\/li>\n<li>\u5904\u7406 web.xml \u914d\u7f6e&#xff0c;\u7ba1\u7406 Web \u5e94\u7528\u7684\u751f\u547d\u5468\u671f&#xff08;\u542f\u52a8\u3001\u9500\u6bc1&#xff09;<\/li>\n<li>\u5904\u7406 Servlet \u53ca\u5176\u6620\u5c04&#xff0c;\u8c03\u7528 HttpServlet \u7684 doGet() \u548c doPost() \u65b9\u6cd5<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Apr&#xff08;\u539f\u751f\u5e93\u4f18\u5316&#xff09;\n<ul>\n<li>\u5b9a\u4e49&#xff1a;Tomcat \u7684\u539f\u751f\u4f18\u5316\u5e93&#xff0c;\u7528\u4e8e\u63d0\u9ad8\u6027\u80fd\u548c\u5b89\u5168\u6027&#xff0c;\u9700\u8981\u989d\u5916\u5b89\u88c5 tomcat-native \u624d\u80fd\u542f\u7528<\/li>\n<li>APR \u9002\u7528\u573a\u666f\n<ul>\n<li>\u5904\u7406\u9ad8\u5e76\u53d1\u8bf7\u6c42\u65f6&#xff0c;APR \u63d0\u4f9b\u66f4\u5feb\u7684 Socket \u901a\u4fe1\u3002<\/li>\n<li>SSL\/TLS \u52a0\u5bc6\u65f6&#xff0c;APR \u53ef\u4ee5\u63d0\u9ad8\u52a0\u5bc6\u6548\u7387\u3002<\/li>\n<li>\u5728 Linux \u670d\u52a1\u5668 \u4e0a&#xff0c;APR \u901a\u8fc7 epoll \u63d0\u9ad8 IO \u6027\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Cluster&#xff08;\u96c6\u7fa4\u7ba1\u7406&#xff09;\n<ul>\n<li>\u5b9a\u4e49&#xff1a;Tomcat \u63d0\u4f9b\u7684\u96c6\u7fa4\u652f\u6301&#xff0c;\u5141\u8bb8\u591a\u4e2a Tomcat \u670d\u52a1\u5668\u5171\u4eab Session \u6570\u636e&#xff0c;\u9002\u7528\u4e8e\u591a\u53f0 Tomcat \u90e8\u7f72\u7684\u573a\u666f<\/li>\n<li>\u529f\u80fd&#xff1a;\u7528\u4e8e\u8d1f\u8f7d\u5747\u8861\u548c Session \u590d\u5236&#xff0c;\u9632\u6b62\u5355\u70b9\u6545\u969c&#xff08;Session \u5931\u6548&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>High-Availability&#xff08;\u9ad8\u53ef\u7528\u6027&#xff09;\n<ul>\n<li>\u5b9a\u4e49&#xff1a;Tomcat \u63d0\u4f9b\u7684\u6545\u969c\u8f6c\u79fb\u80fd\u529b&#xff08;Failover&#xff09;<\/li>\n<li>\u529f\u80fd&#xff1a;\u4fdd\u8bc1\u5728\u67d0\u53f0 Tomcat \u5d29\u6e83\u65f6&#xff0c;Session \u4f9d\u7136\u53ef\u7528&#xff0c;\u9002\u7528\u4e8e\u5927\u89c4\u6a21 Web \u5e94\u7528&#xff0c;\u9632\u6b62\u5355\u70b9\u6545\u969c<\/li>\n<\/ul>\n<\/li>\n<li>WebApps&#xff08;Web \u5e94\u7528\u7ba1\u7406&#xff09;\n<ul>\n<li>\n<p>\u5b9a\u4e49&#xff1a;WebApps \u76ee\u5f55\u662f Tomcat \u90e8\u7f72 Web \u5e94\u7528\u7684\u5730\u65b9&#xff0c;\u652f\u6301\u70ed\u90e8\u7f72<\/p>\n<\/li>\n<li>\n<p>\u9ed8\u8ba4 WebApps \u76ee\u5f55\u7ed3\u6784<\/p>\n<p> \u251c\u2500\u2500 webapps<br \/>\n\u2502   \u251c\u2500\u2500 ROOT  &#xff08;\u9ed8\u8ba4 <span class=\"token class-name\">Web<\/span> \u5e94\u7528&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 myapp &#xff08;\u7528\u6237\u81ea\u5b9a\u4e49 <span class=\"token class-name\">Web<\/span> \u5e94\u7528&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 docs  &#xff08;<span class=\"token class-name\">Tomcat<\/span> \u6587\u6863&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 manager &#xff08;<span class=\"token class-name\">Tomcat<\/span> \u7ba1\u7406\u754c\u9762&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 host<span class=\"token operator\">&#8211;<\/span>manager &#xff08;\u591a\u7ad9\u70b9\u7ba1\u7406&#xff09;\n <\/li>\n<\/ul>\n<\/li>\n<h2>\u5de5\u4f5c\u6d41\u7a0b<\/h2>\n<li>**\u5ba2\u6237\u7aef\u53d1\u8d77 HTTP \u8bf7\u6c42&#xff1a;**\u6bd4\u5982\u7528\u6237\u8bbf\u95ee http:\/\/localhost:8080\/myapp\/hello<\/li>\n<ul>\n<li>\n<p>Coyote \u76d1\u542c HTTP \u7aef\u53e3&#xff08;\u5982 8080&#xff09;&#xff0c;\u63a5\u6536 HTTP \u8bf7\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>Coyote \u89e3\u6790 HTTP \u8bf7\u6c42\u5e76\u8f6c\u6362\u4e3a ServletRequest \u5bf9\u8c61&#xff0c;\u4ea4\u7ed9 Catalina \u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>Catalina \u89e3\u6790\u8bf7\u6c42\u7684\u4e3b\u673a\u548c\u8def\u5f84&#xff0c;\u786e\u5b9a\u8be5\u8bf7\u6c42\u5e94\u8be5\u4ea4\u7ed9\u54ea\u4e2a Web \u5e94\u7528 \u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>Catalina \u5c06\u8bf7\u6c42\u4ea4\u7ed9\u5bf9\u5e94\u7684 Servlet \u5904\u7406<\/p>\n<p>\u5728\u8fd9\u4e2a Web \u5e94\u7528\u4e2d&#xff0c;Catalina \u4f1a\u67e5\u770b\u5b83\u7684 web.xml \u6587\u4ef6\u6216\u8005\u6ce8\u89e3\u914d\u7f6e&#xff0c;\u627e\u5230\u5339\u914d\u8be5\u8bf7\u6c42\u8def\u5f84\u7684 Servlet<\/p>\n<p>\u5982\u679c\u8def\u5f84\u662f \/*&#xff08;\u6216\u8005\u67d0\u4e2a\u5177\u4f53\u7684\u8def\u5f84&#xff09;&#xff0c;\u800c\u8fd9\u4e2a\u8def\u5f84\u88ab\u6620\u5c04\u5230\u4e86 DispatcherServlet&#xff0c;\u90a3\u4e48 Catalina \u5c31\u4f1a\u628a\u8bf7\u6c42\u4ea4\u7ed9 DispatcherServlet \u5904\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>Servlet \u5904\u7406\u8bf7\u6c42&#xff08;\u82e5\u8bf7\u6c42\u7684\u662f \/hello \u8fd9\u79cd Servlet \u8def\u5f84&#xff09;&#xff0c;\u6216\u8005 Jasper \u5904\u7406 JSP \u9875\u9762&#xff08;\u82e5\u8bf7\u6c42\u7684\u662f \/index.jsp&#xff09;<\/p>\n<\/li>\n<li>\n<p>Servlet \u6216 JSP \u751f\u6210\u54cd\u5e94 \u5e76\u8fd4\u56de\u7ed9 Catalina\u3002<\/p>\n<\/li>\n<li>\n<p>Catalina \u901a\u8fc7 Coyote \u5c06\u54cd\u5e94\u5c01\u88c5\u6210 HTTP \u54cd\u5e94 \u5e76\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002<\/p>\n<\/li>\n<\/ul>\n<p>  #mermaid-svg-Rm7ffSwQjq3cOgXo {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .error-icon{fill:#552222;}#mermaid-svg-Rm7ffSwQjq3cOgXo .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Rm7ffSwQjq3cOgXo .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-Rm7ffSwQjq3cOgXo .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Rm7ffSwQjq3cOgXo .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Rm7ffSwQjq3cOgXo .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Rm7ffSwQjq3cOgXo .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Rm7ffSwQjq3cOgXo .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .marker.cross{stroke:#333333;}#mermaid-svg-Rm7ffSwQjq3cOgXo svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Rm7ffSwQjq3cOgXo .actor{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Rm7ffSwQjq3cOgXo text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Rm7ffSwQjq3cOgXo .actor-line{stroke:grey;}#mermaid-svg-Rm7ffSwQjq3cOgXo .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo #arrowhead path{fill:#333;stroke:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .sequenceNumber{fill:white;}#mermaid-svg-Rm7ffSwQjq3cOgXo #sequencenumber{fill:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo #crosshead path{fill:#333;stroke:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .messageText{fill:#333;stroke:#333;}#mermaid-svg-Rm7ffSwQjq3cOgXo .labelBox{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Rm7ffSwQjq3cOgXo .labelText,#mermaid-svg-Rm7ffSwQjq3cOgXo .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Rm7ffSwQjq3cOgXo .loopText,#mermaid-svg-Rm7ffSwQjq3cOgXo .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Rm7ffSwQjq3cOgXo .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);}#mermaid-svg-Rm7ffSwQjq3cOgXo .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-svg-Rm7ffSwQjq3cOgXo .noteText,#mermaid-svg-Rm7ffSwQjq3cOgXo .noteText&gt;tspan{fill:black;stroke:none;}#mermaid-svg-Rm7ffSwQjq3cOgXo .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Rm7ffSwQjq3cOgXo .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Rm7ffSwQjq3cOgXo .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-svg-Rm7ffSwQjq3cOgXo .actorPopupMenu{position:absolute;}#mermaid-svg-Rm7ffSwQjq3cOgXo .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 \/ 0.4));}#mermaid-svg-Rm7ffSwQjq3cOgXo .actor-man line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;}#mermaid-svg-Rm7ffSwQjq3cOgXo .actor-man circle,#mermaid-svg-Rm7ffSwQjq3cOgXo line{stroke:hsl(259.6261682243, 59.7765363128%, 87.9019607843%);fill:#ECECFF;stroke-width:2px;}#mermaid-svg-Rm7ffSwQjq3cOgXo :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>      Client<\/p>\n<p>      Coyote<\/p>\n<p>      Catalina<\/p>\n<p>      Web Application<\/p>\n<p>      Servlet\/JSP<\/p>\n<p>   HTTP\u8bf7\u6c42<\/p>\n<p>   \u76d1\u542c8080\u7aef\u53e3<\/p>\n<p>   \u89e3\u6790HTTP\u8bf7\u6c42<\/p>\n<p>   \u8f6c\u6362\u4e3aRequest\u5bf9\u8c61<\/p>\n<p>   \u89e3\u6790\u8bf7\u6c42\u8def\u5f84<\/p>\n<p>   \u786e\u5b9a\u76ee\u6807Web\u5e94\u7528<\/p>\n<p>   \u8c03\u7528Servlet\u5904\u7406<\/p>\n<p>   Jasper\u5904\u7406JSP<\/p>\n<p>    alt<\/p>\n<p>     [Servlet\u8bf7\u6c42<\/p>\n<p>     (\/hello)]<\/p>\n<p>    [JSP\u8bf7\u6c42<\/p>\n<p>    (\/index.jsp)]<\/p>\n<p>   \u8fd4\u56de\u5904\u7406\u7ed3\u679c<\/p>\n<p>   \u4f20\u9012\u54cd\u5e94<\/p>\n<p>   \u8fd4\u56deHTTP\u54cd\u5e94<\/p>\n<p>     Client<\/p>\n<p>     Coyote<\/p>\n<p>     Catalina<\/p>\n<p>     Web Application<\/p>\n<p>     Servlet\/JSP<\/p>\n<h3>Tomcat \u7ed3\u6784\u5173\u7cfb\u56fe<\/h3>\n<p>Server <span class=\"token punctuation\">(<\/span>\u9876\u5c42\u670d\u52a1\u5668<span class=\"token punctuation\">)<\/span><br \/>\n\u2514\u2500\u2500 Service <span class=\"token punctuation\">(<\/span>\u670d\u52a1<span class=\"token punctuation\">)<\/span><br \/>\n    \u251c\u2500\u2500 Connector <span class=\"token punctuation\">(<\/span>\u8fde\u63a5\u5668&#xff0c;\u76d1\u542c <span class=\"token number\">8081<\/span> \u7aef\u53e3<span class=\"token punctuation\">)<\/span><br \/>\n    \u2514\u2500\u2500 Engine <span class=\"token punctuation\">(<\/span>\u6838\u5fc3\u5f15\u64ce&#xff0c;\u5904\u7406\u8bf7\u6c42<span class=\"token punctuation\">)<\/span><br \/>\n        \u2514\u2500\u2500 Host <span class=\"token punctuation\">(<\/span>\u865a\u62df\u4e3b\u673a&#xff0c;\u5982 localhost<span class=\"token punctuation\">)<\/span><br \/>\n            \u2514\u2500\u2500 Context <span class=\"token punctuation\">(<\/span>Web \u5e94\u7528\u4e0a\u4e0b\u6587&#xff0c;\u8def\u5f84\u4e3a <span class=\"token string\">&#034;&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                \u2514\u2500\u2500 DispatcherServlet <span class=\"token punctuation\">(<\/span>Spring MVC \u7684\u6838\u5fc3 Servlet&#xff0c;\u6620\u5c04 \/*<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5ba2\u6237\u7aef&#xff08;\u5982\u6d4f\u89c8\u5668&#xff09;<br \/>\n    \u2193 HTTP \u8bf7\u6c42<br \/>\nTomcat <span class=\"token punctuation\">(<\/span>Catalina &#043; Coyote<span class=\"token punctuation\">)<\/span><br \/>\n    \u2193 Connector <span class=\"token punctuation\">(<\/span>Coyote \u5b9e\u73b0\u4e86\u5e95\u5c42\u901a\u4fe1<span class=\"token punctuation\">)<\/span><br \/>\n    \u2193 Engine &#8211;<span class=\"token operator\">&gt;<\/span> Host &#8211;<span class=\"token operator\">&gt;<\/span> Context<br \/>\nDispatcherServlet <span class=\"token punctuation\">(<\/span>Spring MVC \u7684\u6838\u5fc3 Servlet<span class=\"token punctuation\">)<\/span><br \/>\n    \u2193 Spring ApplicationContext<br \/>\n    \u2193 Controller <span class=\"token punctuation\">(<\/span>\u5904\u7406\u8bf7\u6c42\u7684 Bean<span class=\"token punctuation\">)<\/span><br \/>\n    \u2193 Service \/ Repository <span class=\"token punctuation\">(<\/span>\u4e1a\u52a1\u903b\u8f91\u5c42<span class=\"token punctuation\">)<\/span><\/p>\n<ul>\n<li>Server&#xff1a;\u4ee3\u8868\u6574\u4e2a Tomcat \u670d\u52a1\u5668&#xff0c;\u662f\u6700\u9876\u5c42\u7684\u5bb9\u5668\u5bf9\u8c61<\/li>\n<li>Service&#xff1a;\u5305\u542b\u4e00\u4e2a Engine \u548c\u591a\u4e2a Connector&#xff0c;\u8d1f\u8d23\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1<\/li>\n<li>Connector&#xff1a;\u8fde\u63a5\u5668&#xff0c;\u8d1f\u8d23\u63a5\u6536\u8bf7\u6c42\u5e76\u5c06\u8bf7\u6c42\u8f6c\u53d1\u7ed9 Engine \u5904\u7406<\/li>\n<li>Engine&#xff1a;\u5f15\u64ce&#xff0c;\u8d1f\u8d23\u5904\u7406 Connector \u63a5\u6536\u5230\u7684\u8bf7\u6c42&#xff0c;\u662f Service \u4e2d\u7684\u6838\u5fc3\u5904\u7406\u7ec4\u4ef6<\/li>\n<li>Host&#xff1a;\u865a\u62df\u4e3b\u673a&#xff0c;\u8d1f\u8d23\u7ba1\u7406\u4e00\u4e2a\u6216\u591a\u4e2a Context&#xff08;Web \u5e94\u7528&#xff09;<\/li>\n<li>Context&#xff1a;\u4ee3\u8868\u4e00\u4e2a Web \u5e94\u7528&#xff0c;\u7ba1\u7406 Servlet \u5bb9\u5668\u548c\u76f8\u5173\u8d44\u6e90<\/li>\n<li>DispatcherServlet&#xff1a;Spring MVC \u7684\u6838\u5fc3\u7ec4\u4ef6&#xff0c;\u8d1f\u8d23\u5c06\u8bf7\u6c42\u5206\u53d1\u7ed9\u5bf9\u5e94\u7684\u5904\u7406\u5668<\/li>\n<\/ul>\n<h2>Tomcat &amp; Nginx<\/h2>\n<li>\u4e8c\u8005\u4f18\u52bf\n<li>Nginx&#xff1a;\u64c5\u957f\u5904\u7406\u9759\u6001\u8d44\u6e90\u548c\u9ad8\u5e76\u53d1<\/li>\n<li>Tomcat&#xff1a;\u4e13\u6ce8\u4e8e\u5904\u7406Java\u52a8\u6001\u8bf7\u6c42\u548c\u4e1a\u52a1\u903b\u8f91\u3002<\/li>\n<\/li>\n<li>\u4e8c\u8005\u5173\u7cfb&#xff1a;\u5728\u5b9e\u9645\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;Nginx \u548c Tomcat \u5e38\u5e38\u7ed3\u5408\u4f7f\u7528&#xff0c;\u5145\u5206\u53d1\u6325\u4e24\u8005\u7684\u4f18\u52bf<\/li>\n<li>\u5408\u4f5c\u65b9\u5f0f&#xff1a;Nginx \u4f5c\u4e3a\u524d\u7aef\u670d\u52a1\u5668\u5904\u7406\u9759\u6001\u8d44\u6e90\u8bf7\u6c42&#xff0c;\u5e76\u5c06\u52a8\u6001\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u540e\u7aef\u7684 Tomcat \u5904\u7406<\/li>\n<h4>\u5e38\u89c1\u67b6\u6784<\/h4>\n<p>\u7528\u6237\u8bf7\u6c42 \u2192 Nginx (Web \u670d\u52a1\u5668) \u2192 Tomcat (Web \u5bb9\u5668) \u5904\u7406 Java \u4e1a\u52a1\u903b\u8f91<\/p>\n<p>  #mermaid-svg-Mte8JpzHtUIWxgZZ {font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .error-icon{fill:#552222;}#mermaid-svg-Mte8JpzHtUIWxgZZ .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-Mte8JpzHtUIWxgZZ .marker{fill:#333333;stroke:#333333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .marker.cross{stroke:#333333;}#mermaid-svg-Mte8JpzHtUIWxgZZ svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .cluster-label text{fill:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .cluster-label span{color:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .label text,#mermaid-svg-Mte8JpzHtUIWxgZZ span{fill:#333;color:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .node rect,#mermaid-svg-Mte8JpzHtUIWxgZZ .node circle,#mermaid-svg-Mte8JpzHtUIWxgZZ .node ellipse,#mermaid-svg-Mte8JpzHtUIWxgZZ .node polygon,#mermaid-svg-Mte8JpzHtUIWxgZZ .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .node .label{text-align:center;}#mermaid-svg-Mte8JpzHtUIWxgZZ .node.clickable{cursor:pointer;}#mermaid-svg-Mte8JpzHtUIWxgZZ .arrowheadPath{fill:#333333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-Mte8JpzHtUIWxgZZ .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-Mte8JpzHtUIWxgZZ .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-Mte8JpzHtUIWxgZZ .cluster text{fill:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ .cluster span{color:#333;}#mermaid-svg-Mte8JpzHtUIWxgZZ div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-Mte8JpzHtUIWxgZZ :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span id=\"L-L-A-B\" class=\"edgeLabel L-LS-A&#039; L-LE-B\">HTTP\u8bf7\u6c42<\/span><\/p>\n<p>         <span id=\"L-L-B-C\" class=\"edgeLabel L-LS-B&#039; L-LE-C\">\u9759\u6001\u8d44\u6e90\u8bf7\u6c42<\/span><\/p>\n<p>         <span id=\"L-L-B-D\" class=\"edgeLabel L-LS-B&#039; L-LE-D\">\u52a8\u6001\u8bf7\u6c42\u8f6c\u53d1<\/span><\/p>\n<p>         <span id=\"L-L-D-E\" class=\"edgeLabel L-LS-D&#039; L-LE-E\">\u5904\u7406Java\u4e1a\u52a1\u903b\u8f91<\/span><\/p>\n<p>          \u7528\u6237<\/p>\n<p>          Nginx<\/p>\n<p>          \u5904\u7406\u9759\u6001\u8d44\u6e90<\/p>\n<p>          Tomcat<\/p>\n<p>          \u8fd4\u56de\u5904\u7406\u7ed3\u679c<\/p>\n<h4>\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u6bd4\u8f83\u65b9\u9762TomcatNginx<\/tr>\n<tbody>\n<tr>\n<td>\u529f\u80fd\u5b9a\u4f4d<\/td>\n<td>Java\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u4e13\u6ce8\u4e8e\u5904\u7406 Java Web \u5e94\u7528\u7a0b\u5e8f<\/td>\n<td>\u9ad8\u6027\u80fdweb\u670d\u52a1\u5668&#xff0c;\u4e13\u6ce8\u4e8e\u9759\u6001\u8d44\u6e90\u5904\u7406\u3001\u53cd\u5411\u4ee3\u7406\u548c\u8d1f\u8f7d\u5747\u8861<\/td>\n<\/tr>\n<tr>\n<td>\u5904\u7406\u673a\u5236<\/td>\n<td>\u5904\u7406\u52a8\u6001\u8bf7\u6c42&#xff0c;\u652f\u6301 Java Web \u5bb9\u5668\u529f\u80fd<\/td>\n<td>\u5904\u7406\u9759\u6001\u5185\u5bb9&#xff0c;\u63d0\u4f9b HTTP \u670d\u52a1&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u8fd0\u884c Java \u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd\u7279\u70b9<\/td>\n<td>\u9002\u5408\u5904\u7406\u52a8\u6001\u8bf7\u6c42&#xff0c;\u5185\u5b58\u5360\u7528\u8f83\u5927&#xff0c;\u5355\u673a\u5e76\u53d1\u91cf\u8f83\u4f4e<\/td>\n<td>\u9759\u6001\u8d44\u6e90\u5904\u7406\u6548\u7387\u9ad8&#xff0c;\u5185\u5b58\u5360\u7528\u5c0f&#xff0c;\u9ad8\u5e76\u53d1\u6027\u80fd\u4f18\u79c0<\/td>\n<\/tr>\n<tr>\n<td>\u5e94\u7528\u573a\u666f<\/td>\n<td>Java Web \u5e94\u7528\u90e8\u7f72&#xff0c;\u5f00\u53d1\u6d4b\u8bd5\u73af\u5883<\/td>\n<td>\u751f\u4ea7\u73af\u5883\u524d\u7aef\u670d\u52a1\u5668&#xff0c;\u8d1f\u8f7d\u5747\u8861&#xff0c;\u53cd\u5411\u4ee3\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u7aef\u53e3<\/td>\n<td>\u9ed8\u8ba48080\u7aef\u53e3<\/td>\n<td>\u9ed8\u8ba480\u7aef\u53e3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb809\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Tomcat \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 Java Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u4e86 Java Servlet \u548c JSP \u89c4\u8303\uff0c\u662f\u6700\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\u4e4b\u4e00\u3002\u5b83\u901a\u8fc7\u76d1\u542c IP \u548c\u7aef\u53e3\u5b9e\u73b0 HTTP \u901a\u4fe1\uff0c\u89e3\u8026\u8c03\u7528\u8005\u4e0e\u670d\u52a1\u7aef\u3002Tomcat \u7531\u591a\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u7ec4\u6210\uff1aCoyote \u5904\u7406 HTTP \u8fde\u63a5\uff0cCatalina \u4f5c\u4e3a Servlet \u5bb9\u5668\uff0cJasper \u89e3\u6790 JSP \u9875\u9762\u3002\u5176\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u63a5\u6536\u8bf7\u6c42\u3001\u89e3\u6790\u8def\u5f84\u3001\u8c03\u7528\u5bf9\u5e94 Servlet \u6216 JSP \u5904\u7406\u5e76\u8fd4\u56de\u54cd\u5e94\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[98,87,43],"topic":[],"class_list":["post-48657","post","type-post","status-publish","format-standard","hentry","category-server","tag-spring-boot","tag-87","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \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\/48657.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb809\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Tomcat \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 Java Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u4e86 Java Servlet \u548c JSP \u89c4\u8303\uff0c\u662f\u6700\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\u4e4b\u4e00\u3002\u5b83\u901a\u8fc7\u76d1\u542c IP \u548c\u7aef\u53e3\u5b9e\u73b0 HTTP \u901a\u4fe1\uff0c\u89e3\u8026\u8c03\u7528\u8005\u4e0e\u670d\u52a1\u7aef\u3002Tomcat \u7531\u591a\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u7ec4\u6210\uff1aCoyote \u5904\u7406 HTTP \u8fde\u63a5\uff0cCatalina \u4f5c\u4e3a Servlet \u5bb9\u5668\uff0cJasper \u89e3\u6790 JSP \u9875\u9762\u3002\u5176\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u63a5\u6536\u8bf7\u6c42\u3001\u89e3\u6790\u8def\u5f84\u3001\u8c03\u7528\u5bf9\u5e94 Servlet \u6216 JSP \u5904\u7406\u5e76\u8fd4\u56de\u54cd\u5e94\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/48657.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T04:57:28+00:00\" \/>\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\/48657.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/48657.html\",\"name\":\"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T04:57:28+00:00\",\"dateModified\":\"2025-07-30T04:57:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/48657.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/48657.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48657.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b\"}]},{\"@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":"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \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\/48657.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb809\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002Tomcat \u662f\u4e00\u4e2a\u5f00\u6e90\u7684 Java Web \u5e94\u7528\u670d\u52a1\u5668\uff0c\u5b9e\u73b0\u4e86 Java Servlet \u548c JSP \u89c4\u8303\uff0c\u662f\u6700\u6d41\u884c\u7684\u8f7b\u91cf\u7ea7\u5e94\u7528\u670d\u52a1\u5668\u4e4b\u4e00\u3002\u5b83\u901a\u8fc7\u76d1\u542c IP \u548c\u7aef\u53e3\u5b9e\u73b0 HTTP \u901a\u4fe1\uff0c\u89e3\u8026\u8c03\u7528\u8005\u4e0e\u670d\u52a1\u7aef\u3002Tomcat \u7531\u591a\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u7ec4\u6210\uff1aCoyote \u5904\u7406 HTTP \u8fde\u63a5\uff0cCatalina \u4f5c\u4e3a Servlet \u5bb9\u5668\uff0cJasper \u89e3\u6790 JSP \u9875\u9762\u3002\u5176\u5de5\u4f5c\u6d41\u7a0b\u5305\u62ec\u63a5\u6536\u8bf7\u6c42\u3001\u89e3\u6790\u8def\u5f84\u3001\u8c03\u7528\u5bf9\u5e94 Servlet \u6216 JSP \u5904\u7406\u5e76\u8fd4\u56de\u54cd\u5e94\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/48657.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T04:57:28+00:00","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\/48657.html","url":"https:\/\/www.wsisp.com\/helps\/48657.html","name":"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T04:57:28+00:00","dateModified":"2025-07-30T04:57:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/48657.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/48657.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/48657.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010SpringBoot\u3011Spring Boot \u5185\u5d4c Web \u670d\u52a1\u5668\u5165\u95e8\uff0c\u4e00\u6587\u8bb2\u660e\u767d Tomcat \u7684\u529f\u80fd\u3001\u76ee\u6807\u3001\u5de5\u4f5c\u6d41\u7a0b"}]},{"@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\/48657","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=48657"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48657\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=48657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=48657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=48657"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=48657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}