??xml version="1.0" encoding="utf-8" standalone="yes"?>久久se精品一区精品二区,国产精品永久免费,懂色av影视一区二区三区http://www.aygfsteel.com/fisher/天行健,君子以自Z息。地势坤Q君子以厚d载物?/description>zh-cnThu, 03 Jul 2025 03:37:47 GMTThu, 03 Jul 2025 03:37:47 GMT60intern()得到的String之间?=http://www.aygfsteel.com/fisher/archive/2007/03/11/103148.htmlFisherFisherSun, 11 Mar 2007 13:09:00 GMThttp://www.aygfsteel.com/fisher/archive/2007/03/11/103148.htmlhttp://www.aygfsteel.com/fisher/comments/103148.htmlhttp://www.aygfsteel.com/fisher/archive/2007/03/11/103148.html#Feedback0http://www.aygfsteel.com/fisher/comments/commentRss/103148.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/103148.html阅读全文

Fisher 2007-03-11 21:09 发表评论
]]>
用例关系中的include和extend的区别:(x) http://www.aygfsteel.com/fisher/archive/2007/02/01/97290.htmlFisherFisherThu, 01 Feb 2007 07:31:00 GMThttp://www.aygfsteel.com/fisher/archive/2007/02/01/97290.htmlhttp://www.aygfsteel.com/fisher/comments/97290.htmlhttp://www.aygfsteel.com/fisher/archive/2007/02/01/97290.html#Feedback0http://www.aygfsteel.com/fisher/comments/commentRss/97290.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/97290.html
当每一ơ执行用?的时候,都必L行用?Q那么用?  (tng) include  (tng) 用例2Q?tng) (tng)?br /> 如果不是每一ơ执行用?的时候都必须执行用例2Q只是在有些时候会(x)在执行用?的时候执行用?Q那么用?  (tng) extend  (tng) 用例2?img src ="http://www.aygfsteel.com/fisher/aggbug/97290.html" width = "1" height = "1" />

Fisher 2007-02-01 15:31 发表评论
]]>
Spring中常见数据源的配|参?http://www.aygfsteel.com/fisher/archive/2006/12/27/90296.htmlFisherFisherWed, 27 Dec 2006 06:32:00 GMThttp://www.aygfsteel.com/fisher/archive/2006/12/27/90296.htmlhttp://www.aygfsteel.com/fisher/comments/90296.htmlhttp://www.aygfsteel.com/fisher/archive/2006/12/27/90296.html#Feedback0http://www.aygfsteel.com/fisher/comments/commentRss/90296.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/90296.htmlSpring中常见数据源的配|参?

一共分为直接连接、连接池、jndil定三种

1、直接连?/p>

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://127.0.0.1:3306/test</value>
</property>
<property name="username">
<value>admin</value>
</property>
<property name="password">
<value/>
</property>
</bean>

2、连接池

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>jdbc:mysql://127.0.0.1:3306/test</value>
</property>
<property name="username">
<value>admin</value>
</property>
<property name="password">
<value/>
</property>
</bean>

3 jndiQ以tomcatZ

<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/jdbc/TestDB</value>
</property>
</bean>

注意每种容器的jndi写法不同Q所以java:comp/env/jdbc/TestDB为其全称Q但在配|jndi时可能会(x)是其中一部分Q如tomcat配置jdbc/TestDB

配置错误?x)报javax.naming.NameNotFoundException: Name jdbc is not bound in this Context异常



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=627248



Fisher 2006-12-27 14:32 发表评论
]]>
Hibernate&Springhttp://www.aygfsteel.com/fisher/archive/2006/12/26/90125.htmlFisherFisherTue, 26 Dec 2006 07:42:00 GMThttp://www.aygfsteel.com/fisher/archive/2006/12/26/90125.htmlhttp://www.aygfsteel.com/fisher/comments/90125.htmlhttp://www.aygfsteel.com/fisher/archive/2006/12/26/90125.html#Feedback0http://www.aygfsteel.com/fisher/comments/commentRss/90125.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/90125.html
http://www-128.ibm.com/developerworks/library/j-hibern/?ca=dnt-515

Fisher 2006-12-26 15:42 发表评论
]]>
cM饰词可见?/title><link>http://www.aygfsteel.com/fisher/archive/2006/12/22/89487.html</link><dc:creator>Fisher</dc:creator><author>Fisher</author><pubDate>Fri, 22 Dec 2006 04:15:00 GMT</pubDate><guid>http://www.aygfsteel.com/fisher/archive/2006/12/22/89487.html</guid><wfw:comment>http://www.aygfsteel.com/fisher/comments/89487.html</wfw:comment><comments>http://www.aygfsteel.com/fisher/archive/2006/12/22/89487.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fisher/comments/commentRss/89487.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fisher/services/trackbacks/89487.html</trackback:ping><description><![CDATA[ <p> </p> <table class="MsoTableGrid" style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; WIDTH: 446.4pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellspacing="0" cellpadding="0" width="595" border="1"> <tbody> <tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes"> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 84.3pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-diagonal-down: .5pt solid windowtext" valign="top" width="112"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <span lang="EN-US"> <span style="mso-spacerun: yes"> (tng) (tng) (tng) (tng) (tng) (tng) </span> <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?> <o:p> </o:p> </span> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: ?hu)? mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">同一个类?/span> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: ?hu)? mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">同一个包?/span> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 99pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" valign="top" width="132"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: ?hu)? mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不同包中的子c?/span> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 90pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" valign="top" width="120"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: ?hu)? mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不同包中非子c?/span> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> </td> </tr> <tr style="mso-yfti-irow: 1"> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 84.3pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="112"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Private<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 99pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="132"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 90pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="120"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> </tr> <tr style="mso-yfti-irow: 2"> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 84.3pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="112"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Default<span style="mso-spacerun: yes"> (tng) (tng) (tng) (tng) (tng) </span><o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 99pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="132"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 90pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="120"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> </tr> <tr style="mso-yfti-irow: 3"> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 84.3pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="112"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Protected<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 99pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="132"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 90pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="120"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> (tng)</o:p> </span> </b> </p> </td> </tr> <tr style="mso-yfti-irow: 4; mso-yfti-lastrow: yes"> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; BACKGROUND: #e0e0e0; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 84.3pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="112"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Public<span style="mso-spacerun: yes"> (tng) (tng) (tng) (tng) (tng) (tng) </span><o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 86.55pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="115"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 99pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="132"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> <td style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; WIDTH: 90pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" valign="top" width="120"> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: center" align="center"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">Y<o:p></o:p></span> </b> </p> </td> </tr> </tbody> </table> <img src ="http://www.aygfsteel.com/fisher/aggbug/89487.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fisher/" target="_blank">Fisher</a> 2006-12-22 12:15 <a href="http://www.aygfsteel.com/fisher/archive/2006/12/22/89487.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java开源项目相关网址http://www.aygfsteel.com/fisher/archive/2006/12/22/89477.htmlFisherFisherFri, 22 Dec 2006 03:32:00 GMThttp://www.aygfsteel.com/fisher/archive/2006/12/22/89477.htmlhttp://www.aygfsteel.com/fisher/comments/89477.htmlhttp://www.aygfsteel.com/fisher/archive/2006/12/22/89477.html#Feedback1http://www.aygfsteel.com/fisher/comments/commentRss/89477.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/89477.html
Hibernate Synchronizer
http://sourceforge.net/projects/hibernatesynch/

Spring 在线手册
http://www.jactiongroup.net/reference/html/

Jaction Group
http://www.jactiongroup.net/

IBM Java技?br />http://www-128.ibm.com/developerworks/java/
http://www-128.ibm.com/developerworks/cn/websphere/ (tng) (tng) (tng) (tng) WebSphere

Fisher 2006-12-22 11:32 发表评论
]]>
Java取得日期旉的代?/title><link>http://www.aygfsteel.com/fisher/archive/2006/12/22/89446.html</link><dc:creator>Fisher</dc:creator><author>Fisher</author><pubDate>Fri, 22 Dec 2006 02:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/fisher/archive/2006/12/22/89446.html</guid><wfw:comment>http://www.aygfsteel.com/fisher/comments/89446.html</wfw:comment><comments>http://www.aygfsteel.com/fisher/archive/2006/12/22/89446.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fisher/comments/commentRss/89446.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fisher/services/trackbacks/89446.html</trackback:ping><description><![CDATA[使用SimpleDateFormat 来获取时?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)SimpleDateFormat (tng)dateFormat</span><span style="COLOR: #000000">=</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)SimpleDateFormat(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">yyyyMMddHHmmss</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)String (tng)date</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">dateFormat.format(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Date()); (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000"> (tng)Long.parseLong(date);</span></div><br /><br /><br />使用Canlendar cL取得旉<br /><br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000"> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)Calendar (tng)time</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">Calendar.getInstance(); (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)time.setTime(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> (tng)Date(</span><span style="COLOR: #000000">1165991528156L</span><span style="COLOR: #000000">));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">Year:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.YEAR));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">MONTH:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.MONTH));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">DATE:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.DATE));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">HOUR:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.HOUR));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">MINUTE:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.MINUTE));<br /><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /> (tng) (tng) (tng) (tng) (tng) (tng) (tng) (tng)System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">SECOND:</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">time.get(Calendar.SECOND));</span></div><img src ="http://www.aygfsteel.com/fisher/aggbug/89446.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fisher/" target="_blank">Fisher</a> 2006-12-22 10:12 <a href="http://www.aygfsteel.com/fisher/archive/2006/12/22/89446.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>,HashMap和Hashtable?qing)HashSet的区?/title><link>http://www.aygfsteel.com/fisher/archive/2006/12/13/87398.html</link><dc:creator>Fisher</dc:creator><author>Fisher</author><pubDate>Wed, 13 Dec 2006 02:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/fisher/archive/2006/12/13/87398.html</guid><wfw:comment>http://www.aygfsteel.com/fisher/comments/87398.html</wfw:comment><comments>http://www.aygfsteel.com/fisher/archive/2006/12/13/87398.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fisher/comments/commentRss/87398.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fisher/services/trackbacks/87398.html</trackback:ping><description><![CDATA[Hashtablec? (tng) <br /> (tng)   Hashtablel承Map接口Q实C个key-value映射的哈希表。Q何非I(non-nullQ的对象都可作ؓ(f)key或者value? (tng) <br /> (tng)   d数据使用put(key,  (tng) value)Q取出数据用get(key)Q这两个基本操作的时间开销为常数? (tng) <br /> (tng) Hashtable通过initial  (tng) capacity和load  (tng) factor两个参数调整性能。通常~省的load  (tng) factor  (tng) 0.75较好地实C(jin)旉和空间的均衡。增大load  (tng) factor可以节省I间但相应的查找旉增大,q会(x)影响像get和putq样的操作? (tng) <br /> (tng) 使用Hashtable的简单示例如下,?Q?Q?攑ֈHashtable中,他们的key分别是”one”,”two”,”three”:(x)  (tng) <br /> (tng)     Hashtable  (tng) numbers  (tng) =  (tng) new  (tng) Hashtable();  (tng) <br /> (tng)     numbers.put(“one?  (tng) new  (tng) Integer(1));  (tng) <br /> (tng)     numbers.put(“two?  (tng) new  (tng) Integer(2));  (tng) <br /> (tng)     numbers.put(“three?  (tng) new  (tng) Integer(3));  (tng) <br /> (tng)   要取Z个数Q比?Q用相应的keyQ? (tng) <br /> (tng)     Integer  (tng) n  (tng) =  (tng) (Integer)numbers.get(“two?;  (tng) <br /> (tng)     System.out.println(“two  (tng) =  (tng) ? (tng) +  (tng) n);  (tng) <br /> (tng)   ׃作ؓ(f)key的对象将通过计算其散列函数来定与之对应的value的位|,因此M作ؓ(f)key的对象都必须实现hashCode和equalsҎ(gu)。hashCode和equalsҎ(gu)l承自根cObjectQ如果你用自定义的类当作key的话Q要相当心(j)Q按照散列函数的定义Q如果两个对象相同,即obj1.equals(obj2)=trueQ则它们的hashCode必须相同Q但如果两个对象不同Q则它们的hashCode不一定不同,如果两个不同对象的hashCode相同Q这U现象称为冲H,冲突?x)导致操作哈希表的时间开销增大Q所以尽量定义好的hashCode()Ҏ(gu)Q能加快哈希表的操作? (tng) <br /> (tng)   如果相同的对象有不同的hashCodeQ对哈希表的操作?x)出现意想不到的l果Q期待的getҎ(gu)q回nullQ,要避免这U问题,只需要牢C条:(x)要同时复写equalsҎ(gu)和hashCodeҎ(gu)Q而不要只写其中一个? (tng) <br /> (tng)   Hashtable是同步的? (tng) <br /> (tng)  (tng) <br /> (tng) HashMapc? (tng) <br /> (tng)   HashMap和HashtablecMQ不同之处在于HashMap是非同步的,q且允许nullQ即null  (tng) value和null  (tng) key。,但是HashMap视ؓ(f)CollectionӞvalues()Ҏ(gu)可返回CollectionQ,其P代子操作旉开销和HashMap的容量成比例。因此,如果q代操作的性能相当重要的话Q不要将HashMap的初始化定w讑־q高Q或者load  (tng) factorq低? (tng) <br /> (tng)  (tng) <br /> (tng) WeakHashMapc? (tng) <br /> (tng)   WeakHashMap是一U改q的HashMapQ它对key实行“弱引用”,如果一个key不再被外部所引用Q那么该key可以被GC回收?<br /><br /><br /><br />HashSet请参考对Set的描q? (tng) <br /> (tng)  (tng) <br /> (tng)  (tng)  (tng)  (tng)  (tng) Set是一U不包含重复的元素的CollectionQ即L的两个元素e1和e2都有e1.equals(e2)=falseQSet最多有一个null元素? (tng) <br /> (tng)   Set的构造函数有一个约束条Ӟ传入的Collection参数不能包含重复的元素。  h意:(x)必须心(j)操作可变对象QMutable  (tng) ObjectQ。如果一个Set中的可变元素改变?sh)(jin)自w状态导致Object.equals(Object)=true导致一些问题?br />两个通用Set实现是HashSet  (tng) 和TreeSet。要军_用哪一个,那是非常单明?jin)的? (tng) HashSet  (tng) 要快得多  (tng) (对大多数操作是常数时间之于对数时_(d)constant  (tng) time  (tng) vs.  (tng) log  (tng) timeQ?,  (tng) 但不提供排序保证。如果你需要? (tng) SortedSet  (tng) 中的操作Q或者按序q代对你来说是重要的Q那么请使用  (tng) TreeSet? (tng) 否则Q? (tng) HashSet? (tng) 在大多数旉都不使用  (tng) HashSet  (tng) Q对你来说是个公q的赌博? (tng)  (tng) <br /> (tng)  (tng) <br /> (tng)   关于  (tng) HashSetQ有一件事应该牢记Q即条目数和容量之和来Ԍq代是线性的。因此,如果q代性能很重要,那就应该慎重选择一个适当的初始容量。容量选得太大Q既费I间Q也费旉? (tng) 默认的初试容量是101,  (tng) 一般来Ԍ它比你所需要的要多。可以? (tng) int  (tng) 构造函数来指定初始定w。要分配  (tng) HashSet  (tng) 的初始容量ؓ(f)17:  (tng)  (tng) <br /> (tng)  (tng) <br /> (tng) Set  (tng) s=  (tng) new  (tng) HashSet(17);  (tng)  (tng) <br /> (tng)  (tng) <br /> (tng)   HashSets  (tng) 另有一个称? (tng) 装蝲因数Qload  (tng) factorQ? (tng) ?调整参数Qtuning  (tng) parameterQ?  (tng) 。如果你非常在乎你的  (tng) HashSet  (tng) 的空间的使用Q请阅读  (tng) HashSet  (tng) 文本以获取详l信息。否则,׃用默认值吧。如果你接受默认装蝲因数Q但你确实又x(chng)定初始容量,那么Q选一个大U是你期望你? (tng) Set  (tng) 增长到的容量的两倍的数。如果你的猜不着边,它也可以增长Q或只是费一点空间。但都没有大问题。如果你知道有关正确寸的一个最?jng)_|用它吧;如果不知道,那就使用一个旧的|或用一个偶数倹{它真的不是非常重要。这些事情只能  (tng) HashSet  (tng) E稍变好一点点? (tng)  (tng) <br /> (tng)  (tng) <br /> (tng)   TreeSet  (tng) 没有调整参数。除  (tng) clone  (tng) 之外QHashSet  (tng) ? (tng) TreeSet  (tng) 都仅有那些由它们各自的接口所要求的操? (tng) (Set  (tng) ? (tng) TreeSet)Q而没有Q何别的操作。?tng) (tng) (tng) (tng)?br /> (tng) <img alt="Java 集合cd" src="http://www.aygfsteel.com/images/blogjava_net/fisher/18768/o_umlList.jpg" /><br /><img src ="http://www.aygfsteel.com/fisher/aggbug/87398.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fisher/" target="_blank">Fisher</a> 2006-12-13 10:22 <a href="http://www.aygfsteel.com/fisher/archive/2006/12/13/87398.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ArrayList和Vector的区?/title><link>http://www.aygfsteel.com/fisher/archive/2006/12/13/87397.html</link><dc:creator>Fisher</dc:creator><author>Fisher</author><pubDate>Wed, 13 Dec 2006 02:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/fisher/archive/2006/12/13/87397.html</guid><wfw:comment>http://www.aygfsteel.com/fisher/comments/87397.html</wfw:comment><comments>http://www.aygfsteel.com/fisher/archive/2006/12/13/87397.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/fisher/comments/commentRss/87397.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/fisher/services/trackbacks/87397.html</trackback:ping><description><![CDATA[ArrayListc? (tng) <br /> (tng)   ArrayList实现?jin)可变大的数组。它允许所有元素,包括null。ArrayList没有同步? (tng) <br /> (tng) sizeQisEmptyQgetQsetҎ(gu)q行旉为常数。但是addҎ(gu)开销为分摊的常数Q添加n个元素需要O(n)的时间。其他的Ҏ(gu)q行旉为线性? (tng) <br /> (tng)   每个ArrayList实例都有一个容量(CapacityQ,即用于存储元素的数组的大。这个容量可随着不断d新元素而自动增加,但是增长法q没有定义。当需要插入大量元素时Q在插入前可以调用ensureCapacityҎ(gu)来增加ArrayList的容量以提高插入效率? (tng) <br /> (tng)   和LinkedList一PArrayList也是非同步的QunsynchronizedQ? (tng) <br /> (tng)  (tng) <br /> (tng) Vectorc? (tng) <br /> (tng)   Vector非常cMArrayListQ但是Vector是同步的。由Vector创徏的IteratorQ虽然和ArrayList创徏的Iterator是同一接口Q但是,因ؓ(f)Vector是同步的Q当一个Iterator被创且正在被用,另一个线E改变(sh)(jin)Vector的状态(例如Q添加或删除?jin)一些元素)(j)Q这时调用Iterator的方法时抛出ConcurrentModificationExceptionQ因此必L莯异常。?tng)?img src ="http://www.aygfsteel.com/fisher/aggbug/87397.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/fisher/" target="_blank">Fisher</a> 2006-12-13 10:20 <a href="http://www.aygfsteel.com/fisher/archive/2006/12/13/87397.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于HttpURLConnection.setFollowRedirectshttp://www.aygfsteel.com/fisher/archive/2006/12/11/86934.htmlFisherFisherMon, 11 Dec 2006 08:13:00 GMThttp://www.aygfsteel.com/fisher/archive/2006/12/11/86934.htmlhttp://www.aygfsteel.com/fisher/comments/86934.htmlhttp://www.aygfsteel.com/fisher/archive/2006/12/11/86934.html#Feedback1http://www.aygfsteel.com/fisher/comments/commentRss/86934.htmlhttp://www.aygfsteel.com/fisher/services/trackbacks/86934.html关于HttpURLConnection.setFollowRedirects(?
public static void HttpURLConnection.setFollowRedirects(boolean followRedirects)
public void HttpURLConnection.setInstanceFollowRedirects(boolean followRedirects)

前者设|所有的httpq接是否自动处理重定向;
后者设|本ơ连接是否自动处理重定向?br />讄成trueQ系l自动处理重定向Q设|成falseQ则需要自׃http reply中分析新的url
自己重新q接?br />


Fisher 2006-12-11 16:13 发表评论
]]>
վ֩ģ壺 | | ƽ| | | | | | | ԣ| | ȫ| ͬ| ̨| | ԣ| | Ȩ| ̨| | ӱʡ| ȫ| | ̨| | ڻ| ̨| | | ͬ| Ϫ| »| ԭ| ɽ| | ״| | | | ɳ| |