mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix NPE in BeanDefinitionLoader when XML support is disabled
See gh-22696
This commit is contained in:
parent
6efff7b585
commit
2bdeba8aaa
@ -189,7 +189,7 @@ class BeanDefinitionLoader {
|
||||
}
|
||||
|
||||
private void load(CharSequence source) {
|
||||
String resolvedSource = this.xmlReader.getEnvironment().resolvePlaceholders(source.toString());
|
||||
String resolvedSource = this.scanner.getEnvironment().resolvePlaceholders(source.toString());
|
||||
// Attempt as a Class
|
||||
try {
|
||||
load(ClassUtils.forName(resolvedSource, null));
|
||||
|
Loading…
Reference in New Issue
Block a user