我的 eclipse 项目中有一个 maven web 模块。 是否可以通过在 tomcat 上运行它来在 eclipse 中简单地测试这个模块。 此时我正在生成一个 war 文件并将其添加到 tomcat 的 webapps 目录中。
更快的方法会更好
谢谢 达米安
最佳答案
Is it possible to simply test this module in eclipse by running it on tomcat.
您可以使用 WTP 在 Tomcat 上部署您的应用程序。无论您使用的是 Maven Eclipse Plugin,这都是可行的或 m2eclipse plugin (只需确保从 m2eclipse Extras 安装 Maven Integration for WTP)。
关于eclipse - 在 eclipse 和 tomcat 中测试 maven web 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4218396/