{"id":196805,"date":"2020-08-02T09:42:15","date_gmt":"2020-08-02T01:42:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=196805"},"modified":"2020-07-23T14:43:35","modified_gmt":"2020-07-23T06:43:35","slug":"apache-tomcat-intro","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/apache-tomcat-intro.html","title":{"rendered":"Apache Tomcat\u7b80\u4ecb"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nApache Tomcat\u662f\u4e00\u4e2a\u957f\u671f\u5b58\u5728\u7684\u5f00\u6e90Java Servlet\u5bb9\u5668\uff0c\u5b83\u5b9e\u73b0\u4e86\u51e0\u4e2a\u6838\u5fc3Java\u4f01\u4e1a\u89c4\u8303\uff0c\u5373Java Servlet\uff0cJavaServer Pages(JSP)\u548cWebSockets API\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Tomcat\u662f\u4e00\u4e2aApache Software Foundation\u9879\u76ee\uff0c\u5b83\u4e8e1998\u5e74\u9996\u6b21\u53d1\u5e03\uff0c\u8dddJava\u672c\u8eab\u4ec5\u56db\u5e74\u3002Tomcat\u5f00\u59cb\u4f5c\u4e3a\u7b2c\u4e00\u4e2aJava Servlet API\u548cJSP\u89c4\u8303\u7684\u53c2\u8003\u5b9e\u73b0\u3002\u5c3d\u7ba1Tomcat\u4e0d\u518d\u662f\u8fd9\u4e24\u79cd\u6280\u672f\u7684\u53c2\u8003\u5b9e\u73b0\uff0c\u4f46Tomcat\u4ecd\u7136\u662f\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684Java\u670d\u52a1\u5668\uff0c\u5b83\u62e5\u6709\u7ecf\u8fc7\u826f\u597d\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u7684\u6838\u5fc3\u5f15\u64ce\uff0c\u5e76\u5177\u6709\u826f\u597d\u7684\u53ef\u6269\u5c55\u6027\u3002
\n\"\"<\/p>\n

\u5728\u8fd9\u4e2a\u7b80\u77ed\u7684\u4ecb\u7ecd\u4e2d\uff0c\u60a8\u5c06\u4e86\u89e3\u4e3a\u4ec0\u4e48\u8bb8\u591a\u8f6f\u4ef6\u5546\u5e97\u9009\u62e9Tomcat\u6765\u8fd0\u884cJava Web\u5e94\u7528\u7a0b\u5e8f\u3002\u60a8\u5c06\u83b7\u5f97Tomcat\u53ca\u5176\u7528\u6cd5\u7684\u6982\u8ff0\uff0c\u4ee5\u53ca\u64b0\u5199\u672c\u6587\u65f6\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u8bf4\u660e\u3002<\/p>\n

Tomcat\u662f\u54ea\u79cd\u670d\u52a1\u5668?<\/strong><\/div>\n

Java\u751f\u6001\u7cfb\u7edf\u652f\u6301\u591a\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u8ba9\u6211\u4eec\u6d88\u9664\u5b83\u4eec\u7684\u6b67\u4e49\uff0c\u770b\u770bTomcat\u9002\u7528\u4e8e\u54ea\u4e9b\u4f4d\u7f6e\uff1a
\n\u7532servlet\u5bb9\u5668\u662fJava Servlet\u89c4\u8303\u7684\u4e00\u4e2a\u5b9e\u73b0\uff0c\u4e3b\u8981\u7528\u4e8e\u6258\u7ba1\u7684Java\u5c0f\u670d\u52a1\u7a0b\u5e8f\u3002
\n\u4e00\u4e2aWeb\u670d\u52a1\u5668\u662f\u4e00\u79cd\u65e8\u5728\u4ece\u672c\u5730\u7cfb\u7edf\u63d0\u4f9b\u6587\u4ef6\u670d\u52a1\uff0c\u5982Apache\u670d\u52a1\u5668\u3002
\n\u4e00\u4e2aJava\u4f01\u4e1a\u5e94\u7528\u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5b8c\u5168\u6210\u719f\u7684\u5b9e\u73b0\u7684Java EE(\u4eca\u96c5\u52a0\u8fbeEE)\u89c4\u8303\u3002<\/p>\n

\u4ece\u672c\u8d28\u4e0a\u8bb2\uff0cTomcat\u662fServlet\u548cJSP\u5bb9\u5668\u3002\u4e00\u7684Java servlet\u5c01\u88c5\u4ee3\u7801\u548c\u4e1a\u52a1\u903b\u8f91\uff0c\u5e76\u5b9a\u4e49\u4e86\u5982\u4f55\u8bf7\u6c42\u548c\u54cd\u5e94\u5e94\u8be5\u5728Java\u670d\u52a1\u5668\u5904\u7406\u3002JSP\u662f\u4e00\u79cd\u670d\u52a1\u5668\u7aef\u89c6\u56fe\u6e32\u67d3\u6280\u672f\u3002\u4f5c\u4e3a\u5f00\u53d1\u4eba\u5458\uff0c\u60a8\u7f16\u5199servlet\u6216JSP\u9875\u9762\uff0c\u7136\u540e\u8ba9Tomcat\u5904\u7406\u8def\u7531\u3002<\/p>\n

Tomcat\u8fd8\u5305\u542bCoyote\u5f15\u64ce\uff0c\u5b83\u662f\u4e00\u4e2aWeb\u670d\u52a1\u5668\u3002\u611f\u8c22Coyote\uff0c\u53ef\u4ee5\u5c06Tomcat\u6269\u5c55\u4e3a\u5305\u62ec\u5404\u79cdJava\u4f01\u4e1a\u89c4\u8303\u548c\u529f\u80fd\uff0c\u5305\u62ecJava Persistence API(JPA)\u3002
\nTomcat\u8fd8\u5177\u6709\u79f0\u4e3aTomEE\u7684\u6269\u5c55\u7248\u672c\uff0c\u5176\u4e2d\u5305\u542b\u66f4\u591a\u4f01\u4e1a\u529f\u80fd\u3002\u6211\u5c06\u5728\u672c\u6587\u7a0d\u540e\u7b80\u8981\u4ecb\u7ecdTomEE\u3002<\/p>\n

\u8ba9\u6211\u4eec\u4ece\u4f7f\u7528Tomcat\u6258\u7ba1servlet\u548cJSP\u5f00\u59cb\u3002<\/p>\n

\u4e0b\u8f7d\u5e76\u5b89\u88c5Tomcat<\/strong><\/div>\n

\u4f5c\u4e3a\u8f6f\u4ef6\u4e16\u754c\u7684\u53e4\u8001\u8005\uff0c\u6709\u8bb8\u591aTomcat\u7248\u672c\u53ef\u7528\u3002\u6709\u5173\u7248\u672c\u5dee\u5f02\u7684\u4fe1\u606f\u53ef\u5728Tomcat\u4e3b\u9875\u4e0a\u627e\u5230\u3002\u901a\u5e38\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002<\/p>\n

\u4e3a\u4e86\u6211\u4eec\u7684\u76ee\u7684\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Tomcat\uff0c\u5f53\u524d\u7248\u672c\u4e3aTomcat 9\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u5c06Tomcat\u4f5c\u4e3a\u5f52\u6863\u6587\u4ef6(.zip\u6216tar.gz)\u6216\u4f5c\u4e3a\u5df2\u5b89\u88c5\u7684\u670d\u52a1\u4e0b\u8f7d\u3002\u6700\u597d\u7684\u9009\u62e9\u53d6\u51b3\u4e8e\u60a8-\u9664\u975e\u60a8\u5f53\u7136\u4e0d\u5728Windows\u4e0a\u8fd0\u884c\uff0c\u5426\u5219\u5c06\u4f7f\u7528\u5b58\u6863\u3002\u6211\u4eec\u5c06\u5728\u672c\u6587\u4e2d\u4f7f\u7528\u5b58\u6863\u3002<\/p>\n

Tomcat\u7684Windows\u5b89\u88c5<\/strong><\/div>\n

\u5982\u679c\u60a8\u6b63\u5728\u8fd0\u884cWindows\u5e76\u60f3\u4f7f\u7528\u5b89\u88c5\u7a0b\u5e8f\uff0c\u53ea\u9700\u4e0b\u8f7d.exe\u6587\u4ef6\u5e76\u8fd0\u884c\u5b83\u3002Tomcat\u4f1a\u5c06\u5176\u81ea\u8eab\u5b89\u88c5\u4e3a\u5177\u6709\u5408\u7406\u9ed8\u8ba4\u503c\u7684\u670d\u52a1\u3002\u7136\u540e\u5b83\u5c06\u901a\u77e5\u60a8\u5b89\u88c5\u4f4d\u7f6e\uff0c\u5e76\u4e14\u60a8\u53ef\u4ee5\u50cf\u5728\u5176\u4e2d\u89e3\u538b\u7f29\u5b58\u6863\u4e00\u6837\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n

\u6b65\u9aa41.\u547d\u4ee4\u884c\u5b89\u88c5<\/strong><\/span><\/div>\n

\u53bb\u547d\u4ee4\u884c\u548c\u7c7b\u578bgunzip apache-tomcat-9.0.19.tar.gz\u63a5\u7740tar -xf apache-tomcat-9.0.19.tar\u3002\u8fd9\u5c06\u521b\u5efa\u4ee5\u4e0b\u76ee\u5f55\uff1a
\n\/ bin\u5305\u542b\u7528\u4e8e\u6267\u884cTomcat\u7684\u811a\u672c\u3002
\n\/ webapps\u662f\u60a8\u5c06\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7684\u4f4d\u7f6e\u3002
\n\/ logs\u662fTomcat\u8f93\u51fa\u65e5\u5fd7\u7684\u4f4d\u7f6e\u3002\u8bf7\u6ce8\u610f\uff0c\/logs\/catalina.out\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u8fdb\u5165Tomcat\u7684\u65e5\u5fd7\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u6b64\u6587\u4ef6\u548c\u7279\u5b9a\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u65e5\u5fd7\u6587\u4ef6\u4e00\u8d77\u8c03\u8bd5\u95ee\u9898\u3002
\n\/ lib\u662fTomcat\u67e5\u627eJAR\u7684\u5730\u65b9\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u5c06\u5b58\u50a8Tomcat\u4e0d\u9644\u5e26\u7684\u5176\u4ed6\u8f6f\u4ef6\u5305\uff0c\u4f8b\u5982JPA\u3002
\n\/ conf\u662fTomcat\u7684\u914d\u7f6eXML\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u6267\u884c\u8bf8\u5982\u4e3aTomcat\u6dfb\u52a0\u7528\u6237\u548c\u89d2\u8272\u4e4b\u7c7b\u7684\u64cd\u4f5c\u3002<\/p>\n

\u6b65\u9aa42.\u542f\u52a8Tomcat<\/strong><\/span><\/div>\n

\u5982\u679c\u5c06Tomcat\u4f5c\u4e3a\u670d\u52a1\u5b89\u88c5\uff0c\u5219\u5b83\u5df2\u7ecf\u5728\u8fd0\u884c\u3002\u5426\u5219\uff0c\u8bf7\u7ee7\u7eed\u5e76\u901a\u8fc7.\/catalina.sh start\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u542f\u52a8\u5b83\u3002(\u952e\u5165.\/catalina.sh\u4e0d\u5e26\u53c2\u6570\u7684\u5185\u5bb9\u4ee5\u67e5\u770b\u6240\u6709\u53ef\u7528\u547d\u4ee4)\u3002\u73b0\u5728\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u5728\u6d4f\u89c8\u5668\u4e2d\u6d4f\u89c8\u5230Tomcat\u7684\u6b22\u8fce\u5c4f\u5e55\u3002<\/p>\n

\u5728Tomcat\u4e2d\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f<\/strong><\/div>\n

Tomcat\u7684webapps\u76ee\u5f55\u662f\u60a8\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7684\u4f4d\u7f6e\u3002\u60a8\u53ef\u4ee5\u5c06.war\u6587\u4ef6\u653e\u5728\u90a3\u91cc\uff0c\u7136\u540eTomcat\u5c06\u8fd0\u884c\u5b83\u3002WAR\u6587\u4ef6\u662fWeb\u5e94\u7528\u7a0b\u5e8f\u8d44\u6e90\u7684\u6807\u51c6\u5305\u88c5\uff1a\u4e00\u4e2aJAR\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e9b\u5176\u4ed6\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u544a\u8bc9\u5bb9\u5668(\u5728\u672c\u4f8b\u4e2d\u4e3aTomcat)\u5982\u4f55\u8fd0\u884c\u5b83\u3002<\/p>\n

\u9664\u4e86\u6807\u51c6\u5305\u88c5\u4e4b\u5916\uff0c\u8fd8\u6709\u4e09\u79cd\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5728Tomcat\u4e2d\u90e8\u7f72\u5185\u5bb9\u3002<\/p>\n

\u7206\u70b8\u5f0f\u90e8\u7f72<\/strong><\/div>\n

\u201c\u7206\u70b8\u5f0f\u201d Web\u5e94\u7528\u7a0b\u5e8f\u662f\u672a\u538b\u7f29\u4e3aWAR\u6587\u4ef6\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u4ecd\u5305\u542b\u76ee\u5f55\u548c\u6587\u4ef6\u4e2d\u5217\u51fa\u7684\u6240\u6709\u5143\u7d20\u3002\u60a8\u89e3\u538b\u7f29\u7684Tomcat\u5f52\u6863\u6587\u4ef6\u9644\u5e26\u4e86\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u90e8\u7f72\u7684\u51e0\u4e2a\u793a\u4f8b\uff0c\u60a8\u53ef\u4ee5\u5728\/webapps\/examples\u76ee\u5f55\u4e2d\u627e\u5230\u8fd9\u4e9b\u793a\u4f8b\u3002\u5c55\u5f00\u5f0f\u90e8\u7f72\u7684\u4f18\u70b9\u662f\u60a8\u53ef\u4ee5\u67e5\u770b\u90a3\u91cc\u7684\u6587\u4ef6\u800c\u4e0d\u5fc5\u62c5\u5fc3\u538b\u7f29\u3002<\/p>\n

\u5982\u679c\u60a8\u5bfc\u822a\u5230http:\/\/localhost:8080\/examples\/\uff0c\u5219\u4f1a\u627e\u5230\u94fe\u63a5\u5217\u8868\u3002\u8be5\u9875\u9762\u7531Tomcat\u901a\u8fc7\/webapps\/examples\/index.html\u6587\u4ef6\u5448\u73b0\u3002Tomcat\u6b63\u5728\u4ece\u6587\u4ef6\u7cfb\u7edf\u63d0\u4f9bHTML\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u7cfb\u7edf\u662f\u5145\u5f53Web\u670d\u52a1\u5668\u7684Tomcat Coyote\u5f15\u64ce\u7684\u5b9e\u4f8b\u3002<\/p>\n

\u60a8\u53ef\u4ee5\u968f\u610f\u6d4f\u89c8\u6240\u63d0\u4f9b\u7684\u793a\u4f8b\uff0c\u5b83\u4eec\u4e3a\u60a8\u63d0\u4f9b\u4e86\u6709\u5173Tomcat\u670d\u52a1servlet\uff0cJSP\u548cWebSockets\u7684\u529f\u80fd\u7684\u826f\u597d\u6982\u8ff0\u3002<\/p>\n

Tomcat\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u8fd8\u5305\u542b\u4e00\u4e2a\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\uff0c\u8be5\u5e94\u7528\u7a0b\u5e8f\u4f4d\u4e8e\u8be5\/manager\u8def\u5f84\u4e0b\u3002\u9664\u5176\u4ed6\u5916\uff0c\u6b64\u5e94\u7528\u7a0b\u5e8f\u5141\u8bb8\u60a8\u4eceWeb\u63a7\u5236\u53f0\u542f\u52a8\uff0c\u505c\u6b62\u548c\u91cd\u65b0\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u63d0\u4f9b\u9759\u6001\u5185\u5bb9<\/strong><\/div>\n

\u53ef\u4ee5\u4ece\u6587\u4ef6\u7cfb\u7edf\u63d0\u4f9b\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u4eceTomcat\u8f6c\u53d1\u5230\u53e6\u4e00\u4e2aHTTP\u670d\u52a1\u5668(\u5982Apache)\u3002\u53e6\u4e00\u4e2a\u5e38\u89c1\u7684\u8bbe\u7f6e\u662f\u5c06\u6587\u4ef6\u670d\u52a1\u5668(\u5982Apache\u6216Nginx)\u653e\u5728Tomcat\u7684\u524d\u9762\uff0c\u7136\u540e\u5c06\u60a8\u7684API\u8bf7\u6c42\u8f6c\u53d1\u5230Tomcat\u3002\u5728\u8fd9\u4e9b\u60c5\u51b5\u4e0b\uff0cmod_JK\u5e93\u7528\u4e8e\u914d\u7f6eTomcat\u548cApache(\u6216\u4ec0\u81f3\u662f\u53e6\u4e00\u4e2aWeb\u670d\u52a1\u5668\uff0c\u5982IIS)\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n

\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd\uff0c\u4e3b\u8981\u662f\u5728\u4ea4\u4ed8\u9759\u6001\u5185\u5bb9\u65b9\u9762\uff0cTomcat\u8fd8\u63d0\u4f9b\u4e86Windows\u548cLinux\u7684\u672c\u673a\u5305\u88c5\u3002\u8fd9\u88ab\u79f0\u4e3aTomcat APR\uff0c\u66f4\u591a\u4fe1\u606f\u53ef\u5728\u6b64\u5904\u83b7\u5f97\u3002\u8fd9\u4e9b\u5bf9\u4e8e\u5178\u578b\u7684\u7528\u4f8b\u800c\u8a00\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f46\u5f88\u5bb9\u6613\u4e86\u89e3\u3002<\/p>\n

\u5d4c\u5165\u5f0fTomcat<\/strong><\/div>\n

\u957f\u671f\u4ee5\u6765\uff0cJetty\u662f\u552f\u4e00\u80fd\u591f\u4f5c\u4e3a\u5d4c\u5165\u5f0f\u670d\u52a1\u5668\u8fd0\u884c\u7684\u670d\u52a1\u5668\u3002\u90a3\u5df2\u7ecf\u6539\u53d8\u4e86\uff0c\u73b0\u5728Tomcat\u4e5f\u53ef\u4ee5\u8fd0\u884c\u5d4c\u5165\u5f0f\u4e86\u3002\u4f7f\u7528\u5d4c\u5165\u5f0f\u670d\u52a1\u5668\u7684\u60f3\u6cd5\u662f\uff0c\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u60a8\u6ca1\u6709\u62e5\u6709\u5305\u542b\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u7684\u670d\u52a1\u5668\uff0c\u800c\u662f\u62e5\u6709\u4e00\u4e2a\u5177\u6709\u4e3b\u7c7b\u7684\u5e94\u7528\u7a0b\u5e8f(\u5373\u72ec\u7acb\u7684Java\u5e94\u7528\u7a0b\u5e8f)\uff0c\u8be5\u5e94\u7528\u7a0b\u5e8f\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u8c03\u7528\u670d\u52a1\u5668\u529f\u80fd\uff1a\u5728\u5176\u4ee3\u7801\u5e93\u4e2d\u3002\u603b\u4f53\u800c\u8a00\uff0c\u8fd9\u63d0\u4f9b\u4e86\u66f4\u7b80\u5355\u548c\u53ef\u79fb\u690d\u7684\u5f00\u53d1\u6a21\u578b\uff0c\u5e76\u8fc5\u901f\u6210\u4e3a\u6807\u51c6\u3002\u4f8b\u5982\uff0cSpring Boot\u4f7f\u7528\u4ee5dev\u6a21\u5f0f\u8fd0\u884c\u7684\u5d4c\u5165\u5f0fTomcat\u5b9e\u4f8b\u3002<\/p>\n

\u8fd0\u884c\u5d4c\u5165\u5f0f\u670d\u52a1\u5668\u53ef\u4ee5\u7b80\u5316\u64cd\u4f5c\uff0c\u56e0\u4e3a\u60a8\u73b0\u5728\u53ea\u5904\u7406\u5355\u4e2a\u7ec4\u4ef6(\u5e94\u7528\u7a0b\u5e8f)\uff0c\u800c\u4e0d\u662f\u540c\u65f6\u5904\u7406\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\u5668\u90e8\u7f72\u3002\u53e6\u4e00\u65b9\u9762\uff0cTomcat\u4f5c\u4e3a\u72ec\u7acb\u4e3b\u673a\u8fd0\u884c\u7684\u8bbe\u7f6e\u4ecd\u7136\u5f88\u5e38\u89c1\u3002<\/p>\n

TomEE<\/strong><\/div>\n

\u901a\u8fc7\u5c06\u8fd9\u4e9b\u5e93\u6dfb\u52a0\u5230Tomcat\u672c\u8eab\u6216\u5e94\u7528\u7a0b\u5e8f\u4f9d\u8d56\u9879\uff0c\u53ef\u4ee5\u5c06\u66f4\u591a\u6807\u51c6Java EE(\u6216Jakarta EE)\u529f\u80fd\u4e0eTomcat\u4e00\u8d77\u4f7f\u7528\u3002\u53e6\u4e00\u4e2a\u9009\u62e9\u662fTomEE\u670d\u52a1\u5668\u3002TomEE\u662f\u5177\u6709\u989d\u5916Java\u4f01\u4e1a\u652f\u6301\u7684\u76f8\u540cTomcat\u5f15\u64ce\uff0c\u5305\u62ec\u6d41\u884c\u7684JPA\u548cCDI(\u4e0a\u4e0b\u6587\u548c\u4f9d\u8d56\u6ce8\u5165) API\u3002TomEE\u7684\u89c4\u8303\u57fa\u4e8eJava EE Web\u914d\u7f6e\u6587\u4ef6\uff0c\u56e0\u6b64\u5b83\u63d0\u4f9b\u7ed9\u60a8\u7684\u4e0d\u4ec5\u4ec5\u662fTomcat\uff0c\u800c\u4e14\u4e0d\u662f\u50cfWildFly\u6216Glassfish\u8fd9\u6837\u7684\u6210\u719f\u7684Java EE\u5e94\u7528\u670d\u52a1\u5668\u3002<\/p>\n

\u9ad8\u53ef\u7528\u6027\u548c\u96c6\u7fa4<\/strong><\/div>\n

Tomcat\u652f\u6301\u9ad8\u53ef\u7528\u6027\u548c\u96c6\u7fa4\u3002\u672c\u8d28\u4e0a\uff0c\u9ad8\u53ef\u7528\u6027\u662f\u6307\u6545\u969c\u8f6c\u79fb\u5230\u670d\u52a1\u5668\u7684\u53e6\u4e00\u4e2a\u5b9e\u4f8b\u5e76\u91cd\u65b0\u521b\u5efa\u4f1a\u8bdd\u7684\u80fd\u529b\uff0c\u5c31\u597d\u50cf\u4ec0\u4e48\u90fd\u6ca1\u51fa\u9519\u3002\u7fa4\u96c6\u662f\u521b\u5efa\u540c\u4e00\u670d\u52a1\u5668\u7684\u591a\u4e2a\u7248\u672c\u4ee5\u5904\u7406\u5927\u91cf\u6d41\u91cf\u7684\u80fd\u529b\u3002<\/p>\n

\u7ed3\u8bba<\/strong><\/div>\n

Tomcat\u4fdd\u6301\u79ef\u6781\u53d1\u5c55\uff0c\u4e0e\u53d8\u5316\u4fdd\u6301\u540c\u6b65\uff0c\u5e76\u4e3a\u90e8\u7f72Web\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u575a\u5b9e\u53ef\u9760\u7684\u5e73\u53f0\u3002\u5b83\u7684\u6301\u7eed\u6d41\u884c\u4ee5\u53ca\u4f5c\u4e3a\u8bb8\u591aPaaS\u7cfb\u7edf\u7684\u9ed8\u8ba4Java\u5e73\u53f0\u7684\u9009\u62e9\u90fd\u8bc1\u660e\u4e86\u5176\u6301\u7eed\u7684\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Apache Tomcat\u662f\u4e00\u4e2a\u957f\u671f\u5b58\u5728\u7684\u5f00\u6e90Java Servlet\u5bb9\u5668\uff0c\u5b83\u5b9e\u73b0\u4e86\u51e0\u4e2a\u6838\u5fc3Java\u4f01\u4e1a\u89c4\u8303\uff0c\u5373Java Servlet\uff0cJavaServer Pages(JSP)\u548cWebSockets API\u3002<\/p>\n","protected":false},"author":370,"featured_media":84225,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-196805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/370"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=196805"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196805\/revisions"}],"predecessor-version":[{"id":196822,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196805\/revisions\/196822"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/84225"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=196805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=196805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=196805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}