|
|
|
@ -55,18 +55,32 @@
|
|
|
|
|
|
|
|
|
|
目前动态线程池功能已经完成,大家可以直接把代码拉到本地运行
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
> 项目数据库连接是作者个人 ECS Docker 搭建的 MySQL,防君子不防小人,大家直接使用即可
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
启动 server 模块下 ServerApplication 启动类
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
启动 example 模块下 ExampleApplication 启动类
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
可以通过调用接口修改线程池配置
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
修改请求如下,**在做示例时不要改动 namespace、itemId、tpId**
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
POST http://localhost:6691/v1/cs/configs
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"namespace": "common",
|
|
|
|
@ -83,6 +97,10 @@ POST http://localhost:6691/v1/cs/configs
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
并观察 example 控制台日志输出,日志输出包括不限于此信息即为成功
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
接口调用成功后,观察 example 控制台日志输出,日志输出包括不限于此信息即为成功
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
[🚀] Changed thread pool. coreSize :: x, maxSize :: x, queueType :: x, capacity :: x, keepAliveTime :: x
|
|
|
|
|