三种Singleton的实现方式
摘要:来源:http://melin.iteye.com/blog/838258 三种Singleton的实现方式,一种是用大家熟悉的DCL,另外两种使用cas特性来实现。
阅读全文
posted @
2016-11-26 17:05
猿人谷
阅读(839)
推荐(0) 编辑
mysql解决Value ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp
摘要:同步发布:http://www.yuanrengu.com/index.php/mysqlsolvetimestamp.html 在使用mysql时,如果数据库中的字段类型是timestamp,默认为0000-00-00,会发生异常:Value ‘0000-00-00 00:00:00’ can n
阅读全文
posted @
2016-11-21 17:41
猿人谷
阅读(2785)
推荐(1) 编辑