Browse Source

添加注释

James 5 years ago
parent
commit
07e5f8d2de
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/main/java/com/jfinal/core/PathScanner.java

+ 3 - 1
src/main/java/com/jfinal/core/PathScanner.java

@@ -92,7 +92,9 @@ public class PathScanner {
 	private List<URL> getResources() throws IOException {
 		List<URL> ret = new ArrayList<>();
 		
-		Set<String> urlSet = new HashSet<>();			// 用于去除重复
+		// 用于去除重复
+		Set<String> urlSet = new HashSet<>();
+		// ClassLoader.getResources(...) 参数只支持包路径分隔符为 '/',而不支持 '\'
 		Enumeration<URL> urls = getClassLoader().getResources(basePackage);
 		while (urls.hasMoreElements()) {
 			URL url = urls.nextElement();