{"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
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
\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
\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
\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
\u4f7f\u7528war\u5305\u90e8\u7f72Web\u5e94\u7528\u7684\u4f18\u70b9\u5728\u4e8e\uff1a<\/p>\n
\u4f7f\u7528war\u5305\u90e8\u7f72Web\u5e94\u7528\u7684\u7f3a\u70b9\u5728\u4e8e\uff1a<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Tomcat\u90e8\u7f72war\u5305\uff0c\u4ee5\u53ca\u90e8\u7f72war\u5305\u7684\u4f18\u7f3a\u70b9\u3002<\/strong>\u4f7f\u7528war\u5305\u90e8\u7f72Web\u5e94\u7528\u53ef\u4ee5\u8de8\u591a\u79cd\u5bb9\u5668\uff0c\u90e8\u7f72\u8fc7\u7a0b\u7b80\u5355\uff0c\u4f46\u4e5f\u5b58\u5728\u5185\u5b58\u6d88\u8017\u5927\uff0c\u90e8\u7f72\u8fc7\u7a0b\u590d\u6742\uff0c\u5b89\u5168\u6027\u8f83\u4f4e\u7b49\u7f3a\u70b9\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528war\u5305\u90e8\u7f72Web\u5e94\u7528\u65f6\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u6765\u6743\u8861\u4f18\u7f3a\u70b9\uff0c\u4ee5\u786e\u4fdd\u90e8\u7f72\u7684\u6210\u529f\u3002<\/p>\n","protected":false},"excerpt":{"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\u4ec0\u4e48\u662fwar\u5305<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-44273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=44273"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=44273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=44273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=44273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}