# IntelliJ IDEA 如何运行 Dropwizard API

**URL:** <https://www.isharkfly.com/t/intellij-idea-dropwizard-api/13869>\
**Category:** 程序语言\
**Tags:** java, ide\
**Created:** [January 27, 2022, 9:06pm UTC](https://www.isharkfly.com/t/intellij-idea-dropwizard-api/13869 "2022-01-27T21:06:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 27, 2022, 9:06pm UTC](https://www.isharkfly.com/t/intellij-idea-dropwizard-api/13869/1 "2022-01-27T21:06:27Z")

</div>

在命令行工具中运行 Dropwizard 项目的命令为：

```auto
java -jar target/target-1.0-SNAPSHOT.jar server config.yml

```

在上面命令中，我们添加了 2 个运行参数和命令 server config.yml

## IDEA

因此，如果你需要在 IDEA 中也能够运行项目。

你需要在项目中添加上面的 2 个参数和命令。

![IDEA-RUN-01](https://www.isharkfly.com/images/transparent.png)

如果上图显示中的位置来添加你的参数和命令。

随后就可以在控制台中看到你项目的运行了。
