默认eclipse部署tomcat应用到
.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\
我在哪里更改它,我在 eclipse 的服务器属性中看不到任何参数来执行此操作?
最佳答案
window -> show view -> server
在打开的窗口中,您应该会看到您的 tomcat 安装。 双击将打开一个新的设置页面。
您将看到Server Locations
标题,您可以从那个地方设置它。
编辑:
此窗口中有三个单选框。 您需要选择适当的选项来更改部署目录。 可能最后一个会更好:“使用自定义位置(不修改 tomcat 安装)”
编辑 2:
Eclipse "Server Locations" section disabled and need to change to use Tomcat installation
关于java - 如何在 Eclipse 中更改 tomcat 默认部署目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4919370/