2014年8月27日

rmi

摘要: http://docs.oracle.com/javase/6/docs/platform/rmi/spec/rmi-arch3.htmlaremote objectis one whose methods can be invoked from another Java virtual machi... 阅读全文

posted @ 2014-08-27 20:11 starfuxks 阅读(116) 评论(0) 推荐(0)

2014年8月11日

jersey文件上传

摘要: 使用ContainerRequestFilter后,ContainerRequest中的contenttype会因为从httpServletRequest到ContainerRequest的转换丢失,所以会出现文件上传种种奇怪的问题。只有去掉相应的filter才可以 阅读全文

posted @ 2014-08-11 15:51 starfuxks 阅读(195) 评论(0) 推荐(0)

2014年8月7日

多线程

摘要: multithreading,multiprocessingBlock multi-threading:context switching意味着从现有的寄存器集切换到另一套Interleaved multithreading:similar to preemptive multitasking,mo... 阅读全文

posted @ 2014-08-07 00:15 starfuxks 阅读(156) 评论(0) 推荐(0)

2014年7月19日

算法书

摘要: Algorithms in C++ 阅读全文

posted @ 2014-07-19 10:57 starfuxks 阅读(98) 评论(0) 推荐(0)

2014年7月14日

jersey使用json输出,但是少了produces(mediaType.application_json的后果

摘要: 很难发现,出现的错误有1.JAXB. IllegalAnnotationExceptions2. or any of its super class is known to this context很容易以为是别的错误,实际上就是缺少@Produces(MediaType.APPLICATION_J... 阅读全文

posted @ 2014-07-14 21:00 starfuxks 阅读(3842) 评论(0) 推荐(0)

2014年7月3日

优秀api鉴赏

摘要: http://codeplanet.io/principles-good-restful-api-design/hateoashttp://en.wikipedia.org/wiki/HATEOAShttp://en.wikipedia.org/wiki/RSDLhttp://www.doc88.c... 阅读全文

posted @ 2014-07-03 00:28 starfuxks 阅读(210) 评论(0) 推荐(0)

2014年6月30日

ActiveMQ的receiveNoWait

摘要: Pending Queue Size ­ The number of messages in the queue that have yet to bedelivered to any clientDispatched Counter ­ The number of message in the q... 阅读全文

posted @ 2014-06-30 11:54 starfuxks 阅读(1299) 评论(0) 推荐(0)

2014年6月9日

midpoint

摘要: http://stackoverflow.com/questions/4844165/safe-integer-middle-value-formula求两个数中值 阅读全文

posted @ 2014-06-09 12:03 starfuxks 阅读(159) 评论(0) 推荐(0)

2014年6月6日

a

摘要: @Select({ "SELECT SUM(amount) AS total", "FROM recharge_log", "WHERE", "flag=1 AND payType=#{payType}", "AND su... 阅读全文

posted @ 2014-06-06 11:03 starfuxks 阅读(95) 评论(0) 推荐(0)

2014年5月22日

cas

摘要: CAS,当oldVal与expected相同时,将oldVal更新为newVal,原子操作ABA problem:when a location is read twice, has the same value for both reads, and "value is same“ is used... 阅读全文

posted @ 2014-05-22 17:44 starfuxks 阅读(143) 评论(0) 推荐(0)

导航