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

来源:互联网 发布:淘宝内存卡骗局大全 编辑:程序博客网 时间:2024/06/03 14:19

1,How to clear the command prompt screen?

windows : cls

linux : clear


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

  1. Click on Window > Show view > Server OR right click on the server in "Servers" view, select "Properties".
  2. In the "General" panel, click on the "Switch Location" button.
  3. The "Location: [workspace metadata]" should replace by something else.
  4. Open the Overview screen for the server by double clicking it(Tomcat v7.0 Server at localhost.server).
  5. In the Server locations tab , select "Use Tomcat location".
  6. 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.

server Locations in eclipse view

参考: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


0 0