2018-06-04 11:23
@lyh061619
调stop时给人家删除掉, 不好吧? 我觉得可以增加一个remove方法.
重复开启/关闭, 会报异常 ?
这个有测试用例吗?
调用Scheduler时, 它自己有锁的synchronized (lock)
我这多线程乱调没发现问题在哪里了
2018-05-29 22:25
@libofei http://maven.aliyun.com/nexus/#nexus-search;quick~tio-websocket-server
2018-05-29 21:01
@libofei 看官网嘛! 没什么可比的, 自己看看代码, 看喜欢哪个风格, 这些框架对于业务来说都能实现, 就看用的爽不爽了 ......
https://t-io.org/blog/index.html?p=%2Fblog%2Ftio%2Fws%2Fshowcase.html
2018-05-29 18:31
@耿少卿 你看源码中取值的代码就知道了
public static String getWebRootPath() {
if (webRootPath == null) {
webRootPath = detectWebRootPath();
}
return webRootPath;
}
// 注意:命令行返回的是命令行所在路径的上层的上层路径
private static String detectWebRootPath() {
try {
String path = PathKit.class.getResource("/").toURI().getPath();
return new File(path).getParentFile().getParentFile().getCanonicalPath();
} catch (Exception e) {
throw new RuntimeException(e);
}
}