{"id":44273,"date":"2023-10-05T12:11:05","date_gmt":"2023-10-05T04:11:05","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=44273"},"modified":"2023-10-05T12:11:05","modified_gmt":"2023-10-05T04:11:05","slug":"sytbswb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/44273.html","title":{"rendered":"\u4f7f\u7528Tomcat\u90e8\u7f72war\u5305"},"content":{"rendered":"

  \u5728\u4eca\u5929\u7684Web\u5e94\u7528\u5f00\u53d1\u4e2d\uff0c\u4f7f\u7528Tomcat\u90e8\u7f72war\u5305\u662f\u4e00\u9879\u975e\u5e38\u91cd\u8981\u7684\u6280\u672f\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tomcat\u90e8\u7f72war\u5305\uff0c\u4ee5\u53ca\u90e8\u7f72war\u5305\u7684\u4f18\u7f3a\u70b9\u3002<\/p>\n

\u4ec0\u4e48\u662fwar\u5305<\/h2>\n

  war\u5305\uff08Web Archive\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u90e8\u7f72Java Web\u5e94\u7528\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u5b83\u5305\u542bJava\u7c7b\u6587\u4ef6\u3001\u8d44\u6e90\u6587\u4ef6\u548c\u914d\u7f6e\u6587\u4ef6\u3002war\u5305\u7684\u6269\u5c55\u540d\u4e3a.war\uff0c\u5b83\u53ef\u4ee5\u5728\u4efb\u4f55\u652f\u6301Servlet\u548cJSP\u7684\u5bb9\u5668\u4e2d\u8fd0\u884c\uff0c\u5982Tomcat\u3001Jetty\u548cGlassFish\u7b49\u3002<\/p>\n

\u4f7f\u7528Tomcat\u90e8\u7f72war\u5305<\/h2>\n

  \u6b65\u9aa41\uff1a\u51c6\u5907war\u5305<\/h3>\n

  \u9996\u5148\uff0c\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e2awar\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u4e00\u79cdWeb\u5e94\u7528\u5f00\u53d1\u5de5\u5177\uff08\u5982Eclipse\u3001NetBeans\u7b49\uff09\u751f\u6210war\u5305\u3002<\/p>\n

  \u6b65\u9aa42\uff1a\u5c06war\u5305\u653e\u5165Tomcat\u7684webapps\u6587\u4ef6\u5939<\/h3>\n

  \u5c06war\u5305\u653e\u5165Tomcat\u7684webapps\u6587\u4ef6\u5939\uff0cTomcat\u5c06\u81ea\u52a8\u89e3\u538bwar\u5305\uff0c\u5e76\u5c06war\u5305\u7684\u5185\u5bb9\u653e\u5165webapps\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n

  \u6b65\u9aa43\uff1a\u542f\u52a8Tomcat<\/h3>\n

  \u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u4f60\u53ef\u4ee5\u542f\u52a8Tomcat\uff0c\u8bbf\u95eehttp:\/\/localhost:8080\/[war\u5305\u540d]\uff0c\u5373\u53ef\u8bbf\u95eewar\u5305\u4e2d\u7684Web\u5e94\u7528\u3002<\/p>\n

\u4f18\u7f3a\u70b9<\/h2>\n

  \u4f18\u70b9<\/h3>\n

  \u4f7f\u7528war\u5305\u90e8\u7f72Web\u5e94\u7528\u7684\u4f18\u70b9\u5728\u4e8e\uff1a<\/p>\n