把工程部署在tomcat的root路径下 myeclipse可以右键工程:(eclipse也可以)选择properties->myeclipse->web;把web context-root改成:/然后在用myeclipse部署项目到tomcat;这样就可以了! 完毕。