https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#beans-factorybeans-annotations At first example of 1.10.5. Defining Bean Metadata within Components, @Component should be @Configuration.

Comment From: pivotal-issuemaster

@e406hsy Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@e406hsy Thank you for signing the Contributor License Agreement!

Comment From: snicoll

@e406hsy the section of the documentation you've changed is "Defining Bean Metadata within Components". As @hrybs indicated, although unusual, it is possible to create additional beans in a component (so-called "lite mode") and those changes are not required. Thanks again for the PR, in any case.