spring-projects / spring-projects/spring-modulith

spring-modulith-observability breaks RestControllers implementing an Interface

未关闭
#653 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Java
星标
1.2k
派生
222
PR 合并指标
30 天内没有已合并 PR

描述

When the spring-modulith-observability dependency is present, RestControllers that implement any interface are no longer serving their endpoints or apear in the OpenAPI documentation (Swagger).

This is not limited to interfaces with Rest Annotations (like @GetMapping), or OpenAPI Annotations, but also to interfaces that are not related to the REST API, including empty marker interfaces.

The expected behavior is, that the spring-modulith-observability doesn't have an effect on the availability of RestControllers implementing an interface.

Reproducer https://github.com/gmuecke/spring-modulith-observability-reproducer

Spring Modulith: 1.2.0, 1.1.5
Spring Boot: 3.3.0, 3.2.6
JDK 21

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从链接的 spring-modulith-observability reproducer 开始,针对列出的 Spring Modulith 和 Spring Boot 版本运行它。比较实现接口的 RestControllers 在有依赖和无依赖时的情况,检查端点是否可用以及 OpenAPI 文档;当实现接口的控制器在两种情况下都能正常工作时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, spring, spring-boot
领域
api, backend, observability
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。