Skip to content

@Configuration constructor behaviour documentation differs between Reference Documentation and API docs [SPR-14552] #19120

@spring-projects-issues

Description

@spring-projects-issues

Michael Vitz opened SPR-14552 and commented

The reference documentation at http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#beans-java-composing-configuration-classes states that "Constructor injection in @Configuration classes is only supported as of Spring Framework 4.3.". However if looking in the javadoc API for @Configuration at http://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Configuration.html the following is said: "@Configuration classes must have a default/no-arg constructor and may not use @Autowired constructor parameters. Any nested configuration classes must be static." I think the javadoc needs to be fixed here.


Affects: 4.3.2

Referenced from: commits 8aadb8d, 4854989

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions