我如何从Kotlin Docs到Swagger-UI解析信息?
我需要为Swagger-UI解析Kotlin Docs(不是Swagger注释)。
我尝试了 this ,但它行不通。
在这里,我的springdoc依赖项(springdocversion =“ 1.6.6”)。顺便说一句,如果重要的话,我不能使用Therapi版本0.13.0。
runtimeOnly("org.springdoc:springdoc-openapi-kotlin:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-webflux-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-javadoc:$springdocVersion")
annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
implementation("com.github.therapi:therapi-runtime-javadoc:0.12.0")
I need to parse kotlin docs (not swagger annotation) for swagger-ui.
I tried this, but it don't work.
Here my springdoc dependencies (springdocVersion = "1.6.6"). By the way, I can't use therapi version 0.13.0 if it's important.
runtimeOnly("org.springdoc:springdoc-openapi-kotlin:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-webflux-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-javadoc:$springdocVersion")
annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
implementation("com.github.therapi:therapi-runtime-javadoc:0.12.0")
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我替换
AnnotationProcessor(“ com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0”)
withkapt(“ com.github.therapi:therapi-javadocime-javadocime-javadocime-javadocime-javadocime-javadoc -Scribe:0.12.0“)
,一切都很好!可以找到构建文件的一个示例在这里
After I replaced
annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
withkapt("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
, all worked well!An example of the build file can be found here