This commit is contained in:
Redkale
2019-01-03 18:38:07 +08:00
parent aedd215de4
commit cfca7adc66

View File

@@ -161,7 +161,7 @@ public class HttpResourceServlet extends HttpServlet {
} }
} }
public void serRoot(String rootstr) { public void setRoot(String rootstr) {
if (rootstr == null) return; if (rootstr == null) return;
try { try {
this.root = new File(rootstr).getCanonicalFile(); this.root = new File(rootstr).getCanonicalFile();
@@ -170,7 +170,7 @@ public class HttpResourceServlet extends HttpServlet {
} }
} }
public void serRoot(File file) { public void setRoot(File file) {
if (file == null) return; if (file == null) return;
try { try {
this.root = file.getCanonicalFile(); this.root = file.getCanonicalFile();