??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲ww精品,亚洲精品xxx,68精品国产免费久久久久久婷婷http://www.aygfsteel.com/wuxufeng8080/category/12868.html弱水三千Q只取一瓢,便能解Q佛法无边,奉行一法,便能得益?/description>zh-cnWed, 24 May 2017 23:33:33 GMTWed, 24 May 2017 23:33:33 GMT60spring 3.0 async 异步Ҏ 讄http://www.aygfsteel.com/wuxufeng8080/archive/2017/05/24/432547.html风h?/dc:creator>风h?/author>Wed, 24 May 2017 06:27:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2017/05/24/432547.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/432547.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2017/05/24/432547.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/432547.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/432547.html 如上配置之后Q只需要在 需要进行异步调用的Ҏ前面增加 注解可以了? @Async public void updateOrderBillItemPQty(String deptId, String orderNo, Integer orderItemSid, Double pQty) { 注:需要注意,同一个对象里面方法调用,不会作ؓ异步Ҏ执行?img src ="http://www.aygfsteel.com/wuxufeng8080/aggbug/432547.html" width = "1" height = "1" />

]]>
解决Tomcat Error listenerStart 问题http://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375369.html风h?/dc:creator>风h?/author>Fri, 20 Apr 2012 07:39:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375369.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/375369.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375369.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/375369.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/375369.html昨天部vweb应用到Tomcat之后,无法成功启动,q且控制台没有详l的错误信息,
多׃行提CZ?例如:
严重: Error listenerStart
严重: Context [/] startup failed due to previous errors

或?/p>

严重: Error filterStart
org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors

查找logs目录下的信息,除了q两句话,也没别的辅助内容.
l查错带来了困难,在这U情况下,是因为Tomcat自n的默认日志没有将一些错误信息输出到控制台或文g,
q个时候则需要配|Tomcat自n的log,启用详细的调试日?

3.log4j配置文g:
log4j.properties
配置内容?

log4j.rootLogger=ERROR,R

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%p]%t-%c-%m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=[%p]%t-%c-%m%n

log4j.logger.org.apache.catalina=INFO,R,CONSOLE

#日志U别不能太低,如果配置为debug的话,输出的日志信息太?Dtomcat启动非常的慢.

4.Tomcat 6.0所需的juli替换文g:
http://www.apache.org/dist/--escaped_anchor:079305423cce36d6691457475e081123--/tomcat-6/v6.0.18/bin/extras/tomcat-juli-adapters.jar
http://www.apache.org/dist/--escaped_anchor:079305423cce36d6691457475e081123--/tomcat-6/v6.0.18/bin/extras/tomcat-juli.jar
以上两个链接基本没用Q大家可以搜索一下,csdn上面有h提供jar包下载,q里附g也不能加Q没有办法?br />

在Tomcat6.0?

tomcat-juli-adapters.jar,log4j-1.2.15.jar,log4j.properties复制到D:\Java\ApacheTomcat6.0.14\lib下面.

tomcat-juli.jar复制到D:\Java\apache-tomcat-6.0.14\bin\下面.

然后启动tomcat,可以在D:\Java\apache-tomcat-6.0.14\logs下看到tomcat.log?

在这个时?再通过日志文g来分?则会发现出现q种错误的情况可能有:
(以下是我遇到的出错情?大多是些低错误)
1.webapps要用到的classe文gҎ没有复制到WEB-INF/classes目录下面
(java.lang.NoClassDefFoundError,而这个信息可能默认没输出到控制台,其是用了spring?昨天是q个_心的低U错?
2.要用到lib文g没有复制?~少lib
3.lib下的同一个库的jar文g存在多个不同版本,引v版本冲突.
4.lib下的jar与tomcat版本不相对应(我遇到的问题是web应用在Tomcat5.5上运行正?换到Tomcat6.0上就出错,
例如一个用了struts的webapp在Tomcat 6上报下面的错?br />“Parse Fatal Error at line 17 column 6: The processing instruction
target matching “[xX][mM][lL]” is not allowed” )

愿意看英文的可以参考官方网站说?
http://tomcat.apache.org/tomcat-6.0-doc/logging.html


标记一下:Q?nbsp;



]]>
javax.servlet ?javax.servlet.jspDpȝ错误的问?/title><link>http://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375352.html</link><dc:creator>风h?/dc:creator><author>风h?/author><pubDate>Fri, 20 Apr 2012 06:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375352.html</guid><wfw:comment>http://www.aygfsteel.com/wuxufeng8080/comments/375352.html</wfw:comment><comments>http://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375352.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/375352.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wuxufeng8080/services/trackbacks/375352.html</trackback:ping><description><![CDATA[提示无法载入 c.tld{信?br /><br />只要删除 WEB-INF/lib 下的上述两个文g卛_<br /><br />因ؓ此文件与 tomcat中的文g版本冲突<img src ="http://www.aygfsteel.com/wuxufeng8080/aggbug/375352.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wuxufeng8080/" target="_blank">风h?/a> 2012-04-20 14:16 <a href="http://www.aygfsteel.com/wuxufeng8080/archive/2012/04/20/375352.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>java中文注释在eclipse中显CZؕ码的问题http://www.aygfsteel.com/wuxufeng8080/archive/2009/08/05/289954.html风h?/dc:creator>风h?/author>Wed, 05 Aug 2009 07:07:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2009/08/05/289954.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/289954.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2009/08/05/289954.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/289954.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/289954.html
原文Lq个论坛帖子 Q?http://www.javaeye.com/topic/100391

解决ҎQ?br /> Preferences General > Workspace 修改Text file encoding
为UTF-8后才行。这个问题一直琢了好久Q今天下了决心想看看Q最后还是查了eclipse的帮助才解决?

当当修改project 为UTF-8是不行的?


p么回事,我一直改目的那个,怪不得?

]]>
如何快速发布java桌面应用http://www.aygfsteel.com/wuxufeng8080/archive/2009/04/15/265771.html风h?/dc:creator>风h?/author>Wed, 15 Apr 2009 07:33:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2009/04/15/265771.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/265771.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2009/04/15/265771.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/265771.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/265771.html     1、设|运行环?br />                 q行环境是怎么讄环境变量的问题了Q通过delphi也可以实现动态设|。只要将jre跟jar一同发布即可。可以方便客L的安装?br />
    2、启动程序,也就是怎么q行jar文g
                 在网上找C个delphi写的Q用来启动jar的程序,q样只要把javaE序打包成jar文g后,通过q个E序可以把jar启动hQ不然的话就需要将光新打包成exe文g来运行了?br />   
   3、创建桌面快h?br />                 方便用户启动E序?br />
未测?

]]>
tomcat vm环境变量讄http://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185580.html风h?/dc:creator>风h?/author>Wed, 12 Mar 2008 02:10:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185580.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/185580.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185580.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/185580.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/185580.html 1、JAVA_HOME
2、PATH
3、CLASSPATH
4、CATALINA_HOME
5、JAVA_OPTS Q?Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=128M -verbose:gc

  查看讄的结?  
  在浏览器上输入http://L名称:8080Q在有个猫的页面上点击左上角的statusQ输入用户名QadminQ密码ؓI。在q入的页面上Q查看jvm的选项Q看是不是已l设|好?56m的内存?nbsp;  

如果用户名无法登陆,请修?code>$CATALINA_HOME/conf/tomcat-users.xml.
d
    <role rolename="manager"/>
    <user username="admin" password="" roles="manager"/>
