mirror of
https://github.com/ZSCNetSupportDept/WechatTicketSystem.git
synced 2025-10-29 08:05:04 +08:00
no message
This commit is contained in:
@@ -37,7 +37,7 @@ public class APIRouter extends HttpServlet {
|
|||||||
|
|
||||||
public APIRouter() {
|
public APIRouter() {
|
||||||
try {
|
try {
|
||||||
ClassPath path = ClassPath.from(API.class.getClassLoader());
|
ClassPath path = ClassPath.from(getServletContext().getClassLoader());
|
||||||
Set<ClassPath.ClassInfo> classes = path.getTopLevelClassesRecursive(getClass().getPackage().getName());
|
Set<ClassPath.ClassInfo> classes = path.getTopLevelClassesRecursive(getClass().getPackage().getName());
|
||||||
for (ClassPath.ClassInfo info : classes) {
|
for (ClassPath.ClassInfo info : classes) {
|
||||||
Class<?> clz = info.load();
|
Class<?> clz = info.load();
|
||||||
|
|||||||
Reference in New Issue
Block a user