{"id":885,"date":"2022-06-17T14:18:58","date_gmt":"2022-06-17T06:18:58","guid":{"rendered":"https:\/\/usei.cn\/?p=885"},"modified":"2022-06-17T14:18:59","modified_gmt":"2022-06-17T06:18:59","slug":"jar-%e5%8c%85%e5%92%8c-war-%e5%8c%85%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/usei.cn\/index.php\/2022\/06\/17\/jar-%e5%8c%85%e5%92%8c-war-%e5%8c%85%e7%9a%84%e5%8c%ba%e5%88%ab\/","title":{"rendered":"Jar \u5305\u548c War \u5305\u7684\u533a\u522b"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Jar\u5305<\/h2>\n\n\n\n<p>1.Jar\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a. Jar\uff0cJava Application Archive\uff09\u5305\u542bJava\u7c7b\u7684\u666e\u901a\u5e93\u3001\u8d44\u6e90\uff08resources\uff09\u3001\u8f85\u52a9\u6587\u4ef6\uff08auxiliary files\uff09\u7b49\u3002<br>2.jar\u5305\u662fjava\u6253\u7684\u5305\uff0c\u4e00\u822c\u53ea\u662f\u5305\u62ec\u4e00\u4e9b\u7f16\u8bd1\u540eclass\u6587\u4ef6\u548c\u4e00\u4e9b\u90e8\u7f72\u6587\u4ef6\uff0c\u5728\u58f0\u660e\u4e86Main_class\u4e4b\u540e\u662f\u53ef\u4ee5\u7528java\u547d\u4ee4\u8fd0\u884c\u7684\u3002<br>3.jar\u5305\u901a\u5e38\u662f\u5f00\u53d1\u65f6\u8981\u5f15\u7528\u901a\u7528\u7c7b\uff0c\u6253\u6210\u5305\u4fbf\u4e8e\u5b58\u653e\u7ba1\u7406\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">War \u5305<\/h2>\n\n\n\n<p>1.War\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a.War,Web Application Archive\uff09\u5305\u542b\u5168\u90e8Web\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u8fd9\u79cd\u60c5\u5f62\u4e0b\uff0c\u4e00\u4e2aWeb\u5e94\u7528\u7a0b\u5e8f\u88ab\u5b9a\u4e49\u4e3a\u5355\u72ec\u7684\u4e00\u7ec4\u6587\u4ef6\u3001\u7c7b\u548c\u8d44\u6e90\uff0c\u7528\u6237\u53ef\u4ee5\u5bf9war\u6587\u4ef6\u8fdb\u884c\u5c01\u88c5\uff0c\u5e76\u628a\u5b83\u4f5c\u4e3a\u5c0f\u578b\u670d\u52a1\u7a0b\u5e8f\uff08servlet\uff09\u6765\u8bbf\u95ee\u3002<br>2.war\u5305\u53ef\u4ee5\u7406\u89e3\u4e3ajavaweb\u6253\u7684\u5305\uff0c\u662f\u4e00\u4e2aweb\u6a21\u5757\uff0c\u5305\u62ec\u5199\u7684\u4ee3\u7801\u7f16\u8bd1\u6210\u7684class\u6587\u4ef6\uff0c\u4f9d\u8d56\u7684\u5305\uff0c\u914d\u7f6e\u6587\u4ef6\uff0c\u6240\u6709\u7684\u7f51\u7ad9\u9875\u9762\uff0c\u5305\u62echtml\uff0cjsp\u7b49\u7b49\u3002\u4e00\u4e2awar\u5305\u53ef\u4ee5\u7406\u89e3\u4e3a\u662f\u4e00\u4e2aweb\u9879\u76ee\uff0c\u91cc\u9762\u662f\u9879\u76ee\u7684\u6240\u6709\u4e1c\u897f\u3002<br>3.war\u5305\u9700\u8981\u53d1\u5e03\u5230\u4e00\u4e2a\u5bb9\u5668\u91cc\u9762\uff0c\u62ffTomcat\u6765\u8bf4,\u5c06war\u6587\u4ef6\u5305\u653e\u7f6e\u5b83\u7684\\webapps\\\u76ee\u5f55\u4e0b\uff0c\u542f\u52a8Tomcat,\u8fd9\u4e2a\u5305\u53ef\u4ee5\u81ea\u52a8\u8fdb\u884c\u89e3\u538b\uff0c\u4e5f\u5c31\u662f\u4f60\u7684web\u76ee\u5f55\uff0c\u76f8\u5f53\u4e8e\u53d1\u5e03\u4e86\u3002<br>4.WAR\u662fSun\u63d0\u51fa\u7684\u4e00\u79cdWeb\u5e94\u7528\u7a0b\u5e8f\u683c\u5f0f\uff0c\u4e0eJAR\u7c7b\u4f3c\uff0c\u4e5f\u662f\u8bb8\u591a\u6587\u4ef6\u7684\u4e00\u4e2a\u538b\u7f29\u5305\u3002\u8fd9\u4e2a\u5305\u4e2d\u7684\u6587\u4ef6\u6309\u4e00\u5b9a\u76ee\u5f55\u7ed3\u6784\u6765\u7ec4\u7ec7\uff1a\u901a\u5e38\u5176\u6839\u76ee\u5f55\u4e0b\u5305\u542b\u6709Html\u548cJsp\u6587\u4ef6\u6216\u8005\u5305\u542b\u8fd9\u4e24\u79cd\u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u53e6\u5916\u8fd8\u4f1a\u6709\u4e00\u4e2aWEB-INF\u76ee\u5f55\uff0c\u8fd9\u4e2a\u76ee\u5f55\u5f88\u91cd\u8981\u3002\u901a\u5e38\u5728WEB-INF\u76ee\u5f55\u4e0b\u6709\u4e00\u4e2aweb.xml\u6587\u4ef6\u548c\u4e00\u4e2aclasses\u76ee\u5f55\uff0cweb.xml\u662f\u8fd9\u4e2a\u5e94\u7528\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u800cclasses\u76ee\u5f55\u4e0b\u5219\u5305\u542b\u7f16\u8bd1\u597d\u7684Servlet\u7c7b\u548cJsp\u6216Servlet\u6240\u4f9d\u8d56\u7684\u5176\u5b83\u7c7b\uff08JavaBean\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jar\u5305 1.Jar\u6587\u4ef6\uff08\u6269\u5c55\u540d\u4e3a. Jar\uff0cJava Application Archive\uff09\u5305\u542bJava\u7c7b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1],"tags":[],"class_list":["post-885","post","type-post","status-publish","format-standard","hentry","category-java","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/comments?post=885"}],"version-history":[{"count":3,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/885\/revisions"}],"predecessor-version":[{"id":888,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/885\/revisions\/888"}],"wp:attachment":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/media?parent=885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/categories?post=885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/tags?post=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}