简体   繁体   English

如何为Dropwizard应用程序构建web.xml

[英]How to build web.xml for Dropwizard application

I have created application in Dropwizard, which is serving REST API to my clients. 我在Dropwizard中创建了应用程序,它为我的客户提供REST API。 I used to run this from .jar file on server, everything worked fine. 我以前从服务器上的.jar文件运行它,一切正常。

Now I have requirement to move my application to WildFly, so now I assume that I need to have a WAR instead of JAR, and here comes my problem: 现在我需要将我的应用程序移动到WildFly,所以现在我假设我需要一个WAR而不是JAR,这就是我的问题所在:

How to write web.xml to my application? 如何将web.xml写入我的应用程序? What to include in there? 在那里包括什么? Could anyone give me any template or tutorial or some example how it is done in Dropwizard? 任何人都可以给我任何模板或教程或一些例子如何在Dropwizard中完成它?

I found what I was looking for. 我找到了我要找的东西。 It's wizard-in-a-box project that do all the necessary things to build a WAR file. 它是一个盒子中向导项目,可以完成构建WAR文件所需的所有内容。

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

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