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

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值