【发布时间】:2012-02-27 22:27:17
【问题描述】:
我正在为 J2EE 项目使用 Eclipse... 一台设备向我这边发送请求和网址,例如
http://myIP:myPort/corporationweb/Controller
/corporationweb/Controller 已修复,我们无法更改它,因为它是在设备上制作的
我在 Eclipse 中的项目名称是“VirtualTest”,但是如果我映射任何 servlet,这里的 tomcat 包括项目名称,/corporationweb/Controller URL 之类的
http://localhost:8080/VirtualTest/corporationweb/Controller
我需要打开页面而不更改项目名称
- 任何我都可以直接映射 servlet 所以 URL 像
http://localhost:8080/corporationweb/Controller - 任何 URL 重写技术..
- 设为我项目的默认应用程序
【问题讨论】:
标签: eclipse tomcat servlets url-rewriting