Update 1、BeanDefinition的资源定位过程.md

看调用方法返回的是加载BeanDefinition的个数,而不是配置文件个数
pull/81/head
Jason_liu 4 years ago committed by GitHub
parent 19fca0c059
commit 78bf0cccdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -261,7 +261,7 @@ AbstractBeanDefinitionReader 中对 loadBeanDefinitions 方法的各种重载及
*/ */
public int loadBeanDefinitions(String... locations) throws BeanDefinitionStoreException { public int loadBeanDefinitions(String... locations) throws BeanDefinitionStoreException {
Assert.notNull(locations, "Location array must not be null"); Assert.notNull(locations, "Location array must not be null");
// 计数器,统计加载了多少个配置文件 // 计数器,统计加载了多少个BeanDefinition
int counter = 0; int counter = 0;
for (String location : locations) { for (String location : locations) {
counter += loadBeanDefinitions(location); counter += loadBeanDefinitions(location);

Loading…
Cancel
Save