
java
iteye_1713
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
子类父类实现同一接口有什么作用
子类父类实现同一接口有什么作用? 简单的说,下面这样的代码: B implements A C extends B [color=red]implements A[/color] 红色的代码有什么用? 讨论: [url]http://www.iteye.com/topic/781580[/url] ...原创 2010-10-11 16:37:54 · 351 阅读 · 0 评论 -
spring3 redirect(重定向)
第一种: [code="java"] @RequestMapping(value = "/index.html", method = RequestMethod.GET) public String index(Model model) { return second(model); } @RequestMapping(value = "/second.html...原创 2012-07-04 21:24:48 · 155 阅读 · 0 评论 -
计算年龄
[code="java"] /** * This Method is unit tested properly for very different cases , taking * care of Leap Year days difference in a year, and date cases month and * Year boundary cases (12...原创 2013-05-31 16:33:45 · 163 阅读 · 0 评论 -
java map/collection cheat sheet
简单版: [img]http://dl2.iteye.com/upload/attachment/0086/1759/dea5066d-3d4a-33b6-92ac-949469c44b13.gif[/img] 复杂版: [img]http://dl2.iteye.com/upload/attachment/0086/1761/2e9db4a9-e929-3fbb-954b-b0064af9...原创 2013-06-25 17:09:05 · 233 阅读 · 0 评论 -
java数组
一维数组 1) int[] a; //声明,没有初始化 2) int[] a=new int[5]; //初始化为默认值,int型为0 3) int[] a={1,2,3,4,5}; //初始化为给定值 4) int[] a=new int[]{1,2,3,4,5}; //同(3) int[] a=new int[5]{1,2,...原创 2013-06-26 11:27:08 · 135 阅读 · 0 评论 -
cglib查看生成类
设置类输出路径,则cglib会将生成的类输出到指定路径,然后即可以用jd-gui查看: [code="java"] System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "target/cglib"); [/code] 参考: [url]http://agapple.iteye.com/blog/799827...原创 2013-07-05 10:09:06 · 796 阅读 · 0 评论 -
java调用dll
C:\Users\Administrator>java -jar D:\mois\mois_call-1.0.5\mois_call-1.0.5.jar 关于你那个无法直接以上面的方式运行呼叫工程的问题,这个是java原生不支持这样调用,解决的办法只能是以下两种之一: 1、先cd进入dll文件所在的路径,再调用,如: D:\mois\mois_call-1.0.5>java -jar D:\...原创 2014-01-14 17:22:48 · 216 阅读 · 0 评论 -
spring: No unique bean of type [] is defined: expected single bean but found 0:
通过ApplicationContext.getBean(Class)方法获取bean时报以下错: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.uih.anyi.mois.server.impl.InfusionServiceImpl] is defi...原创 2013-03-20 13:18:27 · 1243 阅读 · 0 评论