spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java
/**
	 * Create a classloader for the specified archives.
	 * @param archives the archives
	 * @return the classloader
	 * @throws Exception if the classloader cannot be created
	 * @since 2.3.0
	 */
Create a classloader for the specified archives.
@param archives the archives
@return the classloader
@throws Exception if the classloader cannot be created
@since 2.3.0
Create a classloader for the specified archives . @param archives the archives @return the classloader @throws Exception if the classloader cannot be created @since 2 . 3 . 0
protected ClassLoader createClassLoader(Iterator<Archive> archives) throws Exception {
		List<URL> urls = new ArrayList<>(50);
		while (archives.hasNext()) {
			urls.add(archives.next().getUrl());
		}
		return createClassLoader(urls.toArray(new URL[0]));
	}
protected ClassLoader createClassLoader ( Iterator < Archive > archives ) throws Exception { List < URL > urls = new ArrayList < > ( 50 ) ; while ( archives . hasNext ( ) ) { urls . add ( archives . next ( ) . getUrl ( ) ) ; } return createClassLoader ( urls . toArray ( new URL [ 0 ] ) ) ; }
Create a classloader for the specified archives.
Create a classloader for the specified archives .