spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java
/**
		 * Load an actual property source file.
		 * @param profile the profile being loaded
		 * @param location the location of the resource
		 * @param name an optional name to be combined with the location
		 */
Load an actual property source file.
@param profile the profile being loaded
@param location the location of the resource
@param name an optional name to be combined with the location
Load an actual property source file . @param profile the profile being loaded @param location the location of the resource @param name an optional name to be combined with the location
private void load(Profile profile, String location, String name) {
			if (!StringUtils.hasText(name)) {
				for (PropertySourceLoader loader : this.propertySourceLoaders) {
					if (canLoadFileExtension(loader, location)) {
						load(loader, profile, location,
								(profile == null ? null : profile.getName()));
					}
				}
			}
			for (PropertySourceLoader loader : this.propertySourceLoaders) {
				for (String ext : loader.getFileExtensions()) {
					loadForFileExtension(loader, profile, location + name, "." + ext);
				}
			}
		}
private void load ( Profile profile , String location , String name ) { if ( ! StringUtils . hasText ( name ) ) { for ( PropertySourceLoader loader : this . propertySourceLoaders ) { if ( canLoadFileExtension ( loader , location ) ) { load ( loader , profile , location , ( profile == null ? null : profile . getName ( ) ) ) ; } } } for ( PropertySourceLoader loader : this . propertySourceLoaders ) { for ( String ext : loader . getFileExtensions ( ) ) { loadForFileExtension ( loader , profile , location + name , "." + ext ) ; } } }
Load an actual property source file.
Load an actual property source file .