摘要: https://github.com/alibaba/p3c/tree/master/p3c-formatter 1、代码模板(含注释等) 2、代码格式化 阅读全文
posted @ 2019-02-13 17:04 遥远2 阅读(187) 评论(0) 推荐(0)
摘要: 阿里规范要求的标准做法2 hutool创建ThreadFactory 输出: 15:11:16.098 test-pool-0 15:11:16.098 test-pool-1 15:11:16.098 test-pool-2 15:11:18.101 test-pool-1 15:11:18.10 阅读全文
posted @ 2019-02-13 15:16 遥远2 阅读(434) 评论(0) 推荐(0)
摘要: 创建线程池,阿里规范插件要求: 1、采用ThreadPoolExecutor,而不是Executors 2、采用自定义ThreadFactory,便于为线程命名。 输出: ThreadTest1ThreadTest2ThreadTest32019-02-13 14:21:34.263 [] INFO 阅读全文
posted @ 2019-02-13 14:27 遥远2 阅读(339) 评论(0) 推荐(0)
摘要: https://github.com/weibocom/motan/wiki/zh_quickstart#%E7%AE%80%E5%8D%95%E8%B0%83%E7%94%A8%E7%A4%BA%E4%BE%8B 实现了 1、rpc(同步、异步) 2、rest 3、集群(注册中心:zk 或 con 阅读全文
posted @ 2019-02-13 09:40 遥远2 阅读(144) 评论(0) 推荐(0)