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

2012年7月13日

摘要: 同事欧洲游记http://bbs.qyer.com/viewthread.php?tid=639769 阅读全文

posted @ 2012-07-13 15:12 钟悍 阅读(138) 评论(0) 推荐(0) 编辑

2012年6月27日

摘要: packagecom.test.karl.tools;classStatisticsimplementsRunnable{publicvoidrun(){while(true){Stringmessage="start:"+Loadgen.numOfStart.get()+"fail:"+Loadgen.numOfFail.get()+"Finished:"+Loadgen.numOfFinished.get()+"succeedrequests:"+Loadgen.successedRequest.get()+& 阅读全文

posted @ 2012-06-27 18:08 钟悍 阅读(598) 评论(0) 推荐(0) 编辑

2012年6月20日

摘要: <projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com 阅读全文

posted @ 2012-06-20 17:31 钟悍 阅读(304) 评论(0) 推荐(0) 编辑

摘要: FirstMavenProject1, create project:mvn archetype:create -DgroupId=com.karl.learn -DartifactId=FirstMavenProject -DpackageName=com.karl.learn -Dversion=1.02, create eclipse project:mvn eclipse:eclipse3, import your project into eclipse4, if you want to use a third-part package, but you don't know 阅读全文

posted @ 2012-06-20 17:25 钟悍 阅读(190) 评论(0) 推荐(0) 编辑

2012年6月7日

摘要: 1TraceEnableon2RewriteEngineOn3Rewritecond%{QUERY_STRING}oin=([\S]+)&id=([\S]+)4RewriteRule^/service/([\S]+).xml/service/%2/$1.xml?origin=%15RewriteLog"/var/log/httpd/rewrite.log"6 RewriteLogLevel 5line 3:匹配query_string 中的两个参数line 4:%1, %2 获取匹配到query_string 中的两个参数 $1 获取匹配到URL中的第一个参数lin 阅读全文

posted @ 2012-06-07 16:15 钟悍 阅读(217) 评论(0) 推荐(0) 编辑

2011年11月3日

摘要: 1packagekarl.test;23importjava.util.Iterator;4importjava.util.Set;5importjava.util.TreeSet;67publicclassTest{8privatestaticSet<String>set=newTreeSet<String>();910publicstaticStringsort(Stringprex,Stringstr){11booleanflag=true;12intlen=str.length();13if(str.length()==1){14set.add(prex+str 阅读全文

posted @ 2011-11-03 23:07 钟悍 阅读(350) 评论(0) 推荐(0) 编辑

2011年11月2日

摘要: packagekarl.test.threadpool;importjava.util.concurrent.Callable;importjava.util.concurrent.CompletionService;importjava.util.concurrent.ExecutionException;importjava.util.concurrent.ExecutorCompletionService;importjava.util.concurrent.ExecutorService;importjava.util.concurrent.Executors;publicclassC 阅读全文

posted @ 2011-11-02 10:28 钟悍 阅读(337) 评论(0) 推荐(0) 编辑

2011年11月1日

摘要: 1packagecom.karl.test;23publicclassTestEnum{45publicenumColorSelect{6red,green,yellow,blue;7}89publicenumSeason{10spring,summer,fall,winter;11privatefinalstaticStringlocation="Phoenix";1213publicstaticSeasongetBest(){14if(location.endsWith("Phoenix"))15returnwinter;16else17return 阅读全文

posted @ 2011-11-01 22:00 钟悍 阅读(257) 评论(0) 推荐(0) 编辑

摘要: /*** 被拦截的方法* /@Interceptors(CAProxyExceptionInterceptor.class)publicvoidprocessMessage(NotificationMessagemsg)throwsException{ //todo}/*** 执行拦截的类* /publicclassCAProxyExceptionInterceptor{ /** * 拦截方法 */ @AroundInvokepublicObjecthandleException(InvocationContextctx)throwsException{ Objecto=nul... 阅读全文

posted @ 2011-11-01 16:56 钟悍 阅读(261) 评论(0) 推荐(0) 编辑

摘要: publicvoiddisableExpireDeviceIds(List<String>deviceIds){Queryq=entityManager.createQuery("UPDATECADeviceEntitySETstatus=0WHEREdeviceIdin(:deviceIds)");q.setParameter("deviceIds",deviceIds);q.executeUpdate();LOGGER.debug("CAProxyDeviceDbMangerImpl.disableExpireDevice&qu 阅读全文

posted @ 2011-11-01 16:46 钟悍 阅读(385) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 下一页