简体   繁体   English

Jetty VS Tomcat Maven插件-我应该使用哪一个?

[英]Jetty VS Tomcat Maven Plugin - which one should I use?

I'm using Tomcat as my production server and I would like to use one of maven plugins in order to run the server from within the IDE. 我使用Tomcat作为生产服务器,并且想使用其中一种maven插件,以便在IDE中运行服务器。 I saw that there are 2 plugins: Tomcat maven plugin and Jetty maven plugin . 我看到有2个插件: Tomcat maven插件Jetty maven插件 What are the differences between the two? 两者之间有什么区别? What are the prons and cons for each? 每种都有哪些利弊?

You should always strive to make your development environment as close to production as possible. 您应该始终努力使您的开发环境尽可能接近生产环境。 Jetty and Tomcat are both similarly easy to use with Maven, so if your production server is Tomcat I'd stick with Tomcat Maven Plugin. 同样,Jetty和Tomcat都可以轻松地与Maven一起使用,因此,如果您的生产服务器是Tomcat,我将坚持使用Tomcat Maven插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM