Java Dynamic Web Project with Eclipse

Currently, to access my dynamic web project (running in the tomcat servlet container), I refer to the following URL:

http://localhost:8080/[Eclipse_Project_Name]

I have a couple of questions about this:

  • Where is the configuration that forces the url to require an Eclipse project name? I do not see this in web.xml.

  • Let's say I would like to change the URL used to access my project. Maybe I want the root: localhost: 8080 /, or maybe a different directory structure as a whole. How to do it?

thank

+3
source share
2 answers

, URL- Eclipse? web.xml.

-, Project, -, root, ( URL-, ).

web.xml, .settings (, org.eclipse.wst.common.component) ​​ /Servers/Tomcat v6.0 Server at localhost-config/server.xml <Context>, Tomcat.

, URL-, . , , : localhost: 8080/, , . ?

, a > -. . , Tomcat ..., .

+10

eclipse, .

Project → Properties → WebProject

+1

Source: https://habr.com/ru/post/1774831/


All Articles