Skip to content

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

@emaysyuk

Description

@emaysyuk

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

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions