Eclipse can directly access the project without losing the project name

1. Right-click on the project name in eclipse, select Properties, click Web Project Settings on the left in the pop-up interface, find the Context root option on the right, and change the value in Context root to /, the problem is solved.

2. Modify the tomcat server.xml file

<Context docBase="xxx" path="/" reloadable="true" source="org.eclipse.jst.jee.server:xxx"/></Host>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325950655&siteId=291194637