提交 c0aa5c5c 编写于 作者: Z zhourui

modify ResourceFactory

上级 e45f1ec8
......@@ -30,6 +30,7 @@ import com.x.base.core.project.config.DataServer;
import com.x.base.core.project.config.ExternalDataSource;
import com.x.base.core.project.logger.Logger;
import com.x.base.core.project.logger.LoggerFactory;
import com.x.base.core.project.tools.ClassLoaderTools;
import com.x.base.core.project.tools.DefaultCharset;
import com.x.base.core.project.tools.ListTools;
import com.x.server.console.node.EventQueueExecutor;
......@@ -43,7 +44,9 @@ public class ResourceFactory {
private static Logger logger = LoggerFactory.getLogger(ResourceFactory.class);
public static void bind() throws Exception {
try (ScanResult sr = new ClassGraph().enableAnnotationInfo().scan()) {
try (ScanResult sr = new ClassGraph()
.addClassLoader(ClassLoaderTools.urlClassLoader(true, false, true, true, true)).enableAnnotationInfo()
.scan()) {
node(sr);
containerEntities(sr);
containerEntityNames(sr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册