这是没有设置路径,所以eclipse将默认路径到了eclipse自带的Tomcat下面
解决方式:
tomcat有项目的先remove掉,双击tomcat,旁边有一个Server Locations
这里有三种可以选择:
1.使用eclipse的工作空间,以上述为例就是 D:workSpace.metadata.pluginsorg.eclipse.wst.server.core mp0
2.使用tomcat的安装目录,以上述为例就是 D: omcat
3.自定义路径,这里就是自己选择目录了
还可以通过修改 Deploy path 来定义工程到底部署到容器的哪个目录下。例如下图中,我们就可以选着 Use Tomcat Installtion 这种方式,并且设置 Deploy path 为 webapps: