强调一点,就是.mymetadata文件:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="zyyhl"
id="myeclipse.1313210652109"
context-root="/zyyhl"
j2ee-spec="1.4"
archive="zyyhl.war">
<attributes>
<attribute name="webrootdir" value="ViewController//public_html" />
</attributes>
</project-module>
里面的webrootdir属性可以改为合适的目录,如果有子目录,要用"//"分开才行!
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="zyyhl"
id="myeclipse.1313210652109"
context-root="/zyyhl"
j2ee-spec="1.4"
archive="zyyhl.war">
<attributes>
<attribute name="webrootdir" value="ViewController//public_html" />
</attributes>
</project-module>
里面的webrootdir属性可以改为合适的目录,如果有子目录,要用"//"分开才行!
本文介绍了如何修改.mymetadata文件中的webrootdir属性以指向正确的目录。若包含子目录,则需要用//进行分隔。
188

被折叠的 条评论
为什么被折叠?



