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
emaysyuk opened this issue Dec 2, 2019 · 0 comments
Closed

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

emaysyuk opened this issue Dec 2, 2019 · 0 comments
Assignees
Labels
type: regression A regression from a previous release
Milestone

Comments

@emaysyuk
Copy link

emaysyuk 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/emaysyuk/spring-boot-bean-class-placeholder

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 2, 2019
@philwebb philwebb added type: regression A regression from a previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 2, 2019
@philwebb philwebb added this to the 2.2.x milestone Dec 2, 2019
@mbhave mbhave self-assigned this Dec 3, 2019
@mbhave mbhave modified the milestones: 2.2.x, 2.2.2 Dec 4, 2019
@mbhave mbhave closed this as completed in 68bc82c Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: regression A regression from a previous release
Projects
None yet
Development

No branches or pull requests

4 participants