Dropwizard热部署 [英] Dropwizard hot deployment

查看:171
本文介绍了Dropwizard热部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个简单易用的Java系统,它为我创建了一个REST服务。所以我找到了dropwizard,但据我可以使用谷歌,它发现它缺乏热部署,虽然码头能够这样做。使用maven-shade-plugin时,至少需要10秒才能构建。此外,我的IDE报告说,当涉及到shade-plugin时,它无法使用编译保存功能(也就是热部署)。

I'm looking for a simple to use system in Java which creates a REST service for me. So I found dropwizard but as far as I can use google it turns out it lacks hot deployment although jetty is able to do so. When using the maven-shade-plugin it takes at least 10 seconds to build the thing. Also my IDE reports that it cannot use compile on save feature (aka hot deployment) when the shade-plugin is involved.

我可以以某种方式使用hotdeployment吗?或者我可以使用什么呢?

Can I use hotdeployment somehow? Or what can I use instead?

更新:如果没有什么能解决这个问题,我可能会使用jersey& guice等的组合,这是在这篇文章中解释

Update: If nothing will fix this I'll probably use a combination of jersey&guice etc which is explained in this post

推荐答案

您不必使用shade插件来运行您的服务。您可以编译为常规jar文件,我认为这样可以让您使用IDE的热部署功能。

You don't have to use the shade plugin to run your service. You could just compile as a regular jar file and I think that would let you use your IDEs hot deployment features.

这篇关于Dropwizard热部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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