Closed piotrooo closed 4 days ago
https://github.com/spring-projects/spring-boot/issues/41552, which describes a problem with @RestartScope
and DynamicPropertyRegistry
, may also be related.
@piotrooo Can you share a project that reproduces the issue, please? I tried with one of my examples but couldn't reproduce it.
Can you share a project that reproduces the issue, please?
@eddumelendez yes! Sure, I even saw you tweet about it recently :wink:
Here is a minimal repro: https://github.com/piotrooo/spring-boot-restart-scope
You just need to run DemoApplicationTests
.
After updating Spring Boot from 3.3.1 to 3.3.2, I receive an exception with the following configuration:
Exception:
When I remove the
@RestartScope
from therabbitContainer
bean, everything works as expected. It seems to be related to issue https://github.com/spring-projects/spring-boot/issues/41238.