{"id":92966,"date":"2020-03-24T12:00:25","date_gmt":"2020-03-24T04:00:25","guid":{"rendered":"http:\/\/4563.org\/?p=92966"},"modified":"2020-03-24T12:00:25","modified_gmt":"2020-03-24T04:00:25","slug":"springboot-%e9%a1%b9%e7%9b%ae%e4%b8%8a%e7%ba%bf%e9%83%a8%e7%bd%b2%e7%94%a8-war-%e5%8c%85%e8%bf%98%e6%98%af-jar-%e5%8c%85%e9%83%a8%e7%bd%b2%e6%af%94%e8%be%83%e5%a5%bd%ef%bc%9f%e6%9c%89%e6%b2%a1","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92966","title":{"rendered":"springboot \u9879\u76ee\u4e0a\u7ebf\u90e8\u7f72\u7528 war \u5305\u8fd8\u662f jar \u5305\u90e8\u7f72\u6bd4\u8f83\u597d\uff1f\u6709\u6ca1\u6709\u5177\u4f53\u7684\u539f\u56e0\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  springboot \u9879\u76ee\u4e0a\u7ebf\u90e8\u7f72\u7528 war \u5305\u8fd8\u662f jar \u5305\u90e8\u7f72\u6bd4\u8f83\u597d\uff1f\u6709\u6ca1\u6709\u5177\u4f53\u7684\u539f\u56e0\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuwd <\/span>  <span><i><\/i> 25<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6709\u5df2\u6709\u7684 Tomcat \u6216\u8005\u5176\u4ed6 servlet \u5bb9\u5668,\u7528 war. \u5426\u5219\u7528 jar. \u5c31\u662f\u6253\u5305\u65b9\u5f0f\u6709\u70b9\u4e0d\u4e00\u6837,\u6ca1\u5565\u672c\u8d28\u533a\u522b.      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"994452\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huntcool001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                              \/t\/658309                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994453\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oneisall8955 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             appassembler-maven-plugin \u6253\u5305 tar.gz<br \/>\u6bd4\u8f83\u559c\u6b22\u8fd9\u4e2a\u7684\u662f\u56e0\u4e3a\u89e3\u538b\u540e\uff0c\u6587\u4ef6\u5939 conf = resources <br \/>\u6bd4\u5982\u5728 resources \u4e0b\u653e\u4e00\u4e9b\u4e09\u65b9\u914d\u7f6e\u6587\u4ef6\uff0c\u662f\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6\u5230\u7684\uff0c\u5982\u679c\u7528 jar \u90a3\u5c31\u5f97\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\u6765\u5b58\u653e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994454\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wongy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u6709\u8fd0\u7ef4 tomcat \u7684\u7ecf\u9a8c\uff0c\u6709\u76f8\u5173\u811a\u672c\u5de5\u5177\u5df4\u62c9\u5df4\u62c9\uff0c\u5c31\u7528 war\uff0c\u5426\u5219\u7528 jar<br \/>\u4e8c\u7684\u5e16\u5b50\u91cc\u6709\u4eba\u56de\u7528 docker\uff0c\u4f46\u662f docker \u91cc\u4e0d\u4e5f\u662f\u8dd1\u7684 jar \u6216\u8005 war \u4e48\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994455\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chendy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709 jsp \u5c31\u8981\u7528 war \u5426\u5219\u7684\u8bdd\u968f\u610f\u3002war \u4e5f\u53ef\u4ee5\u7528 java -jar \u8dd1\u8d77\u6765\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994456\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : napsterwu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chendy \u56de\u7b54\u7528 docker \u4f46\u4e0d\u8bf4\u660e\u7406\u7531\u7684\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u4e0d\u52a8\u8111\u7684\u4eba                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994457\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Thin Jar \u5427\uff0cSpring \u5f00\u53d1\u4eba\u5458\u6709\u5f00\u53d1\u76f8\u5e94\u7684 Plugin \u4ee3\u66ff\u5b98\u65b9 Plugin \u3002\u5c06 Dependencies \u548c \u5e94\u7528 Jar \u5206\u5f00\uff0c\u6bd4\u8f83\u9002\u5408\u5bb9\u5668\u90e8\u7f72\uff0c\u90a3\u79cd\u5de8\u578b Jar \u5bf9\u4e8e\u5bb9\u5668\u592a\u626f\u86cb\u3002\u4e0d\u8fc7 Spring Boot 2.3 \u5f00\u59cb\u5185\u7f6e Build Docker \u529f\u80fd\u4e86\uff0c\u4e5f\u662f\u5206\u5c42\uff08 Docker Layers \uff09\u6253\u5305\u7684\u601d\u8def\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994458\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde \u8fd9\u4e2a\u5e74\u4ee3\uff0c\u8fd8\u6ca1\u6709\u7528 Docker \u624d\u662f\u6ca1\u8111\u5b50\u7684\u4eba\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994459\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Spring Boot \u7684 Thin jar \u4f7f\u7528\uff0chttps:\/\/www.baeldung.com\/spring-boot-thin-jar                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994460\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             thin jar &#8230; \u4e0d\u5982\u53eb &#8220;jar with dependencies aside&#8221;\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994461\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : szq8014 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Docker \u8dd1 Java \u5751\u90a3\u4e48\u591a&#8230;.<br \/>\u6211\u5c31\u6ca1\u641e\u61c2\u4e3a\u4ec0\u4e48 Docker \u90fd\u51fa\u6765\u8fd9\u4e48\u591a\u5e74\u4e86,\u5728\u9650\u5236\u4e86 core \u6570\u91cf\u540e,core \u8bc6\u522b\u8fd8\u662f\u7269\u7406\u673a\u6838\u6570                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994462\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : NeinChn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c31\u6211\u4e00\u4e2a\u628a fatjar \u89e3\u5f00\u90e8\u7f72\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994463\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cheng6563 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hantsy \u7528\u4e5f\u5206\u7528\u7684\u597d\u7528\u7684\u5dee\u554a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994464\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @NeinChn #11 \u5185\u5b58\u8fd8\u8981\u663e\u793a\u8bbe\u7f6e\u8303\u56f4\uff0c\u4e0d\u7136\u5403\u7684\u4e5f\u662f\u5bbf\u4e3b\u673a\u7684\u5185\u5b58\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"994465\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kkkkkrua <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u2018Make JAR, not WAR.\u2019 \u2014 Josh Long                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>springboot \u9879\u76ee\u4e0a\u7ebf\u90e8\u7f72&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92966"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92966"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92966\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92966"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}