Skip to content

[Bug]: ForestAutoConfiguration 里 2 个定义 BeanPostProcessor 的方法应该声明为 static #247

@jearton

Description

@jearton

依赖环境:

1.5.35

问题简述:

Image

如何复现:

启动就能复现

预期结果:

加上 static 后,就不会进入 BeanPostProcessorChecker 了。你现在最新版声明为 ROLE_INFRASTRUCTURE 是一种绕过的方式,但加上 static 后,能提前初始化 BeanPostProcessor 类型的 bean,而不用依赖 ForestAutoConfiguration 的初始化。

实际结果:

会提示 ForestAutoConfiguration is not eligible for getting processed by all BeanPostProcessors。你现在最新版只是通过 ROLE_INFRASTRUCTURE 绕过了,本质上没有解决顺序问题

截图或视频:

No response

最小可复现代码:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions