mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
FileURL correct format is file:// not file:/
This commit is contained in:
@@ -231,7 +231,7 @@ public class ConfigFilter extends FilterAdapter {
|
||||
InputStream inStream = null;
|
||||
try {
|
||||
boolean xml = false;
|
||||
if (filePath.startsWith("http://") || filePath.startsWith("https://") || filePath.startsWith("file:/")) {
|
||||
if (filePath.startsWith("http://") || filePath.startsWith("https://") || filePath.startsWith("file://")) {
|
||||
URL url = new URL(filePath);
|
||||
inStream = url.openStream();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user