Review need for @Autowired
on @ConfigurationProperties
class's constructor
#16186
Labels
type: task
A general task
The new support for constructor binding of configuration properties has introduced a need for
@Autowired
on a@ConfigurationProperties
class's constructor. I find it a little confusing when the class only has a single constructor as, since Framework 4.3 (I think),@Autowired
has not been necessary when the class only has a single constructor. I'd like to see if we can drop the requirement. If we can't, the documentation should be updated to explain why it's needed so that we can reduce the potential confusion as much as possible.The text was updated successfully, but these errors were encountered: