Skip to content

Document that @ConfigurationProperties beans are not scanned in sliced tests #23210

@MrBuddyCasino

Description

@MrBuddyCasino

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions