博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

2014年3月12日

摘要: 1, unChecked Exception, represent a defect in programmer(bugs). should inherit RuntimeException or Error.Unchecked runtime exceptions represent conditions that, generally speaking, reflect errors in your program's logic and cannot be reasonably recovered from at run time.2, checked Exception,rep 阅读全文

posted @ 2014-03-12 20:00 钟悍 阅读(232) 评论(0) 推荐(0) 编辑

2014年3月7日

摘要: SELECT * FROM ( SELECT A.*, ROWNUM RN FROM (SELECT * FROM TABLE_NAME) A WHERE ROWNUM = 21 阅读全文

posted @ 2014-03-07 12:54 钟悍 阅读(124) 评论(0) 推荐(0) 编辑

2014年2月26日

摘要: select date_part('minute', now() - create_date) from employee;update employee set issue_efficiency=date_part('days', issue_complete_date - review_pass_date)*3600*24+date_part('hour', issue_complete_date - review_pass_date)*3600+date_part('minute', issue_complete_date 阅读全文

posted @ 2014-02-26 18:09 钟悍 阅读(1589) 评论(0) 推荐(0) 编辑

摘要: create or replace function setPassengerType(num varchar) returns varchar as $$ declare sql varchar; str varchar; re record; begin str=''; sql = 'select passenger_type from tops_order.passenger where flight_order_item_id=''' || num ||''''; for re in execute... 阅读全文

posted @ 2014-02-26 11:37 钟悍 阅读(7495) 评论(0) 推荐(0) 编辑

2014年1月24日

摘要: 让代码理解时间变短,而不是一味地追求代码行变短 -------------------《编写可读代码的艺术》 阅读全文

posted @ 2014-01-24 11:25 钟悍 阅读(198) 评论(0) 推荐(0) 编辑

2013年12月9日

摘要: import org.aspectj.lang.ProceedingJoinPoint;import org.aspectj.lang.annotation.Around;import org.aspectj.lang.annotation.Aspect;import org.perf4j.StopWatch;import org.perf4j.slf4j.Slf4JStopWatch;@Aspectpublic class OrderProfileAspect{ @Around("execution(* com.karl.controller..*.*(..)) || execut 阅读全文

posted @ 2013-12-09 11:33 钟悍 阅读(768) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2013-12-09 11:02 钟悍 阅读(402) 评论(0) 推荐(0) 编辑

摘要: classpath*:jdbc.properties 阅读全文

posted @ 2013-12-09 10:40 钟悍 阅读(364) 评论(0) 推荐(0) 编辑

2013年11月29日

摘要: JSON.stringify(result) 阅读全文

posted @ 2013-11-29 21:12 钟悍 阅读(156) 评论(0) 推荐(0) 编辑

摘要: 常用命令:从本地git仓库中导出工作文件 git checkout查看历史 git log filenamegit log -p #查看每个阶段的具体差异git log --stat --summary #查看改变的概述查看某次提交的文件内容git show commit-name:filename #commit-name来源于git log 的每个条目的第一行增加新文件 git add newfile #执行完此操作后,newfile处于待提交状态,执行git rm --cached newfile,退回到工作目录git commit newfile提交更改 git commit file 阅读全文

posted @ 2013-11-29 11:18 钟悍 阅读(1795) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页