可以登陆管理页?br />
  备注Q?nbsp; 
          在设|环境变量java_opts后,要用tomcat/bin/startup.bat启动pȝQ得环境变量生效,而用start   tomcat启动pȝ不会使环境变量生效?nbsp; 

]]>
eclipse中启动tomcat的时配置jvm参数http://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185579.html风h?/dc:creator>风h?/author>Wed, 12 Mar 2008 02:05:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185579.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/185579.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2008/03/12/185579.html#Feedback0http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/185579.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/185579.html

如图Q设|一下vm的参数就可以Q这?br /> 登陆tomcat的管理界面,p看到当前tomcat所使用的jvm的内存是多大?br />
-Xms512m -Xmx1024m -XX:MaxPermSize=256m -XX:PermSize=128M



]]>
在线ASC码查?/title><link>http://www.aygfsteel.com/wuxufeng8080/archive/2007/05/14/117263.html</link><dc:creator>风h?/dc:creator><author>风h?/author><pubDate>Mon, 14 May 2007 02:27:00 GMT</pubDate><guid>http://www.aygfsteel.com/wuxufeng8080/archive/2007/05/14/117263.html</guid><description><![CDATA[<table cellSpacing=1 cellPadding=2 width="100%" bgColor=#cccccc> <tbody> <tr> <td vAlign=top bgColor=#ffffff colSpan=8> <p align=left><font size=2>目前计算Z用得最q泛的字W集及其~码Q是?a class=vLink1 id=vad_0 onmouseover="if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 0,'');}" title="Ƨ洲旅游最卓越服务与报?@Vogate.com" style="FONT-SIZE: 1em" onclick="" onmouseout="if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}" target=_blank><u><font color=#0000ff>国</font></u></a>国家标准局(ANSI)制定的ASCII码(American Standard Code for Information InterchangeQ美国标准信息交换码Q,它已被国际标准化l织QISOQ定为国际标准,UCؓISO 646标准。适用于所有拉丁文字字母,ASCII码有7位码?位码两种形式?br>    因ؓ1位二q制数可以表C(21=Q?U状态:0?Q?位二q制数可以表C(22Q?4U状态:00?1?0?1Q依ơ类推,7位二q制数可以表C(27=Q?28U状态,每种状态都唯一地编Z?位的二进制码Q对应一个字W(或控制码Q,q些码可以排列成一个十q制序号0?27。所以,7位ASCII码是用七位二q制数进行编码的Q可以表C?28个字W?br>    W??2号及W?27??4?是控制字W或通讯专用字符Q如控制W:LFQ换行)、CRQ回车)、FFQ换)、DELQ删除)、BELQ振铃){;通讯专用字符QSOHQ文_、EOTQ文)、ACKQ确认){;<br>    W?3?26??4?是字W,其中W?8?7号ؓ0?十个阿拉?a class=vLink1 id=vad_2 onmouseover="if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 2,'');}" title="TCL电视 @Vogate.com" style="FONT-SIZE: 1em" onclick="" onmouseout="if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}" target=_blank><u><font color=#0000ff>数字</font></u></a>Q?5?0号ؓ26个大写英文字母,97?22号ؓ26个小写英文字母,其余Z些标点符受运符L?br>    注意Q在计算机的<a class=vLink1 id=vad_3 onmouseover="if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 3,'');}" title="先锋-光存储专?@Vogate.com" style="FONT-SIZE: 1em" onclick="" onmouseout="if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}" target=_blank><u><font color=#0000ff>存储</font></u></a>单元中,一个ASCII码值占一个字?8个二q制?Q其最高位(b7)用作奇偶校验位。所谓奇偶校验,是指在代码传送过E中用来验是否出现错误的一U方法,一般分奇校验和偶校验两U。奇校验规定Q正的代码一个字节中1的个数必L奇数Q若非奇敎ͼ则在最高位b7?Q偶校验规定Q正的代码一个字节中1的个数必L偶数Q若非偶敎ͼ则在最高位b7??br>    Z便于查询Q以下列出ASCII码表Q?br>    W?28?55号ؓ扩展字符Q不常用Q?</font></p> </td> </tr> <tr align=middle bgColor=#dddddd> <td><font size=2>ASCII?/font></td> <td><font size=2>键盘</font></td> <td><font size=2>ASCII ?/font></td> <td><font size=2>键盘</font></td> <td><font size=2>ASCII ?/font></td> <td><font size=2>键盘</font></td> <td><font size=2>ASCII ?/font></td> <td><font size=2>键盘</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>27</font></td> <td height=10><font size=2>ESC</font></td> <td height=10><font size=2>32</font></td> <td height=10><font size=2>SPACE</font></td> <td height=10><font size=2>33</font></td> <td height=10><font size=2>!</font></td> <td height=10><font size=2>34</font></td> <td height=10><font size=2>"</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>35</font></td> <td height=10><font size=2>#</font></td> <td height=10><font size=2>36</font></td> <td height=10><font size=2>$</font></td> <td height=10><font size=2>37</font></td> <td height=10><font size=2>%</font></td> <td height=10><font size=2>38</font></td> <td height=10><font size=2>&</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>39</font></td> <td height=10><font size=2>'</font></td> <td height=10><font size=2>40</font></td> <td height=10><font size=2>(</font></td> <td height=10><font size=2>41</font></td> <td height=10><font size=2>)</font></td> <td height=10><font size=2>42</font></td> <td height=10><font size=2>*</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>43</font></td> <td height=10><font size=2>+</font></td> <td height=10><font size=2>44</font></td> <td height=10><font size=2>'</font></td> <td height=10><font size=2>45</font></td> <td height=10><font size=2>-</font></td> <td height=10><font size=2>46</font></td> <td height=10><font size=2>.</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>47</font></td> <td height=10><font size=2>/</font></td> <td height=10><font size=2>48</font></td> <td height=10><font size=2>0</font></td> <td height=10><font size=2>49</font></td> <td height=10><font size=2>1</font></td> <td height=10><font size=2>50</font></td> <td height=10><font size=2>2</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>51</font></td> <td height=10><font size=2>3</font></td> <td height=10><font size=2>52</font></td> <td height=10><font size=2>4</font></td> <td height=10><font size=2>53</font></td> <td height=10><font size=2>5</font></td> <td height=10><font size=2>54</font></td> <td height=10><font size=2>6</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>55</font></td> <td height=10><font size=2>7</font></td> <td height=10><font size=2>56</font></td> <td height=10><font size=2>8</font></td> <td height=10><font size=2>57</font></td> <td height=10><font size=2>9</font></td> <td height=10><font size=2>58</font></td> <td height=10><font size=2>:</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>59</font></td> <td height=10><font size=2>;</font></td> <td height=10><font size=2>60</font></td> <td height=10><font size=2><</font></td> <td height=10><font size=2>61</font></td> <td height=10><font size=2>=</font></td> <td height=10><font size=2>62</font></td> <td height=10><font size=2>></font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>63</font></td> <td height=10><font size=2>?</font></td> <td height=10><font size=2>64</font></td> <td height=10><font size=2>@</font></td> <td height=10><font size=2>65</font></td> <td height=10><font size=2>A</font></td> <td height=10><font size=2>66</font></td> <td height=10><font size=2>B</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>67</font></td> <td height=10><font size=2>C</font></td> <td height=10><font size=2>68</font></td> <td height=10><font size=2>D</font></td> <td height=10><font size=2>69</font></td> <td height=10><font size=2>E</font></td> <td height=10><font size=2>70</font></td> <td height=10><font size=2>F</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>71</font></td> <td height=10><font size=2>G</font></td> <td height=10><font size=2>72</font></td> <td height=10><font size=2>H</font></td> <td height=10><font size=2>73</font></td> <td height=10><font size=2>I</font></td> <td height=10><font size=2>74</font></td> <td height=10><font size=2>J</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>75</font></td> <td height=10><font size=2>K</font></td> <td height=10><font size=2>76</font></td> <td height=10><font size=2>L</font></td> <td height=10><font size=2>77</font></td> <td height=10><font size=2>M</font></td> <td height=10><font size=2>78</font></td> <td height=10><font size=2>N</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>79</font></td> <td height=10><font size=2>O</font></td> <td height=10><font size=2>80</font></td> <td height=10><font size=2>P</font></td> <td height=10><font size=2>81</font></td> <td height=10><font size=2>Q</font></td> <td height=10><font size=2>82</font></td> <td height=10><font size=2>R</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>83</font></td> <td height=10><font size=2>S</font></td> <td height=10><font size=2>84</font></td> <td height=10><font size=2>T</font></td> <td height=10><font size=2>85</font></td> <td height=10><font size=2>U</font></td> <td height=10><font size=2>86</font></td> <td height=10><font size=2>V</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>87</font></td> <td height=10><font size=2>W</font></td> <td height=10><font size=2>88</font></td> <td height=10><font size=2>X</font></td> <td height=10><font size=2>89</font></td> <td height=10><font size=2>Y</font></td> <td height=10><font size=2>90</font></td> <td height=10><font size=2>Z</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>91</font></td> <td height=10><font size=2>[</font></td> <td height=10><font size=2>92</font></td> <td height=10><font size=2>\</font></td> <td height=10><font size=2>93</font></td> <td height=10><font size=2>]</font></td> <td height=10><font size=2>94</font></td> <td height=10><font size=2>^</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>95</font></td> <td height=10><font size=2>_</font></td> <td height=10><font size=2>96</font></td> <td height=10><font size=2>`</font></td> <td height=10><font size=2>97</font></td> <td height=10><font size=2>a</font></td> <td height=10><font size=2>98</font></td> <td height=10><font size=2>b</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>99</font></td> <td height=10><font size=2>c</font></td> <td height=10><font size=2>100</font></td> <td height=10><font size=2>d</font></td> <td height=10><font size=2>101</font></td> <td height=10><font size=2>e</font></td> <td height=10><font size=2>102</font></td> <td height=10><font size=2>f</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>103</font></td> <td height=10><font size=2>g</font></td> <td height=10><font size=2>104</font></td> <td height=10><font size=2>h</font></td> <td height=10><font size=2>105</font></td> <td height=10><font size=2>i</font></td> <td height=10><font size=2>106</font></td> <td height=10><font size=2>j</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>107</font></td> <td height=10><font size=2>k</font></td> <td height=10><font size=2>108</font></td> <td height=10><font size=2>l</font></td> <td height=10><font size=2>109</font></td> <td height=10><font size=2>m</font></td> <td height=10><font size=2>110</font></td> <td height=10><font size=2>n</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>111</font></td> <td height=10><font size=2>o</font></td> <td height=10><font size=2>112</font></td> <td height=10><font size=2>p</font></td> <td height=10><font size=2>113</font></td> <td height=10><font size=2>q</font></td> <td height=10><font size=2>114</font></td> <td height=10><font size=2>r</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>115</font></td> <td height=10><font size=2>s</font></td> <td height=10><font size=2>116</font></td> <td height=10><font size=2>t</font></td> <td height=10><font size=2>117</font></td> <td height=10><font size=2>u</font></td> <td height=10><font size=2>118</font></td> <td height=10><font size=2>v</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>119</font></td> <td height=10><font size=2>w</font></td> <td height=10><font size=2>120</font></td> <td height=10><font size=2>x</font></td> <td height=10><font size=2>121</font></td> <td height=10><font size=2>y</font></td> <td height=10><font size=2>122</font></td> <td height=10><font size=2>z</font></td> </tr> <tr align=middle bgColor=#ffffff> <td height=10><font size=2>123</font></td> <td height=10><font size=2>{</font></td> <td height=10><font size=2>124</font></td> <td height=10><font size=2>|</font></td> <td height=10><font size=2>125</font></td> <td height=10><font size=2>}</font></td> <td height=10><font size=2>126</font></td> <td height=10><font size=2>~</font></td> </tr> </tbody> </table> <img src ="http://www.aygfsteel.com/wuxufeng8080/aggbug/117263.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wuxufeng8080/" target="_blank">风h?/a> 2007-05-14 10:27 <a href="http://www.aygfsteel.com/wuxufeng8080/archive/2007/05/14/117263.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Rome使用入门http://www.aygfsteel.com/wuxufeng8080/archive/2006/07/07/57127.html风h?/dc:creator>风h?/author>Fri, 07 Jul 2006 06:20:00 GMThttp://www.aygfsteel.com/wuxufeng8080/archive/2006/07/07/57127.htmlhttp://www.aygfsteel.com/wuxufeng8080/comments/57127.htmlhttp://www.aygfsteel.com/wuxufeng8080/archive/2006/07/07/57127.html#Feedback3http://www.aygfsteel.com/wuxufeng8080/comments/commentRss/57127.htmlhttp://www.aygfsteel.com/wuxufeng8080/services/trackbacks/57127.html Rome的两U用方?br />所需jar包的下蝲 hereQ在q里可以扑ֈ与rome相关的所有文?br />
1、只使用rome
   
package com.ivo.rss;

import java.io.IOException;
import java.net.URL;
import java.util.Iterator;

import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.FeedException;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
public class Feed {
    public static void main(String[] args) throws Exception {

       
        SyndFeedInput input = new SyndFeedInput();
        //System.out.println(warmedFeed);
        SyndFeed feed = input.build(new XmlReader(new URL("
http://rss.news.yahoo.com/rss/topstories ")));

        // Iterate through feed items, adding a footer each item
        Iterator entryIter = feed.getEntries().iterator();
        while (entryIter.hasNext()) {
            SyndEntry entry = (SyndEntry) entryIter.next();
            System.out.println(entry.getPublishedDate());
            System.out.println(entry.getTitle());
            //System.out.println(entry.getDescription());
            //System.out.println(entry.getAuthor());
            System.out.println(entry.getLink());
           
        }
    }

}

2、用rome+rome fetcher

package com.ivo.rss;

import java.net.URL;
import java.util.List;

import com.sun.syndication.feed.synd.SyndContent;
import com.sun.syndication.feed.synd.SyndEntry;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.fetcher.FeedFetcher;
import com.sun.syndication.fetcher.impl.FeedFetcherCache;
import com.sun.syndication.fetcher.impl.HashMapFeedInfoCache;
import com.sun.syndication.fetcher.impl.HttpURLFeedFetcher;

public class RssReader {

    public static void main(String[] args) throws Exception {
        FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance();
        FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache);
        SyndFeed feed = feedFetcher.retrieveFeed(new URL(
                "
http://feeds.feedburner.com/jscud "));
        List entryList = feed.getEntries();
        for (int i = 0; i < entryList.size(); i++) {
            SyndEntry entry = (SyndEntry) entryList.get(i);
            System.out.println("Published Date: "+entry.getPublishedDate());
            System.out.println("Title: "+entry.getTitle());
            System.out.println("Link: "+entry.getLink());
            //System.out.println(entry.getDescription());
            SyndContent sc = entry.getDescription();
            System.out.println("Description: "+sc.getValue());
            System.out.println("------------------------------");
        }
    }
}

上面是用了~存?也就是说更新才读?如果每次都读?则修改对应行?

FeedFetcher feedFetcher = new HttpURLFeedFetcher();



]]>
վ֩ģ壺 ̩| | | | ܱ| ¯| Т| | Ӣɽ| | ű| е| ̩| IJ| ÷| | | ɳ| | | ƽ| | ʢ| ۽| | Ǭ| ߰| ƽ̶| | | | կ| | ϲ| ˳| ɽ| ƽɽ| | | ˳| ׯ|