【发布时间】:2021-03-04 14:02:35
【问题描述】:
我通过添加依赖项(gradle 项目)完成了工作
dependencies {
...
implementation("org.zalando:logbook-spring-boot-webflux-autoconfigure:2.5.0")
}
和插件(因为自动配置需要不低于 2.4.2 启动版本)
id("org.springframework.boot") version "2.4.2" apply false
id("io.spring.dependency-management") version "1.0.11.RELEASE"
这很方便,除了添加依赖项之外我不需要做更多的事情。但它不可用,因为我的 gitlab 上的管道失败(我不知道为什么)。
是否有任何示例如何使用没有 logbook-spring-boot-webflux-autoconfigure 依赖项的日志来逐步记录 spring-webflux 请求/响应? 例如插件(我没问题)
plugins {
id("org.springframework.boot") version "2.2.4.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
}
谢谢!
【问题讨论】:
-
But it is not usable because of failing pipelines on my gitlab(I have no idea why)我会先解决这个问题。
标签: gradle spring-webflux logbook