Java&C#
介绍Jaxb各种标签用法
摘要: http://www.caucho.com/resin/doc/jaxb-annotations.xtp#@XmlJavaTypeAdapterJAXB annotations customize the serialization of a model bean.@XmlAccessorType @XmlAttribute @XmlElement @XmlElements @XmlElement...
阅读全文
posted @
2010-02-06 12:44 龍龙 阅读(22) |
评论 (0)
Metro2生成客户端
摘要: 1)设置METRO_HOME:D:\Program Files\Java\metro-2.02)运行"D:\Program Files\Java\metro-2.0\bin\wsimport.bat" -extension -keep -Xnocompile -XadditionalHeaders -Xno-addressing-databinding -Xendorsed -p com.carb...
阅读全文
posted @
2010-02-05 20:49 龍龙 阅读(16) |
评论 (0)
SVN eclipse plugin updated to 1.6.6
摘要: 前两个月一直用1.6.5,感觉老出错,很不爽。今天去官网看了看,出了1.6.6了,下一个来试试。http://subclipse.tigris.org/files/documents/906/47307/site-1.6.6.zip
阅读全文
posted @
2010-02-01 09:46 龍龙 阅读(31) |
评论 (0)
[注解的力量]Spring 2.5 JPA hibernate 使用方法的点滴整理(五):使用@Component 来简化bean的配置
摘要: 出处:http://blog.csdn.net/remote_roamer/archive/2008/10/01/3008016.aspx虽然我们可以通过 @Autowired 在 Bean 类中使用自动注入功能,但是 Bean 还是在 applicatonContext.xml 文件中通过 <bean> 进行定义 —— 在前面的例子中,我们还是在配置文件中定义...
阅读全文
posted @
2010-01-28 09:55 龍龙 阅读(39) |
评论 (0)
Spring事务配置的五种方式
摘要: 原文:http://www.blogjava.net/robbie/archive/2009/04/05/264003.html 前段时间对Spring的事务配置做了比较深入的研究,在此之间对Spring的事务配置虽说也配置过,但是一直没有一个清楚的认识。通过这次的学习发觉Spring的事务配置只要把思路理清,还是比较好掌握的。 总结如下: Spring配置文件中关于事务配置总是由三个组成部分,分...
阅读全文
posted @
2010-01-27 15:55 龍龙 阅读(30) |
评论 (0)
让Spring架构减化事务配置(转)
摘要: 注:原文章曾发表在it168Spring颠覆了以前的编程模式,引入了IOC等全新的概念,广受大家的喜爱。目前大多数j2ee项目都已经采用Spring框架。Spring最大的问题是太多的配置文件,使得你不仅需要维护程序代码,还需要额外去维护相关的配置文件。最典型的就是事务配置(注:这里的“事务配置”都指“声明式事务配置”),在Spring中进行事务配置...
阅读全文
posted @
2010-01-27 15:18 龍龙 阅读(29) |
评论 (0)
例:metro2+spring3
摘要: 1.libantlr-runtime.jarcommons-logging-1.0.4.jarjaxws-spring-1.8.jarorg.springframework.asm-3.0.0.RELEASE.jarorg.springframework.beans-3.0.0.RELEASE.jarorg.springframework.context-3.0.0.RELEASE.jarorg....
阅读全文
posted @
2010-01-27 12:03 龍龙 阅读(42) |
评论 (3)
hibernate3.3.2
摘要: 刚下载好hibernate3.3.2,翻开docs,竟然有中文的过,不错不错,全球化做得好呀~其它java项目有这样就好了。
阅读全文
posted @
2010-01-26 15:25 龍龙 阅读(45) |
评论 (0)
今天开始用spring3
摘要: 下载了一个spring3.0.0 with docs版本网上稍微看了一下,它与2.x相比,结构发生了一些改变。特别是加入了REST它自带一个PDF说明文档,英文的没时间很快地看懂。于是上网找example文档1:《jdbctemplate:持久层封装之JdbcTemplate》 疯狂代码 http://CrazyCoder.cn/ ĵ:http:/CrazyCoder.cn/DataBase/Ar...
阅读全文
posted @
2010-01-26 14:07 龍龙 阅读(65) |
评论 (2)
metro2中使用session
摘要: metro2.0下载地址:https://metro.dev.java.net/2.0/metro-2_0.zipmetro-eclipse plugin下载地址:https://metroplugineclipse.dev.java.net/files/documents/9069/146014/metroplugins.zip原文:http://weblogs.java.net/blog/ra...
阅读全文
posted @
2010-01-09 00:50 龍龙 阅读(43) |
评论 (0)
设计自己的Annotation Java
摘要: 设计自己的Annotation JavaAnnotation在java的世界正铺天盖地展开,有空写这一篇简单的annotations的文章,算是关于Annotation入门的文章吧,希望能各位们能抛砖,共同学习...... 不讲废话了,实践才是硬道理.第一部分:了解一下java1.5起默认的三个annotation类型: 一个是@Override:只能用在方法之上的,用来告诉别人这一个方法是改写父...
阅读全文
posted @
2010-01-06 21:26 龍龙 阅读(39) |
评论 (0)
Oracel 分页
摘要: 面是收集的两篇关于 Oracel 用ROWNUM实现分页的文章: 推荐直接看第二篇,是Oracle的Tom写的,最权威第一篇做个参考第一篇:作者: chen_liang 对于rownum来说它是oracle系统顺序分配为从查询返回的行的编号,返回的第一行分配的是1,第二行是2,依此类推,这个伪字段可以用于限制查询返回的总行数,而且rownum不能以任何表的名称作为前缀。(1) rownum 对于等...
阅读全文
posted @
2010-01-06 12:29 龍龙 阅读(37) |
评论 (0)
axis2出现错误
摘要: 开始弄axis2,1.5版本的,装好后用eclipse新建了一个工程。发现有错误,照着下边的步骤就好了:Step 1 - Windows --> preferences --> Web Services --> Axis 2 --> Select the valid location of the Axis distribution.Step 2- After creati...
阅读全文
posted @
2010-01-04 14:58 龍龙 阅读(50) |
评论 (0)
做拦截器的两个步骤
摘要: from: 成长之路http://xugw.blog.sohu.com/124311370.html做拦截器的两个步骤 1.写一个自己的拦截器public class PrivilegeCheckInterceptor extends AbstractInterceptor { //实现拦截器接口public String intercept(ActionInvocation invocation...
阅读全文
posted @
2010-01-01 10:42 龍龙 阅读(55) |
评论 (0)
开始看struts2
摘要: 今天上班主要弄了数据库文档,把原来的整理了一下。晚上看了一下struts2.1.8。了解了以下内容:1.struts2是web work的升级,结合了struts1,更加好用2.从struts2.1.6开始,把jsp写在/WEB-INF/content下边,就会自动生成action调用。比如/hello这个项目,有一个文件/WEB-INF/content/hello.jsp,则需要用http://...
阅读全文
posted @
2009-12-22 22:10 龍龙 阅读(57) |
评论 (0)
tomcat的上传限制
摘要: http://tomcat.apache.org/tomcat-5.5-doc/config/http.htmlmaxPostSizeThe maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be disabled by...
阅读全文
posted @
2009-03-27 15:06 龍龙 阅读(469) |
评论 (0)
Mysql SSL 配置
摘要: 建立 CA 憑證:openssl genrsa 2048 > ca-key.pemopenssl req -new -x509 -nodes -days 1000 -key ca-key.pem -passin pass:123456 -passout pass:123456 -subj /C=CN/O=INFOSEC/CN=nicky > ca-cert.pem建立 MySQL Se...
阅读全文
posted @
2009-03-22 13:51 龍龙 阅读(384) |
评论 (0)