blogjava-凯发k8网页登录

blogjava-凯发k8网页登录http://www.blogjava.net/aoxj/我和我追逐的梦zh-cnsat, 08 apr 2023 20:40:19 gmtsat, 08 apr 2023 20:40:19 gmt60使用javap命令查看编译版本信息http://www.blogjava.net/aoxj/archive/2013/02/17/395349.htmlsky aosky aosun, 17 feb 2013 07:50:00 gmthttp://www.blogjava.net/aoxj/archive/2013/02/17/395349.htmlhttp://www.blogjava.net/aoxj/comments/395349.htmlhttp://www.blogjava.net/aoxj/archive/2013/02/17/395349.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/395349.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/395349.html阅读全文

sky ao 2013-02-17 15:50
]]>
编码最佳实践(6)--那些年,我们一起建的索引http://www.blogjava.net/aoxj/archive/2013/01/04/393738.htmlsky aosky aofri, 04 jan 2013 04:08:00 gmthttp://www.blogjava.net/aoxj/archive/2013/01/04/393738.htmlhttp://www.blogjava.net/aoxj/comments/393738.htmlhttp://www.blogjava.net/aoxj/archive/2013/01/04/393738.html#feedback1http://www.blogjava.net/aoxj/comments/commentrss/393738.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/393738.html阅读全文

sky ao 2013-01-04 12:08
]]>
编码最佳实践(5)--小心!这只是冰山一角http://www.blogjava.net/aoxj/archive/2012/09/06/387170.htmlsky aosky aothu, 06 sep 2012 07:09:00 gmthttp://www.blogjava.net/aoxj/archive/2012/09/06/387170.htmlhttp://www.blogjava.net/aoxj/comments/387170.htmlhttp://www.blogjava.net/aoxj/archive/2012/09/06/387170.html#feedback1http://www.blogjava.net/aoxj/comments/commentrss/387170.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/387170.html阅读全文

sky ao 2012-09-06 15:09
]]>
解决drupal的globalrediect模块的重定向循环问题http://www.blogjava.net/aoxj/archive/2012/07/11/382755.htmlsky aosky aotue, 10 jul 2012 23:28:00 gmthttp://www.blogjava.net/aoxj/archive/2012/07/11/382755.htmlhttp://www.blogjava.net/aoxj/comments/382755.htmlhttp://www.blogjava.net/aoxj/archive/2012/07/11/382755.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/382755.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/382755.html
结果安装完成之后就陷入重定向循环了,每个页面都被重定向到新地址,然后新地址再次被重定向。chrome浏览器会稍后报错说太多重定向,而ie则傻傻的一直在死循环。   

sky ao 2012-07-11 07:28
]]>
java university 网站开通过程吐糟http://www.blogjava.net/aoxj/archive/2012/06/24/381366.htmlsky aosky aosun, 24 jun 2012 02:34:00 gmthttp://www.blogjava.net/aoxj/archive/2012/06/24/381366.htmlhttp://www.blogjava.net/aoxj/comments/381366.htmlhttp://www.blogjava.net/aoxj/archive/2012/06/24/381366.html#feedback3http://www.blogjava.net/aoxj/comments/commentrss/381366.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/381366.html阅读全文

sky ao 2012-06-24 10:34
]]>
编码最佳实践(4)--小心linkedhashmap的get()方法http://www.blogjava.net/aoxj/archive/2012/06/18/381001.htmlsky aosky aomon, 18 jun 2012 04:31:00 gmthttp://www.blogjava.net/aoxj/archive/2012/06/18/381001.htmlhttp://www.blogjava.net/aoxj/comments/381001.htmlhttp://www.blogjava.net/aoxj/archive/2012/06/18/381001.html#feedback1http://www.blogjava.net/aoxj/comments/commentrss/381001.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/381001.html阅读全文

sky ao 2012-06-18 12:31
]]>
编码最佳实践(3)--尽量重用昂贵的初始化对象http://www.blogjava.net/aoxj/archive/2012/06/17/380974.htmlsky aosky aosun, 17 jun 2012 15:02:00 gmthttp://www.blogjava.net/aoxj/archive/2012/06/17/380974.htmlhttp://www.blogjava.net/aoxj/comments/380974.htmlhttp://www.blogjava.net/aoxj/archive/2012/06/17/380974.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/380974.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/380974.html阅读全文

sky ao 2012-06-17 23:02
]]>
编码最佳实践(2)--推荐使用concurrent包中的atomic类http://www.blogjava.net/aoxj/archive/2012/06/16/380926.htmlsky aosky aosat, 16 jun 2012 09:54:00 gmthttp://www.blogjava.net/aoxj/archive/2012/06/16/380926.htmlhttp://www.blogjava.net/aoxj/comments/380926.htmlhttp://www.blogjava.net/aoxj/archive/2012/06/16/380926.html#feedback5http://www.blogjava.net/aoxj/comments/commentrss/380926.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/380926.html阅读全文

sky ao 2012-06-16 17:54
]]>
编码最佳实践(1)--小心"数据溢出"http://www.blogjava.net/aoxj/archive/2012/06/09/380425.htmlsky aosky aosat, 09 jun 2012 15:27:00 gmthttp://www.blogjava.net/aoxj/archive/2012/06/09/380425.htmlhttp://www.blogjava.net/aoxj/comments/380425.htmlhttp://www.blogjava.net/aoxj/archive/2012/06/09/380425.html#feedback2http://www.blogjava.net/aoxj/comments/commentrss/380425.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/380425.html
这些问题,单个看每个问题都不算复杂或高深,但是都是在实际项目开发中出现并一度造成困扰的,而且带有一定的普适性,具体表现为不知道这些问题的同学很容易在日常开发中中招。因此我们开了一个专题,叫做编码最佳实践,似乎名字起的有点大......

先来看看第一个,如何做compare。  

sky ao 2012-06-09 23:27
]]>
解决jetty下el版本冲突的问题http://www.blogjava.net/aoxj/archive/2012/05/25/379086.htmlsky aosky aothu, 24 may 2012 23:11:00 gmthttp://www.blogjava.net/aoxj/archive/2012/05/25/379086.htmlhttp://www.blogjava.net/aoxj/comments/379086.htmlhttp://www.blogjava.net/aoxj/archive/2012/05/25/379086.html#feedback2http://www.blogjava.net/aoxj/comments/commentrss/379086.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/379086.html
javax.el.expressionfactory.newinstance()ljavax/el/expressionfactory;

检查了一下,发现javax.el.expressionfactory.newinstance()这个方法是el2.2版本之后才有的方法,而在el2.1之中是没有这个方法的,问题很明显:org.apache.jasper中试图调用2.2版本的el,当时提供的el的版本是2.1版本,所以解决的方式无非就是两个,要不降低org.apache.jasper的版本,要不提升el的版本。考虑到现在使用的jetty已经是最新的版本8.1.2.v20120308,因此提升el的版本为2.2更为合适。  

sky ao 2012-05-25 07:11
]]>
解决jenkins执行sonar时重复执行两次test的问题http://www.blogjava.net/aoxj/archive/2012/02/14/369936.htmlsky aosky aotue, 14 feb 2012 06:53:00 gmthttp://www.blogjava.net/aoxj/archive/2012/02/14/369936.htmlhttp://www.blogjava.net/aoxj/comments/369936.htmlhttp://www.blogjava.net/aoxj/archive/2012/02/14/369936.html#feedback5http://www.blogjava.net/aoxj/comments/commentrss/369936.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/369936.html阅读全文

sky ao 2012-02-14 14:53
]]>
搜索maven依赖的网站推荐http://www.blogjava.net/aoxj/archive/2011/12/02/365392.htmlsky aosky aofri, 02 dec 2011 08:06:00 gmthttp://www.blogjava.net/aoxj/archive/2011/12/02/365392.htmlhttp://www.blogjava.net/aoxj/comments/365392.htmlhttp://www.blogjava.net/aoxj/archive/2011/12/02/365392.html#feedback4http://www.blogjava.net/aoxj/comments/commentrss/365392.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/365392.html
    使用maven填写依赖的时候,常会遇到需要查一下groupid/artifactid和version,有时候还要看看有没有新的版本更新。 

    原来一直用http://mvnrepository.com/ 这个网站来搜索,最近发现maven凯发k8网页登录官网也提供了类似的功能,http://search.maven.org/。 

    简单试用了一下search.maven.org,功能基本和mvnrepository.com相同,而且界面更简洁友好。推荐使用。


sky ao 2011-12-02 16:06
]]>
cloudfoundry介绍-(1)申请试用http://www.blogjava.net/aoxj/archive/2011/06/11/352087.htmlsky aosky aosat, 11 jun 2011 05:52:00 gmthttp://www.blogjava.net/aoxj/archive/2011/06/11/352087.htmlhttp://www.blogjava.net/aoxj/comments/352087.htmlhttp://www.blogjava.net/aoxj/archive/2011/06/11/352087.html#feedback6http://www.blogjava.net/aoxj/comments/commentrss/352087.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/352087.html阅读全文

sky ao 2011-06-11 13:52
]]>
解决gradle与sonar集成过程中的版本问题http://www.blogjava.net/aoxj/archive/2011/05/15/350269.htmlsky aosky aosun, 15 may 2011 05:12:00 gmthttp://www.blogjava.net/aoxj/archive/2011/05/15/350269.htmlhttp://www.blogjava.net/aoxj/comments/350269.htmlhttp://www.blogjava.net/aoxj/archive/2011/05/15/350269.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/350269.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/350269.html阅读全文

sky ao 2011-05-15 13:12
]]>
easymock教程-自定义参数匹配器http://www.blogjava.net/aoxj/archive/2010/11/30/339423.htmlsky aosky aotue, 30 nov 2010 10:18:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/30/339423.htmlhttp://www.blogjava.net/aoxj/comments/339423.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/30/339423.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/339423.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339423.html阅读全文

sky ao 2010-11-30 18:18
]]>
easymock教程-改变同一个方法调用的行为http://www.blogjava.net/aoxj/archive/2010/11/30/339416.htmlsky aosky aotue, 30 nov 2010 09:06:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/30/339416.htmlhttp://www.blogjava.net/aoxj/comments/339416.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/30/339416.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/339416.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339416.html阅读全文

sky ao 2010-11-30 17:06
]]>
easymock教程-运行时返回值或者异常http://www.blogjava.net/aoxj/archive/2010/11/30/339410.htmlsky aosky aotue, 30 nov 2010 08:36:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/30/339410.htmlhttp://www.blogjava.net/aoxj/comments/339410.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/30/339410.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/339410.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339410.html
但是在某些情况下,我们可能无法预知返回值,比如我们需要根据输入的参数值来决定返回什么,而这个参数可能无法在record阶段获得。因此在mock方法中我们无法在record阶段就决定应该返回什么。

对于这种场景,easymock提供了ianswer接口和andanswer()方法来提供运行时决定返回值或者异常的机制。  

sky ao 2010-11-30 16:36
]]>
easymock教程-partial class mockinghttp://www.blogjava.net/aoxj/archive/2010/11/30/339391.htmlsky aosky aotue, 30 nov 2010 06:23:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/30/339391.htmlhttp://www.blogjava.net/aoxj/comments/339391.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/30/339391.html#feedback0http://www.blogjava.net/aoxj/comments/commentrss/339391.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339391.html阅读全文

sky ao 2010-11-30 14:23
]]>
easymock教程-参数匹配http://www.blogjava.net/aoxj/archive/2010/11/29/339342.htmlsky aosky aomon, 29 nov 2010 10:57:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/29/339342.htmlhttp://www.blogjava.net/aoxj/comments/339342.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/29/339342.html#feedback2http://www.blogjava.net/aoxj/comments/commentrss/339342.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339342.html阅读全文

sky ao 2010-11-29 18:57
]]>
easymock教程-命名mock对象http://www.blogjava.net/aoxj/archive/2010/11/29/339332.htmlsky aosky aomon, 29 nov 2010 08:34:00 gmthttp://www.blogjava.net/aoxj/archive/2010/11/29/339332.htmlhttp://www.blogjava.net/aoxj/comments/339332.htmlhttp://www.blogjava.net/aoxj/archive/2010/11/29/339332.html#feedback1http://www.blogjava.net/aoxj/comments/commentrss/339332.htmlhttp://www.blogjava.net/aoxj/services/trackbacks/339332.html命名mock对象有什么好处呢?其实就是一点,即在当测试案例因为某个mock对象的状态或行为不符合要求而失败的时候,在异常信息里面可以输出这个mock对象的名称。  

sky ao 2010-11-29 16:34
]]>
网站地图