首页 > 解决方案 > 使用 vertx 的 WebApiServiceGen 时出现“找不到代理类”

问题描述

我正在关注这个例子https://github.com/vert-x3/vertx-examples/tree/master/web-api-service-example。我没有使用 Java 和 Maven,而是尝试在 Kotlin 和 Gradle 中进行。当我运行项目时,我得到一个Cannot find proxyClass:错误。我的 build.gradle 文件有这个

annotationProcessor "io.vertx:vertx-codegen:$vertxVersion:processor"

注释处理器“io.vertx:vertx-web-api-service:$vertxVersion”

compileOnly "io.vertx:vertx-codegen:$vertxVersion"

编译“io.vertx:vertx-web-api-service:$vertxVersion”`

我可以使用 Gradle 成功构建

标签: gradlevert.x

解决方案


推荐阅读