|
@@ -2,6 +2,7 @@ package com.test.hserver;
|
|
|
|
|
|
import top.hserver.HServerApplication;
|
|
import top.hserver.HServerApplication;
|
|
import top.hserver.core.ioc.annotation.HServerBoot;
|
|
import top.hserver.core.ioc.annotation.HServerBoot;
|
|
|
|
+import top.hserver.core.server.context.ConstConfig;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author hxm
|
|
* @author hxm
|
|
@@ -10,6 +11,7 @@ import top.hserver.core.ioc.annotation.HServerBoot;
|
|
public class StartApp {
|
|
public class StartApp {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
|
|
+ ConstConfig.workerPool=Runtime.getRuntime().availableProcessors();
|
|
HServerApplication.run(StartApp.class, 8888, args);
|
|
HServerApplication.run(StartApp.class, 8888, args);
|
|
}
|
|
}
|
|
}
|
|
}
|