Friday 18 September 2015

Change Web Application Context root in Eclipse/ MyEclipse

When ever we run our web project, our project name will be the default context root. For Example, if our project name is "Test" then the context root will be

 "http://localhost:8080/Test"

If you want to change this in MyEclipse,

1. Right click on the project and select properties from the list of options.
2. Select MyEclipse from the left side menu.
3. Select ‘Project Facets’ from the submenu, then select web option. 
4. On the right side you can find Web Context-root under Context Root tab having the default root context(ie., Test). Here you can change the context root.

If you want to change this in Eclipse,
1. Right click on the project and select properties from the list of options.
2. Select Web Project Settings from the left side menu.
3. In the right side you can find the Context root, which is showing the default project name as context root. Here you can change the context root.

No comments:

Post a Comment