eclipse中server location灰色,怎么修改?

1.Eclipse中tomcat service设置
(1)选择window >show view>services可以看到服务的面板
(2)单击eclipse下方Servers再双击Tomcat v8.5 Server at localhost(我的tomcat版本是8.5的)即可
双击tomcat进入配置界面Service Locations 选项变灰色无法更改配置的
若要更改,则先把tomcat下的所有項目移除。并右击,clean…之后方可设置启动后将又变为黑色
在这里插入图片描述
默认选项为:
Use workspace metadata(dose not modify Tomcat installation)
修改选项为:
Use Tomcat installation(takes control of Tomcat installation)
在这里插入图片描述
ok,这样在Eclipse启动了tomcat服务器,我們也能夠访问到tomcat本地管理首页;
否则只能在DOS下使用Tomcat的启动命令才能访问Tomcat本地管理首页。

猜你喜欢

转载自blog.csdn.net/LJN951118/article/details/82917760