Skip to content

Commit

Permalink
✨ 开始 2.7.18-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
li-xunhuan committed Oct 30, 2023
1 parent 04d77ea commit 92d1bfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=2.7.17.1
VERSION=2.7.18-SNAPSHOT
GROUPID=net.dreamlu

org.gradle.caching=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* @author L.cm
*/
public class ResourceUtil extends org.springframework.util.ResourceUtils {
public static final String HTTP_REGEX = "^https?:.+$";
public static final String FTP_URL_PREFIX = "ftp:";

/**
Expand All @@ -49,7 +48,8 @@ public class ResourceUtil extends org.springframework.util.ResourceUtils {
public static Resource getResource(String resourceLocation) throws IOException {
Assert.notNull(resourceLocation, "Resource location must not be null");
if (resourceLocation.startsWith(CLASSPATH_URL_PREFIX)) {
return new ClassPathResource(resourceLocation);
String path = resourceLocation.substring(CLASSPATH_URL_PREFIX.length());
return new ClassPathResource(path);
}
if (resourceLocation.startsWith(FTP_URL_PREFIX)) {
return new UrlResource(resourceLocation);
Expand Down

0 comments on commit 92d1bfb

Please sign in to comment.