{"id":923,"date":"2010-10-01T12:38:28","date_gmt":"2010-10-01T12:38:28","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=923"},"modified":"2010-10-01T12:38:28","modified_gmt":"2010-10-01T12:38:28","slug":"myeclipse-%e8%87%aa%e5%8a%a8%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/10\/01\/myeclipse-%e8%87%aa%e5%8a%a8%e7%bc%96%e8%af%91\/","title":{"rendered":"myeclipse \u81ea\u52a8\u7f16\u8bd1"},"content":{"rendered":"<p>\u83dc\u5355<br \/>\nProject -&gt; Build Automatically<br \/>\nMyeclipse\u4e2dTomcat\u7684\u4e24\u79cd\u90e8\u7f72\u65b9\u5f0f<br \/>\n\u4e00\u3001\u5728Myeclipse\u8f6f\u4ef6\u4e2d\u90e8\u7f72<\/p>\n<p>1\u3001 \u5728Myeclipse\u4e2d\uff0c\u521b\u5efa\u597d\u5de5\u7a0b\u540e\uff0c\u5728Myeclipse\u83dc\u5355\u680f\u4e2d\u9009\u62e9 Windows -&gt; Preferences -&gt; Myeclipse -&gt; Tomcat5\uff0c\u9009\u62e9&#8221;Enable&#8221;\uff1bTomact Home Directory\u8981\u9009\u62e9\u4f60\u673a\u5668\u4e0aTomcat\u6240\u5b89\u88c5\u7684\u76ee\u5f55\u3002\u7136\u540e\uff0c\u518dWindows -&gt; Preferences -&gt; Myeclipse -&gt; Tomcat5 -&gt;JDK\uff0c\u786e\u4fdd\u8fd9\u4e2a\u662f\u6709\u5bf9\u5e94\u7684jdk\u7248\u672c\uff0c\u82e5\u6ca1\u6709\uff0c\u5219\u901a\u8fc7&#8221;Add&#8221;\u6dfb\u52a0\u5176\u5b89\u88c5\u8def\u5f84\u3002ok<\/p>\n<p>2\u3001\u9009\u62e9\u5de5\u5177\u680f\u4e0a\u7684\u6309\u94ae\uff0c\u5728\u201dProject\u201d\u4e2d\u9009\u62e9\u4f60\u8981\u90e8\u7f72\u7684\u5de5\u7a0b\uff0c\u7136\u540e\u201dAdd\u201d\uff0c\u518d\u9009\u62e9\u201dTomcat\u201d\uff0cFinish\u3002<\/p>\n<p>3\u3001 \u5728\u5de5\u5177\u680f\u4e0a\u9009\u62e9\uff0c\u542f\u52a8Tomcat\u3002<\/p>\n<p>4\u3001 \u8fd0\u884c\u7a0b\u5e8f\u3002\u5728IE\u4e2d\u8f93\u5165<a href=\"http:\/\/localhost:8080\/aa\/WebRoot\/index.jsp(aa\">http:\/\/localhost:8080\/aa\/WebRoot\/index.jsp(aa<\/a>\u4e3a\u5de5\u7a0b\u540d\u5b57)<br \/>\n\u4e8c\u3001\u5728Tomcat\u7684server.xml\u914d\u7f6e\u6587\u4ef6\u4e2d\u90e8\u7f72<\/p>\n<p>1\u3001\u5728Tomcat\u4e0b\uff0c\u627e\u5230conf\u6587\u4ef6\u4e0b\u7684server.xml\uff0c\u6253\u5f00\u3002<\/p>\n<p>2\u3001\u5728&lt;Host&gt;\u548c&lt;\/host&gt;\u4e4b\u95f4\u52a0\u4e0a\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<p>1<br \/>\n2 &lt;Context path=&#8221;\/\u865a\u62df\u76ee\u5f55\u540d&#8221; docBase=&#8221;\u76ee\u6807\u76ee\u5f55\u4f4d\u7f6e&#8221; debug=&#8221;0&#8243; reloadable=&#8221;true&#8221; &gt;<br \/>\n3 &lt;\/Context&gt;<\/p>\n<p>(\u4e25\u683c\u533a\u5206\u5927\u5c0f\u5199\uff0c\u5f53path=&#8221;&#8221;\u65f6\uff0c\u6b64\u65f6\u7684\u865a\u62df\u76ee\u5f55\u76f4\u63a5\u4e3aroot&#8212;&gt;http:\/\/localhost:8080\/)<br \/>\n\u53c2\u6570\uff1a<\/p>\n<p>?path\uff1a\u8868\u793a\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165<a href=\"http:\/\/localhost:8080\/\">http:\/\/localhost:8080\/<\/a>\u865a\u62df\u76ee\u5f55\u540d<\/p>\n<p>\u5982\uff1apath=&#8221;\/aa&#8221; \u5219\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165<a href=\"http:\/\/localhost:8080\/aa\/index.jsp\">http:\/\/localhost:8080\/aa\/index.jsp<\/a><\/p>\n<p>? path \u5c31\u662f\u63d0\u4f9b\u4e00\u4e2a\u524d\u7f00\u529f\u80fd\u3002<br \/>\n?docBase\uff1a\u8868\u793a\u4f60\u7684\u7a0b\u5e8f\u5305\u7684\u7269\u7406\u7edd\u5bf9\u8def\u5f84\uff0c\u9ed8\u8ba4\u7684\u7edd\u5bf9\u8def\u5f84\u662f???? %tomcat_home%\/webapps<\/p>\n<p>workDir\uff1a?? \u8868\u793a\u662f\u7f13\u5b58\u6587\u4ef6\u7684\u653e\u7f6e\u5730\u70b9\uff0c\u53ef\u4ee5\u65b9\u4fbf\u8de8\u5e73\u53f0\u79fb\u690d\u65f6\u4e0d\u7528\u91cd\u7f16\u8bd1\u3002\u8fd9\u6837\uff0c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u653e\u5230\u786c\u76d8\u4e0a\u7684\u4efb\u610f\u5730\u65b9\u4e86\uff0c\u4e34\u65f6\u6587\u4ef6\u7684\u5b58\u653e\u5730\u70b9\u4e0d\u8bbe\u7f6e\u7684\u8bdd\uff0c\u9ed8\u8ba4\u5b58\u653e\u5728tomcat\\work\\Catalina\\\\localhost\u4e4b\u4e0b\\localhost<\/p>\n<p>?reloadable \uff1a\u4e3atrue\uff0c\u5219tomcat\u4f1a\u81ea\u52a8\u68c0\u6d4b\u5e94\u7528\u7a0b\u5e8f\u7684\/WEB-INF\/lib \u548c\/WEB-INF\/classes\u76ee\u5f55\u7684\u53d8\u5316\uff0c\u81ea\u52a8\u88c5\u8f7d\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u91cd\u8d77tomcat\u7684\u60c5\u51b5\u4e0b\u6539\u53d8\u5e94\u7528\u7a0b\u5e8f\uff1b\u4e3afalse\u5219\u4e0d\u81ea\u52a8\u52a0\u8f7d\u3002<\/p>\n<p>\u5982\uff1a<br \/>\n&lt;Context path=&#8221;\/&#8221; reloadable=&#8221;true&#8221; docBase=&#8221;E:\\workspace\\.metadata\\.plugins\\com.genuitec.eclipse.easie.tomcat.myeclipse\\tomcat\\webapps\\testAuto&#8221;<br \/>\nworkDir=&#8221;E:\\workspace\\.metadata\\.plugins\\com.genuitec.eclipse.easie.tomcat.myeclipse\\tomcat\\webapps\\testAuto&#8221; \/&gt;<\/p>\n<p>\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165\uff1a? <a href=\"http:\/\/localhost:8080\/index.jsp\">http:\/\/localhost:8080\/index.jsp<\/a> \u5373\u53ef\u8fd0\u884c \uff0c\u4e0d\u7528\u518d\u52a0\u4e0a\u5de5\u7a0b\u540d\u5982\uff1a <a href=\"http:\/\/localhost:8080\/myproject\/index.jsp\">http:\/\/localhost:8080\/myproject\/index.jsp<\/a>??? &lt;\/Host&gt;<br \/>\nreloadable=&#8221;true&#8221;\u4f1a\u81ea\u52a8\u66f4\u65b0classes, jsp\u6587\u4ef6??? ps: docBase\u8981\u7cbe\u786e\u5230\u5de5\u7a0b\u540d\u624d\u53ef<br \/>\n\u7528myeclipse \u66f4\u6539\u7c7b\u6587\u4ef6\u65f6\uff0c\u5176\u4f1a\u81ea\u52a8\u7f16\u8bd1\uff0c\u800ctomcat\u5c31\u4f1a\u81ea\u52a8\u66f4\u65b0classes\u6587\u4ef6\uff0c<\/p>\n<p>\u95ee\u9898\uff1aIE\u4e2d\u6ca1\u6709\u663e\u793a\u53d8\u5316\u7ed3\u679c\uff0c\u539f\u56e0\uff1amyeclipse\u81ea\u52a8\u7f16\u8bd1\u8fd8\u672a\u5b8c\u6210\uff0c\u5728\u90e8\u5206\u662f\u5f88\u5feb\u7684\u3002<br \/>\n\u9ed8\u8ba4\u4e3afalse, \u53ea\u4f1a\u81ea\u52a8\u66f4\u65b0jsp\u6587\u4ef6<\/p>\n<p>ps:\u8def\u5f84\u8981\u4e0epath\u8bbe\u7f6e\u7684\u8def\u5f84\u76f8\u540c\u624d\u53ef\u770b\u5230\u81ea\u52a8\u53d1\u751f\u7684\u53d8\u5316<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u83dc\u5355 Project -&gt; Build Automatically Myeclipse\u4e2dTomcat\u7684\u4e24 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-923","post","type-post","status-publish","format-standard","hentry","category-struts2-0"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=923"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/923\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}