Skip to content
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

@WireOption Not Working #7

Open
lnorth opened this issue May 16, 2012 · 0 comments
Open

@WireOption Not Working #7

lnorth opened this issue May 16, 2012 · 0 comments

Comments

@lnorth
Copy link

lnorth commented May 16, 2012

The @WireOption annotation does not work with Spring 3.1.1.RELEASE and probably with earlier versions. The problem is that the @Autowired annotations in CommandLineBeanPostProcessor do not work because CommandLineBeanPostProcessor is a BeanPostProcessor. See SPR-4935 (https://jira.springsource.org/browse/SPR-4935).

This is easily fixed by removing the @Autowired's and adding autowire="byType" to CommandLineBeanPostProcessor bean definition in spring-cli.context.

Thank you for creating this useful utility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant