{"id":281,"date":"2020-04-07T00:08:24","date_gmt":"2020-04-06T16:08:24","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=281"},"modified":"2021-12-03T19:33:18","modified_gmt":"2021-12-03T11:33:18","slug":"idea%e6%9e%84%e5%bb%ba%e4%bc%a0%e7%bb%9fjavaweb%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=281","title":{"rendered":"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>\u8be5\u6587\u4e3b\u8981\u9610\u8ff0\uff0c\u5982\u4f55\u5728IDEA\u4e2d\u6784\u5efa\u8d77JavaWeb\u9879\u76ee\uff0c\u8fd9\u91cc\u4ee5\u6211\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u4e3a\u4f8b\u3002<\/p><\/blockquote>\n\n\n\n<div class=\"wp-block-mdx-github mdx-github-cot\" data-mdxgithuba=\"Jump-Boy\" data-mdxgithubp=\"laboratory_system\" data-mdxgithubg=\"https:\/\/api.github.com\/\"><div class=\"mdx-github-wait-out-c2\"><div class=\"mdx-github-wait-out-c mdui-valign\"><div class=\"mdx-github-wait-out\"><div class=\"mdx-github-wait\"><a href=\"https:\/\/github.com\/Jump-Boy\/laboratory_system\"><div class=\"mdui-spinner\"><\/div><\/a><\/div><\/div><\/div><\/div><\/div>\n\n\n\n<p>\u5173\u4e8e\u8fd9\u4e2a\u9879\u76ee\u7684\u4fe1\u606f\uff0c\u8be6\u89c1readme\u3002\u8fd9\u662f\u6211\u548c\u6211\u4e00\u4e2a\u672c\u79d1\u671f\u95f4\u540c\u5b66\uff08\u524d\u7aef\u5927\u4f6c\uff09\u4e00\u8d77\u5b8c\u6210\u7684\u3002\u6211\u4e3b\u8981\u8d1f\u8d23\u9879\u76ee\u7ef4\u62a4\u4e0e\u8be5\u7ad9\u70b9\u8fd0\u7ef4\u3002<\/p>\n\n\n<p>\u8fd9\u4e2a\u9879\u76ee\u662f\u4e00\u4e2a\u524d\u540e\u7aef\u4e0d\u5b8c\u5168\u5206\u79bb\u7684\u9879\u76ee\uff0c\u867d\u7136\u6574\u4f53Http+JSON\uff0c\u4f46\u524d\u540e\u7aef\u662f\u4e00\u5757\u90e8\u7f72\u7684 &nbsp;<img src=\"https:\/\/blog.humh.cn\/wp-content\/plugins\/WP-Alu2Button\/static\/img\/icon_evil.gif\" alt=\":evil:\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/> \u3002\u540c\u65f6\u9879\u76ee\u662f\u4e00\u4e2a\u7eafservlet\u9879\u76ee\uff0c\u5f88\u5e38\u89c1\u7684JavaWeb\u9879\u76ee\u7ed3\u6784\u3002\u6240\u4ee5\u76f4\u63a5\u62ff\u6b64\u9879\u76ee\u4e3a\u4f8b\uff0c\u65e8\u5728\u8ba9\u4f60\u5feb\u901f\u5728IDEA\u4e2d\u90e8\u7f72\u6784\u5efa\u8d77\u6765\u3002\uff08\u539f\u5148\u9879\u76ee\u662f\u57fa\u4e8eMyEclipse\u6784\u5efa\u7684\uff0c\u53bb\u5e74\u641e\u8fc7\u4e00\u6b21IDEA\u7248\u7684<a href=\"https:\/\/blog.csdn.net\/H_233\/article\/details\/87711791\">https:\/\/blog.csdn.net\/H_233\/article\/details\/87711791<\/a>\uff0c\u8fd9\u6b21\u91cd\u65b0\u53c8\u641e\u4e86\u4e0b\uff0c\u7406\u89e3\u6bd4\u4e0a\u6b21\u66f4\u66f4\u900f\u5f7b\u4e9b\u4e86\u3002\uff09<br>\u524d\u63d0\uff1a\u5148\u62c9\u4ee3\u7801\uff0c\u672c\u6587\u57fa\u4e8erelease1.0\u9610\u8ff0\u3002<\/p>\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5728\u9879\u76ee\u4e0b\uff0c\u6253\u5f00 <strong>project setting<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"250\" class=\"wp-image-282 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-17.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-17.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-17.png 365w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-17-276x300.png 276w\" sizes=\"(max-width: 365px) 100vw, 365px\"><figcaption>project setting<\/figcaption><\/figure><\/div>\n\n\n\n<h2>1\u3001Project<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"473\" class=\"wp-image-283 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-18-1024x473.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-18-1024x473.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-18-1024x473.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-18-300x139.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-18-768x355.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-18.png 1090w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>project<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u5206\u522b\u4e3a<strong>\u9879\u76ee\u540d<\/strong>\u3001<strong>sdk\u6e90<\/strong>\uff08\u8fd9\u91cc\u91c7\u7528\u81ea\u5df1\u5b89\u88c5\u7684jdk1.8\uff0cIDEA\u4e2d\u76f4\u63a5\u914d\u7f6e\u7684\u5168\u5c40\uff09\u3001<strong>\u6307\u5b9ajava\u8bed\u8a00level<\/strong>\uff08\u4e0e\u91c7\u7528\u7684jdk\u7248\u672c\u5bf9\u5e94\u5373\u53ef\uff09\u4ee5\u53ca <strong>\u9879\u76ee\u7f16\u8bd1\u76ee\u5f55<\/strong>\uff08java src\u6e90\u7801\u7f16\u8bd1\u540e\u7684class\u76ee\u5f55\uff0c\u9075\u5faajava web\u9879\u76ee\u89c4\u8303\uff0cWEB-INF\u4e0b\u7684classes\u5373\u53ef\uff09<\/p>\n\n\n\n<h2>2\u3001Modules<\/h2>\n\n\n\n<h3>2.1 Sources<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"613\" class=\"wp-image-284 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-19-1024x613.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-19-1024x613.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-19-1024x613.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-19-300x180.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-19-768x460.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-19.png 1458w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>Sources<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u9759\u6001\u8d44\u6e90\u76ee\u5f55Excluded\uff0csrc\u4e3a\u6e90\u7801\u76ee\u5f55\uff0c\u5176\u4ed6\u7684 .idea \u548c out \u4e0d\u7528\u7ba1\u3002<\/p>\n\n\n\n<h3>2.2 Paths<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"614\" class=\"wp-image-285 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-20-1024x614.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-20-1024x614.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-20-1024x614.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-20-300x180.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-20-768x460.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-20.png 1460w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>Paths<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5982\u4e0a\u56fe\u914d\u7f6e\u5373\u53ef\uff0c\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u9009\u62e9\u7b2c\u4e00\u9879\uff0c\u8fd9\u91cc\u4e5f\u60f3\u989d\u5916\u6307\u5b9a\u4e0btest\uff08\u5355\u5143\u6d4b\u8bd5\uff0c\u867d\u7136\u8fd8\u6ca1\u6709\u3002\u3002hhh\uff09\u7f16\u8bd1\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n<h3>2.3 Framework Web<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"334\" class=\"wp-image-286 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-21.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-21.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-21.png 634w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-21-233x300.png 233w\" sizes=\"(max-width: 634px) 100vw, 634px\"><figcaption>\u521b\u5efaWeb\u6a21\u677f<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5148\u521b\u5efa\u4e00\u4e2a<strong>Framework<\/strong>\u6a21\u677f\uff0c\u8fd9\u91cc\u7528\u201c<strong>Web<\/strong>\u201d\uff08IDEA\u4e2d\u5bf9Java Web\u7684\u9879\u76ee\u7ed3\u6784\u6a21\u677f\uff0c\u7528\u4e8e\u5feb\u901f\u96c6\u6210\u9879\u76ee\u8d44\u6e90\uff0c\u6784\u5efa\u90e8\u7f72\u81f3\u5bb9\u5668\u4e2d\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img width=\"1024\" height=\"610\" class=\"wp-image-287 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-22-1024x610.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-22-1024x610.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-22-1024x610.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-22-300x179.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-22-768x457.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-22.png 1485w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>Web\u6a21\u677f\u914d\u7f6e<\/figcaption><\/figure>\n\n\n\n<p>\u5982\u4e0a\u56fe\u914d\u7f6e\u5373\u53ef\uff0c<strong>Web Module Deployment Descriptor<\/strong> \u4e3a web.xml \u7684\u8def\u5f84\uff08web.xml\u5728WEB-INF\u4e2d\uff09\u3002<br><strong>Web Resource Directories<\/strong> \u914d\u7f6e\u7684\u76ee\u7684\u662f\u5c06\u9879\u76ee\u7684\u4e0d\u540c\u76ee\u5f55\u4e0e\u6700\u7ec8\u90e8\u7f72\u81f3\u5bb9\u5668\u4e2d\u7684\u5305\uff0c\u4ece\u7ed3\u6784\u4e0a\u7ba1\u7406\u8d77\u6765\uff0c\u5de6\u8fb9\u4e3a\u76ee\u5f55\u7684\u5b9e\u9645\u7edd\u5bf9\u8def\u5f84\uff0c\u53f3\u8fb9\u4e3a\u90e8\u7f72\u5305\u4e2d\u7684\u76f8\u5bf9\u8def\u5f84\u3002\u5982\u7b2c\u4e00\u9879\uff0c\u6211\u6307\u5b9a\u9879\u76ee\u4e2dcss\u76ee\u5f55\u4e3a\u6700\u7ec8\u90e8\u7f72war\u5305\u4e2d\u7684css\u76ee\u5f55\uff0c\u5728\u4e0b\u9762\u7684Artifacts\u914d\u7f6e\u5b8c\u540e\uff0c\u6784\u5efa\u65f6\uff0cIDEA\u4f1a\u81ea\u52a8\u6839\u636e\u4f60\u914d\u7f6e\u7684\u89c4\u5219\uff0c\u5c06\u9879\u76eecss\u76ee\u5f55\u5185\u5bb9copy\u81f3war\u5305\u7684css\u76ee\u5f55\u4e2d\u3002\u4ece\u6574\u4e2a\u8fc7\u7a0b\u6765\u770b\uff0c\u8fd9\u4e5f\u4e0d\u80fd\u60f3\u8c61\uff0c\u4e0a\u56fe\u7684<strong>Web<\/strong>\u754c\u9762\u5c31\u662f\u4e00\u4e2a\u6a21\u677f\u914d\u7f6e\uff01<br><strong>Source Roots<\/strong> \u5c31\u662f\u6e90\u7801\u8def\u5f84\u4e86\uff0c\u52fe\u4e0a\u5373\u53ef\u3002<\/p>\n\n\n\n<h2>3\u3001Libraries<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"369\" class=\"wp-image-288 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-23.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-23.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-23.png 469w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-23-300x228.png 300w\" sizes=\"(max-width: 469px) 100vw, 469px\"><figcaption>\u5f15\u5165\u9879\u76ee\u4f9d\u8d56\u7684jar\u5305<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u9009\u62e9\u4e0a\u56fe\u4e2d\u7684<strong>Java<\/strong>\u540e\uff0c\u5728\u5f39\u6846\u4e2d\u9009\u62e9\u4f60\u7684jar\u5305\u76ee\u5f55\uff0c\u8be5\u793a\u4f8b\u5c31\u662f<strong>lib<\/strong>\u76ee\u5f55\uff08\u6ce8\u610f\u8981\u5c55\u5f00lib\u76ee\u5f55\uff0c\u5168\u9009\u5176\u4e2d\u7684jar\u5305\uff0c\u7136\u540e\u5bfc\u5165\u5373\u53ef\uff09\u6700\u7ec8\u7684\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"599\" class=\"wp-image-289 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-24-1024x599.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-24-1024x599.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-24-1024x599.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-24-300x175.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-24-768x449.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-24.png 1466w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/figure><\/div>\n\n\n\n<h2>4\u3001Facets<\/h2>\n\n\n\n<p><strong>Facets<\/strong> \u5176\u5b9e\u5c31\u662f<strong> 2.3 <\/strong>\u7684\u5185\u5bb9\uff0c<strong>2.3<\/strong> \u5982\u679c\u914d\u7f6e\u6210\u529f\u7684\u8bdd\uff0c\u8fd9\u91cc\u5c31\u4f1a\u76f4\u63a5\u663e\u793a\u51fa\u6765\uff0c\u4e0d\u7528\u518d\u505a\u914d\u7f6e\u4e86\u3002<\/p>\n\n\n\n<h2>5\u3001Dependencies<\/h2>\n\n\n\n<p>\u8fd9\u91cc\u9700\u8981\u56de\u8fc7\u5934\uff0c\u914d\u7f6e<strong>Modules<\/strong>\u4e2d\u7684 <strong>Dependencies<\/strong> \u9879<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"598\" class=\"wp-image-290 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-25-1024x598.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-25-1024x598.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-25-1024x598.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-25-300x175.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-25-768x449.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-25.png 1504w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"465\" class=\"wp-image-292 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-26.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-26.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-26.png 765w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-26-300x276.png 300w\" sizes=\"(max-width: 765px) 100vw, 765px\"><\/figure><\/div>\n\n\n\n<p>\u6309\u4e0a\u9762\u4e24\u5f20\u56fe\uff0c\u4f9d\u6b21\u64cd\u4f5c\u5373\u53ef\u3002\u56fe\u4e8c\u4e2d\u7684<strong>lib<\/strong>\u5c31\u662f\u6211\u4eec\u521a\u521a\u5728<strong>3\u3001Libraries<\/strong>\u4e2d\u914d\u7f6e\u540e\u5185\u5bb9\u3002<\/p>\n\n\n\n<h2>6\u3001Artifacts<\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"388\" class=\"wp-image-293 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-27.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-27.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-27.png 588w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-27-300x191.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\"><figcaption>\u65b0\u5efaartifacts\u90e8\u7f72\u5305<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5148\u6309\u4e0a\u56fe\u6240\u793a\uff0c\u9009\u62e9Web Application\uff0c\u521b\u5efa\u4e00\u4e2a\u751f\u6210war\u7684\u6a21\u677f\uff0c\u7136\u540e\u518d\u8fdb\u884c\u4e0b\u9762\u914d\u7f6e\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"455\" class=\"wp-image-294 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-28-1024x455.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-28-1024x455.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-28-1024x455.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-28-300x133.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-28-768x341.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-28.png 1276w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/figure><\/div>\n\n\n\n<p>\u914d\u7f6e<strong>Output directory<\/strong>\u8def\u5f84\uff0c\u8be5\u9879\u662f\u6307\u5b9awar\u5305\u7684\u5185\u5bb9\u6765\u6e90\u5b58\u653e\u8def\u5f84\u3002\u7136\u540e\u53cc\u51fb\u53f3\u8fb9\u7684<strong>Web facet resources<\/strong>\uff08\u8fd9\u5c31\u662f<strong>2.3<\/strong>\u914d\u7f6e\u7684Web\uff0c\u8fd9\u91cc\u4f1a\u6839\u636eWeb\u6a21\u677f\u6765\u793e\u751f\u6210\u6307\u5b9a\u5185\u5bb9\u81f3out\u76ee\u5f55\uff0c\u7136\u540e\u6253\u6210war\u5305\uff0c\u90e8\u7f72\u81f3\u5bb9\u5668\u4e2d\uff09\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u5269\u4e0b\u7684<strong>Platform Settings<\/strong>\u4e0d\u7528\u7ba1\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2>7\u3001\u90e8\u7f72\u9879\u76ee\u81f3tomcat\u5bb9\u5668<\/h2>\n\n\n\n<h3>7.1 \u5728IDEA\u4e2d\u914d\u7f6etomcat<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"328\" height=\"135\" class=\"wp-image-297 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-29.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-29.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-29.png 328w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-29-300x123.png 300w\" sizes=\"(max-width: 328px) 100vw, 328px\"><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img width=\"370\" class=\"wp-image-298 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-30.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-30.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-30.png 610w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-30-214x300.png 214w\" sizes=\"(max-width: 610px) 100vw, 610px\"><\/figure><\/div>\n\n\n\n<p>\u6309\u7167\u4e0a\u8ff0\u4e24\u6b65\uff0c\u521b\u5efa\u4e00\u4e2a\u672c\u5730tomcat\u5bb9\u5668\uff0c\u8fdb\u5165\u4e0b\u9762\u7684\u914d\u7f6e\u754c\u9762\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"644\" class=\"wp-image-299 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-31-1024x644.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-31-1024x644.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-31-1024x644.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-31-300x189.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-31-768x483.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-31.png 1320w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><\/figure><\/div>\n\n\n\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u8fd9\u91cc\u53ef\u4ee5\u914d\u7f6etomcat\u5bb9\u5668\u7684\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n\n\n<ul>\n<li>\u5982\u679c\u4f60\u672c\u5730\u5b89\u88c5\u4e86tomcat\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728<strong>Configure<\/strong>\u4e2d\u914d\u7f6e\u4f7f\u7528\u4f60\u672c\u5730\u7684tomcat\u3002<\/li>\n<li>\u914d\u7f6e\u9ed8\u8ba4\u8c03\u8bd5\u7684\u6d4f\u89c8\u5668\u3002<\/li>\n<li>\u914d\u7f6e\u8bbf\u95ee\u9879\u76ee\u7684url\u3002<\/li>\n<li>\u914d\u7f6e\u5bb9\u5668\u8fd0\u884c\u6240\u9700\u7684jre\u73af\u5883\u3002<\/li>\n<li>\u914d\u7f6etomcat\u672c\u8eab\u7684\u7aef\u53e3\u53f7\u3002<\/li>\n<\/ul>\n\n\n<h3>7.2 \u90e8\u7f72\u9879\u76ee<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1006\" height=\"360\" class=\"wp-image-300 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-32.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-32.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-32.png 1006w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-32-300x107.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-32-768x275.png 768w\" sizes=\"(max-width: 1006px) 100vw, 1006px\"><\/figure><\/div>\n\n\n\n<p>\u9009\u62e9<strong>Deployment<\/strong>\uff0c\u9009\u62e9<strong>Artifact<\/strong>\u540e\uff0c\u5c31\u4f1a\u5c06\u6211\u4eec\u5728\u4e4b\u524d\u914d\u7f6e\u7684\u90e8\u7f72\u5305\u5173\u8054\u81f3\u8be5tomcat\u4e2d\u3002\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"898\" height=\"711\" class=\"wp-image-301 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-33.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-33.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-33.png 898w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-33-300x238.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-33-768x608.png 768w\" sizes=\"(max-width: 898px) 100vw, 898px\"><\/figure><\/div>\n\n\n\n<p>\u6ce8\u610f\uff0c<strong>Application context<\/strong>\u6307\u7684\u662f\u9879\u76ee\u8fd0\u884c\u5728tomcat\u4e2d\u7684\u4e0a\u4e0b\u6587\u8def\u5f84\uff0c\u8fd9\u91cc\u914d\u7f6e\u7684\u201c\/\u201d\uff0c\u662f\u60f3\u201cip+\u7aef\u53e3\u53f7\u201d\u65b9\u5f0f\u76f4\u63a5\u8bbf\u95ee\u9879\u76ee\u3002\u8fd9\u91cc\u7684\u914d\u7f6e\u52a1\u5fc5\u4e0e<strong>server.js<\/strong>\u4e2d\u7684\u914d\u7f6e\u5bf9\u5e94\u3002\u540c\u65f6\u4e0a\u9762tomcat\u914d\u7f6e\u4e2d\u7684<strong>url<\/strong>\u9879\u4e5f\u662f\u5982\u6b64\uff0c\u9700\u8981\u5bf9\u5e94\u3002<br><strong>\u6ce8\u610f\uff0c\u5728\u8fdb\u884c\u90e8\u7f72\u9879\u76ee\u524d\uff0c\u52a1\u5fc5\u9605\u8bfbreadme\u4e2d\u7684\u914d\u7f6e\u8bf4\u660e\uff0c\u4ed4\u7ec6\u68c0\u67e5\u540e\uff0c\u518d\u8fdb\u884c\u8fd9\u91cc\u7684tomcat\u90e8\u7f72\u914d\u7f6e\u3002<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"350\" height=\"81\" class=\"wp-image-302 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-34.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-34.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-34.png 350w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-34-300x69.png 300w\" sizes=\"(max-width: 350px) 100vw, 350px\"><\/figure><\/div>\n\n\n\n<p>\u6700\u540e\uff0c\u76f4\u63a5\u8fd0\u884ctomcat\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u65e5\u5fd7\u4f1a\u6210\u529f\u8f93\u51fa\u81f3\u63a7\u5236\u53f0\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"270\" class=\"wp-image-303 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-35-1024x270.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-35-1024x270.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-35-1024x270.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-35-300x79.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-35-768x203.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-35-1536x406.png 1536w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-35.png 1863w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>console\u65e5\u5fd7\u8f93\u51fa<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u6210\u529f\u8fdb\u5165\u7ad9\u70b9<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img width=\"1024\" height=\"510\" class=\"wp-image-304 lazyload\" title=\"IDEA\u6784\u5efa\u201c\u4f20\u7edfJavaWeb\u9879\u76ee\u201d\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-36-1024x510.png\" alt=\"https:\/\/file.blog.humh.cn\/2020\/04\/image-36-1024x510.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-36-1024x510.png 1024w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-36-300x149.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-36-768x382.png 768w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-36-1536x764.png 1536w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2020\/04\/image-36.png 1871w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"><figcaption>\u9879\u76ee\u6210\u529f\u8fd0\u884c\u6548\u679c\u56fe<\/figcaption><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8be5\u6587\u4e3b\u8981\u9610\u8ff0\uff0c\u5982\u4f55\u5728IDEA\u4e2d\u6784\u5efa\u8d77JavaWeb\u9879\u76ee\uff0c\u8fd9\u91cc\u4ee5\u6211\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u4e3a\u4f8b\u3002 \u5173\u4e8e\u8fd9\u4e2a\u9879\u76ee\u7684\u4fe1\u606f\uff0c\u8be6\u89c1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":304,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[55],"tags":[48,47,49],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/281"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":7,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":1153,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/1153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/media\/304"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}