Eclipse中启动Tomcat后,http://localhost:8080/无法访问

时间:2022-11-05 20:10:52


打开Server视图,双击其中的"Tomcat v9.0 Server at localhost"

Eclipse中启动Tomcat后,http://localhost:8080/无法访问

然后修改配置,如下图所示,将默认的“use workspace metadata”修改为“Use Tomcat installation”

Eclipse中启动Tomcat后,http://localhost:8080/无法访问

eclipse中server location为灰色,不能修改


选择window ----show view---services可以看到服务的面板

双击tomcat進入配制界面Service Locations(Specify the server path (i.e. catalina.base) and deploy path. Server must be published with no modules present to make changes.)选项变灰色无法更改配制。

若要更改,則把tomcat下的所有項目移除。并右击,clean...之后方可設置。。。启动后将又变为黑色。

默认选项为:
Use workspace metadata(dose not modify Tomcat installation)
修改选项为:
Use Tomcat installation(takes control of Tomcat installation)