2015年9月7日

Java 浅复制和深复制

摘要: 概念浅复制:将一个对象复制后,基本数据类型的变量都会重新创建,而引用类型,指向的还是原对象所指向的。深复制:将一个对象复制后,不论是基本数据类型还有引用类型,都是重新创建的。简单来说,就是深复制进行了完全彻底的复制,而浅复制不彻底。例子 1 import java.io.ByteArrayInput... 阅读全文

posted @ 2015-09-07 17:28 梅山民 阅读(206) 评论(0) 推荐(0) 编辑

ExtJS Pie Chart: Define slices colors

摘要: BackgroundWhile using Pie Chart of ExtJS, you may want to define every slice yourself.ExtJS VersionExtJS 5.1.0Code 1 xtype: 'polar', 2 … ... 3 series:... 阅读全文

posted @ 2015-09-07 14:46 梅山民 阅读(216) 评论(0) 推荐(0) 编辑

Oracle Database - ORA-01720 - grant option does not exist for 'AnObject'

摘要: Description当一个不是 MY_TABLE 这个表的 Owner - NOT_OWNER_USER 试图 grant MY_TABLE 的权限时,报错:Error report:SQL Error: ORA-01720: grant option does not exist for 'OW... 阅读全文

posted @ 2015-09-07 10:17 梅山民 阅读(1005) 评论(0) 推荐(0) 编辑

2015年9月4日

Oracle常用查看表结构命令

摘要: 获取表select table_name from user_tables; //当前用户的表select table_name from all_tables; //所有用户的表select table_name from dba_tables; //包括系统表select table_name ... 阅读全文

posted @ 2015-09-04 13:30 梅山民 阅读(4185) 评论(0) 推荐(0) 编辑

2015年9月2日

Oracle 去掉Tab,回车,空格符

摘要: SQL1 update bd_prod_cate c set c.cate_name = replace(c.cate_name,chr(9),'')//去掉tab符号的2 update bd_prod_cate c set c.cate_name = replace(c.cate_name,chr... 阅读全文

posted @ 2015-09-02 15:21 梅山民 阅读(2947) 评论(0) 推荐(0) 编辑

2015年8月26日

ExtJS 4.2: No separator in header of grid in IE11

摘要: DescriptionSee screenshot hereCaused ByCSS ‘.x-column-header-inner’ and ‘.x-grid-header-ct’ in ext-theme-classic-all.css cannot display the same in IE... 阅读全文

posted @ 2015-08-26 14:08 梅山民 阅读(297) 评论(0) 推荐(0) 编辑

Apache POI CellStyle cloneStyleFrom

摘要: 问题描述在使用 Apache POI-3.8的时候,需要一个功能,就是处理上传得 Excel的 cell style。如果数据有错误,则标红或者加上其他 style 标识。但是当直接获取到 cell 的 style 进行处理后,再 set 回去会发现很多其他的 cell 的 style 也被修改了。... 阅读全文

posted @ 2015-08-26 10:59 梅山民 阅读(8142) 评论(1) 推荐(0) 编辑

2015年8月25日

[转载] ORACLE 多表关联 UPDATE 语句

摘要: 为了方便起见,建立了以下简单模型,和构造了部分测试数据:在某个业务受理子系统BSS中,SQL 代码1 --客户资料表2 create table customers3 (4 customer_id number(8) not null, -- 客户标示5 city_name varchar2(10)... 阅读全文

posted @ 2015-08-25 10:41 梅山民 阅读(299) 评论(0) 推荐(0) 编辑

2015年7月3日

[转载] Logging Standard Exceptions with Spring AOP

摘要: Logging Standard Exceptions with Spring AOPPosted by Tejus Parikh on May 18, 2011One of the challenges of working on a large system with multiple deve... 阅读全文

posted @ 2015-07-03 13:52 梅山民 阅读(308) 评论(0) 推荐(0) 编辑

2014年10月15日

ExtJS5 Tab Panel 第一个 Tab不显示

摘要: 问题描述使用 ExtJS5 编写界面时,创建了一个 Tab Panel,并在两个 Tab中添加了 Grid和一些 Button等组件。完成之后在 Chrome中可以完全正常显示,在 IE中却显示不出第一个 Tab中的 Grid(其余 Button等组件可以正常显示),而且页面不报错。解决方法可能是 ... 阅读全文

posted @ 2014-10-15 16:27 梅山民 阅读(477) 评论(0) 推荐(0) 编辑

导航