You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting spring.main.lazy-initialization: true effectively disables the spring.reactor.context-propagation: AUTO, as the ReactorAutoConfiguration1 is never instantiated during the application startup. Turning on eager initialization alleviates this problem, which leads me to believe that this particular setup was overlooked when the AutoConfiguration class what added. Hence, I created this issue, even though the text reads more like a question.
This is not elegant at all and I am not super sure if there is a way of forcing eager auto configuration for such cases (or if this should be rather fixed at Spring Boot level).
wilkinsona
changed the title
ReactorAutoConfiguration and Lazy Initialization
Setting spring.reactor.context-propagation has no effect when lazy initialization is enabled
Jun 6, 2025
Uh oh!
There was an error while loading. Please reload this page.
Setting
spring.main.lazy-initialization: true
effectively disables thespring.reactor.context-propagation: AUTO
, as theReactorAutoConfiguration
1 is never instantiated during the application startup. Turning on eager initialization alleviates this problem, which leads me to believe that this particular setup was overlooked when theAutoConfiguration
class what added. Hence, I created this issue, even though the text reads more like a question.We are currently doing the following
This is not elegant at all and I am not super sure if there is a way of forcing eager auto configuration for such cases (or if this should be rather fixed at Spring Boot level).
Cheers!
Footnotes
ReactorAutoConfiguration ↩
The text was updated successfully, but these errors were encountered: