上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 45 下一页
摘要: 1. js模拟休眠方法: function sleep(d){ for(var t = Date.now();Date.now() - t 是项目列表,是列表项,项目列表就是用符号来列的,所以你列出来默认的就是黑点啦,还有一个是这个是编号列表,用数字来列的,也是用做 列表项(ab)。3.... 阅读全文
posted @ 2015-06-27 11:20 Jtianlin 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1. this和$(this)的区别 this.title = "Test"; this其实是一个Html元素(textbox), textbox有text属性,所以这样写是完全没有什么问题的。 $(this).attr(’title’, ‘Test’); $(this)是一个JQuery对... 阅读全文
posted @ 2015-06-21 21:16 Jtianlin 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 日志最佳实战 1. logback 2. 开发debug,生产info , 异常error 3. 使用self4j的占位符方式输入日志。多个参数输出,参数项使用数组的形式。举例 : logger.debug("Processing trade with id: {} and symbol : {} 阅读全文
posted @ 2015-06-09 17:24 Jtianlin 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 1. 加载配置文件public static String getConfig(String fileName) { StringBuilder sb = new StringBuilder(); InputStream in = null; ... 阅读全文
posted @ 2015-06-05 16:59 Jtianlin 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1. 编码错乱导致CRT死机2. 选择CRT上面的页面名称 -- > 右键 -- > Session Options --> Apperance --> Character encoding 中选择编码方式,可以修改当前窗口的编码方式,之后操作 显示的内容的编码方式即为修改后的编码方式。3. 使用... 阅读全文
posted @ 2015-05-30 14:50 Jtianlin 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1. 客户端要主动去连接:channel.connect(new InetSocketAddress("localhost",8888)); //用channel.finishConnect();才能完成连接2. 客户端的阻塞配置放到连接前面:socketClient.configureBlocki... 阅读全文
posted @ 2015-05-24 18:32 Jtianlin 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1. ibatis和mybatis中$与#的区别: 对于变量部分, 应当使用#, 这样可以有效的防止sql注入, 未来,# 都是用到了prepareStement,这样对效率也有一定的提升。 $只是简单的字符拼接而已,对于非变量部分, 那只能使用$, 实际上, 在很多场合,$也是有很多实际意义的... 阅读全文
posted @ 2015-05-23 18:56 Jtianlin 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1. 检查是否为上传文件。 2. 通过HandlerMapping获取HandlerExecutionChain: DispatcherServlet 中包含:handlerMappings , 遍历获取正确的:HandlerMapping(RequestMappingHandlerMapping  阅读全文
posted @ 2015-05-23 18:13 Jtianlin 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://www.oschina.net/question/84460_9608 孔浩视频1. 几个关键类: RequestMappingHandlerMapping 和 RequestMappingHandlerAdapter 替代 DefaultAnnoationH... 阅读全文
posted @ 2015-05-23 17:41 Jtianlin 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 本文转自:http://www.cnblogs.com/dolphin0520/p/3923167.htmlJava并发编程:Lock 在上一篇文章中我们讲到了如何使用关键字synchronized来实现同步访问。本文我们继续来探讨这个问题,从Java 5之后,在java.util.concurr... 阅读全文
posted @ 2015-05-23 15:21 Jtianlin 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 45 下一页