您的位置:首页 > 其它

小记,随时记录开发中的事

2014-08-31 16:32 218 查看
1,How to clear the command prompt screen?

windows : cls

linux : clear

2,eclipse 中配置的tomcat server起来后,浏览器中mypcName:8080/显示404错误

Click on Window > Show view > Server OR right click on the server in "Servers" view, select "Properties".
In the "General" panel, click on the "Switch Location" button.
The "Location: [workspace metadata]" should replace by something else.
Open the Overview screen for the server by double clicking it(Tomcat v7.0 Server at localhost.server).
In the Server locations tab , select "Use Tomcat location".
Save the configurations and restart the Server.

You may want to follow the steps above before starting the server. Because server location section goes grayed-unreachable.



参考:http://stackoverflow.com/questions/16340711/tomcat-http-status-404

这时候mypcName:8080可以看到tomcat的默认页面。但是mypcName:8080/myproject/index.jsp还是404.

在Tomcat v7.0 Server at localhost上点右键,选择Add or Remove,把myproject选到右边,重启tomcat,打开了index.jsp
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: