使用springmvc和带有内部服务器的eclipse创建和调试应用 [英] Creating and debugging app with springmvc and eclipse with internal server

查看:79
本文介绍了使用springmvc和带有内部服务器的eclipse创建和调试应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个使用maven的sprimgmvc应用程序.我目前正在使用mvn:package进行战争并将其部署到tomcat进行开发,这变得非常麻烦.我没有将Eclipse配置为可以自动构建并部署到tomcat的问题吗?

I currently have a sprimgmvc app that uses maven. I am currently using mvn:package to build war and deploy it to tomcat to develop and this is getting very cumbersome. I dont have the eclipse configured to automatically build and deploy to tomcat for that matter?

任何人都可以向我提供我需要采取的步骤,以便如果我在项目中进行任何更改,我都可以点击保存并运行,它将部署到tomcat或以某种方式不使用tomcat但可以使用码头或其他东西来构建和测试我的应用程序?

Can anyone please provide me steps that I need to take so that if I make any changes in my project I can just hit save and run and it will deploy to the tomcat OR a way in which I dont use tomcat but use maybe jetty or something else to build and test my app?

谢谢

推荐答案

下载STS>将您的项目作为maven项目导入到新工作区> mvn install(仅一次下载所有依赖项)>运行AS>服务器> baam! 对于其他任何Eclipse版本几乎相同,但是您需要打开服务器窗口并配置tomcat,基本上是打开服务器选项卡> new>选择您的tomcat安装路径,然后在服务器上运行它.您甚至可以在运行应用程序时修改代码.

download STS > Import your project as maven project to the new workspace > mvn install (only once to download all your dependencies) > run AS > Server > baam! For any other eclipse version pretty much the same but you need to open the server window and configure tomcat , basically open the server tab > new > select your tomcat installation path and then .. just run it on the server. You can even modify code while running your app.

这篇关于使用springmvc和带有内部服务器的eclipse创建和调试应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