以vertx-blueprint-microservice的ProductVerticle为例说明,如何使用idea工具启动vertx web服务。
- Run/Debug Configurations配置
点击Run-》EditConfiguration,再点击+-》Application,进入Run/Debug Configurations配置界面。配置参数如下
Main class: io.vertx.core.Launcher
Program arguments: run io.vertx.blueprint.microservice.product.ProductVerticle -conf config.json路径
Use classpath of module:
配置完如下图所示

网友评论