This commit is contained in:
Redkale
2017-06-06 09:43:31 +08:00
parent 43f9f50f4c
commit 6421bc2851
4 changed files with 25 additions and 18 deletions

View File

@@ -90,7 +90,7 @@ public abstract class NodeServer {
this.resourceFactory = application.getResourceFactory().createChild();
this.server = server;
this.logger = Logger.getLogger(this.getClass().getSimpleName());
this.classLoader = new RedkaleClassLoader(Thread.currentThread().getContextClassLoader());
this.classLoader = new RedkaleClassLoader(application.getServerClassLoader());
Thread.currentThread().setContextClassLoader(this.classLoader);
}