digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 32 33 34 35 36

2014年12月26日

摘要: 调查一列bug,偶然发现了update的一个特性:update t set a=a+1 where id=4; 这样一条简单的语句,也会发生让人意外的事情:如果 a 的初始值为null时,无论你update多少次,a 的值始终是 null !!!!!!直接上图:测试了一下 mysql, sql se... 阅读全文
posted @ 2014-12-26 21:38 digdeep 阅读(657) 评论(0) 推荐(0) 编辑

摘要: Java使用正则表达式提取字符串中的数字 阅读全文
posted @ 2014-12-26 14:02 digdeep 阅读(40246) 评论(0) 推荐(1) 编辑

摘要: 使用spring的@DateTimeFormat来格式化Date类型时,报错:org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 error... 阅读全文
posted @ 2014-12-26 13:53 digdeep 阅读(1644) 评论(0) 推荐(0) 编辑

摘要: 一般我们经常需要在将服务器端的Date类型,传到页面进行显示,这就涉及到一个如何格式化显示Date类型的问题,一般我们有三种方式进行:1)在服务端使用SimpleDateFormat等类格式化成字符串,然后传给客户端,这样的话,需要将Date类型修改为String,或者增加一个String字段专门保... 阅读全文
posted @ 2014-12-26 13:44 digdeep 阅读(5771) 评论(0) 推荐(0) 编辑

2014年12月20日

摘要: 在看阿里员工写的开源数据库连接池的druid的源代码时,发现了其中在jquery的原代码中又定义了一个命名空间的函数:$.namespace(),其代码如下:网址为:https://github.com/alibaba/druid/blob/master/src/main/resources/sup... 阅读全文
posted @ 2014-12-20 22:26 digdeep 阅读(17964) 评论(1) 推荐(5) 编辑

2014年12月17日

摘要: jsonp跨域原理 cors跨域 阅读全文
posted @ 2014-12-17 18:23 digdeep 阅读(14705) 评论(0) 推荐(10) 编辑

2014年12月16日

摘要: 在使用mysqldump导出一份建库脚本是,发生了下面的错误:当执行 desc table_name; 时也报错:tag为表名,show index from tag;倒是可以执行。其实真正的错误原因是:Couldn't execute 'show fileds from table' 不能查看表的... 阅读全文
posted @ 2014-12-16 23:10 digdeep 阅读(6723) 评论(0) 推荐(0) 编辑

2014年12月14日

摘要: org.apache.jasper.JasperException: Unable to compile class for JSP 阅读全文
posted @ 2014-12-14 17:00 digdeep 阅读(2170) 评论(0) 推荐(0) 编辑

2014年12月9日

摘要: 从08年毕业工作开始写博客,这些年前前后后在不少网站留下过痕迹。由于各种原因,从这里搬到那里,又从那里搬到这里,折腾来折腾去,无非是想找到个既舒服,有方便,而且灵活,又有人气的地方。现在又来到了博客园,希望是我的最后一次搬家^_^我使用过和还在使用的博客地址:0) itpub: http://blo... 阅读全文
posted @ 2014-12-09 20:46 digdeep 阅读(591) 评论(0) 推荐(0) 编辑

上一页 1 ··· 32 33 34 35 36
不懂数据库和Web安全的架构师不是一个好的程序员。