随笔分类 -  工作积累

摘要:1 全局保存websocket的通道 NettyConfig.java 2 WebsocketHandler.java 接收处理响应 客户端发来的消息 3 初始化连接时候的各个组件 4 启动服务 5 客户端连接服务 6 也可以用java连接websocket服务 7 netty 和websocket 阅读全文
posted @ 2018-05-31 14:43 冬天不眠 阅读(607) 评论(0) 推荐(0)
摘要:利用js图片请求地址上报错误信息 var img = new Image(); img.src="";//请求地址 好处:异步执行,不阻碍js线程继续执行! 阅读全文
posted @ 2018-05-09 14:57 冬天不眠 阅读(318) 评论(0) 推荐(0)
摘要://** poi jar包//public class ReadExcel { @SuppressWarnings("static-access") private static String getValue(HSSFCell hssfCell) { if (hssfCell.getCellType() == hssfCell.CELL_TY... 阅读全文
posted @ 2017-10-27 10:20 冬天不眠 阅读(1645) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-10-10 10:16 冬天不眠 阅读(174) 评论(0) 推荐(0)
摘要:1 配置文件 application.properties #server server.port=8090 server.address=127.0.0.1 server.session.timeout=1800 server.error.whitelabel.enabled=true #myba 阅读全文
posted @ 2017-09-11 20:05 冬天不眠 阅读(793) 评论(0) 推荐(0)
摘要:https://github.com/opendigg/awesome-github-vue 阅读全文
posted @ 2017-05-12 17:11 冬天不眠 阅读(145) 评论(0) 推荐(0)
摘要:/** * * @param out 输出流 * @param maplist 数据 * @param title 标题 * @param headers 表头 * @param keys 表头对应的字段名 * @return */ public static boolean getExcelDao(Out... 阅读全文
posted @ 2016-08-26 12:00 冬天不眠 阅读(466) 评论(0) 推荐(0)
摘要:java类继承TagSupport /** * 输出两个数的和 * @author sys * */public class TestTag extends TagSupport{ /** * */ private static final long serialVersionUID = 1L; p 阅读全文
posted @ 2016-08-23 11:25 冬天不眠 阅读(138) 评论(0) 推荐(0)
摘要:前台页面怎么用? 阅读全文
posted @ 2016-08-22 09:24 冬天不眠 阅读(765) 评论(0) 推荐(0)
摘要:生成二维码 @RequestMapping("/123") public void test(HttpServletRequest request,HttpServletResponse response){ // TODO Auto-generated method stub int width= 阅读全文
posted @ 2016-08-22 09:10 冬天不眠 阅读(249) 评论(0) 推荐(0)
摘要:百度百科说: Nginx ("engine x") 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器。Nginx是由Igor Sysoev为俄罗斯访问量第二的Rambler.ru站点开发的,第一个公开版本0.1.0发布于2004年10月4日。其将源代码以类BSD许可 阅读全文
posted @ 2016-08-15 17:30 冬天不眠 阅读(166) 评论(0) 推荐(0)