no message

This commit is contained in:
Sola
2016-03-25 04:41:42 +08:00
parent e20d550dfa
commit 3212a2fe04

View File

@@ -37,7 +37,7 @@ public class APIRouter extends HttpServlet {
public APIRouter() {
try {
ClassPath path = ClassPath.from(API.class.getClassLoader());
ClassPath path = ClassPath.from(getServletContext().getClassLoader());
Set<ClassPath.ClassInfo> classes = path.getTopLevelClassesRecursive(getClass().getPackage().getName());
for (ClassPath.ClassInfo info : classes) {
Class<?> clz = info.load();