-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Document that @ConfigurationProperties beans are not scanned in sliced tests #23210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the sample.
I'm flagging this for team attention so that we can discuss what, if anything, we want to do here. It may be that we decide to change the behaviour or perhaps just make and update to the documentation to clarify the current behaviour. |
Thanks for the quick feedback. In the meantime, I guess |
I don't think it is a workaround but what you should be doing the same way you should use As for the documentation it currently states the following:
|
Affects: 2.2.4.RELEASE
The
@ConfigurationPropertiesScan
annotation does not work in a@WebFluxTest
and fails to pick up any classes. Referencing classes explicitly via@EnableConfigurationProperties
works but shouldn't be required. The project uses Kotlin 1.4.Here is a minimal test case to reproduce the issue:
https://github.com/MrBuddyCasino/spring-boot-property-binding-bug
The text was updated successfully, but these errors were encountered: