10 2017 档案
shell批量杀进程
摘要:ps aux |grep java |grep -v 'grep java'|awk {'print $2'}|xargs kill -9 ps aux |grep java 查询包含‘java’的进程|grep -v 'grep java' 过滤掉 grep java 进程 |awk {'prin
阅读全文
从输入流读取字节
摘要:public static byte[] readBytes(InputStream in) throws IOException { //读取字节的缓冲 byte[] buffer = new byte[1024]; //最终的数据 byte[] result = new byte[0]; int size = 0; while ((si...
阅读全文
maven分别打包开发、生产配置文件
摘要:项目工程针对开发和生产有两套配置,开发配置文件目录:src/main/resources/ applicationContext.xml (开发和生产共用) dubbo.properties (开发和生产不同) 生产配置文件目录:src/main/profile/product/ dubbo.pro
阅读全文