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

Bean class placeholders doesn't work in 2.2.1.RELEASE #19207

Closed
EugenMaysyuk opened this issue Dec 2, 2019 · 0 comments
Closed

Bean class placeholders doesn't work in 2.2.1.RELEASE #19207

EugenMaysyuk opened this issue Dec 2, 2019 · 0 comments
Assignees
Milestone

Comments

@EugenMaysyuk
Copy link

@EugenMaysyuk EugenMaysyuk commented Dec 2, 2019

Previously (in 2.1.10.RELEASE and below) it was possible to use placeholders in place of bean class:

< bean id="serviceImpl" class="${service.class}" />

This feature has been broken, probably with adding of ConfigurationPropertiesBeanDefinitionValidator which forces class loader to load unresolved class name (by this call) what causes ClassNotFoundException: ${service.class}.

Here you can find sample application that reproduces the problem:
https://github.com/EugenMaysyuk/spring-boot-bean-class-placeholder

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.