java
文章平均质量分 66
rencht
这个作者很懒,什么都没留下…
展开
-
将xml以流形式输出到前台页面
1、获得Document对象; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.newDocument(); Element root = doc原创 2013-04-03 11:13:04 · 2374 阅读 · 0 评论 -
java自定义注解实例
1、创建注解;(至于Retention,Target,Documented的含义自行学习) import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Reten原创 2013-04-08 11:32:34 · 534 阅读 · 0 评论