SQLServer2000鏁版嵁搴撹繛鎺ユ睜閰嶇疆濡備笅錛?/p>
<data-sources>
聽聽聽聽<data-source聽key="org.apache.struts.action.DATA_SOURCE"聽type="org.apache.commons.dbcp.BasicDataSource">
聽聽聽聽聽聽<set-property聽property="driverClassName"聽value="com.microsoft.jdbc.sqlserver.SQLServerDriver"聽/>
聽聽聽聽聽聽<set-property聽property="url"聽value="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=jdsdb"聽/>
聽聽聽聽聽聽<set-property聽property="username"聽value="sa"聽/>
聽聽聽聽聽聽<set-property聽property="password"聽value=""聽/>
聽聽聽聽聽聽<set-property聽property="maxActive"聽value="200"聽/>
聽聽聽聽聽聽<set-property聽property="maxIdel"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="maxWait"聽value="10000"聽/>
聽聽聽聽聽聽<set-property聽property="autoReconnect"聽value="true"聽/>
聽聽聽聽聽聽<set-property聽property="max-connections"聽value="10"聽/>
聽聽聽聽聽聽<set-property聽property="min-connections"聽value="2"聽/>
聽聽聽聽聽聽<set-property聽property="inactivity-timeout"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="wait-timeout"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="eroDateTimeBehavior"聽value="convertToNull"聽/>
聽聽聽聽</data-source>
聽聽</data-sources>聽


MySQL鏁版嵁搴撹繛鎺ユ睜閰嶇疆濡備笅錛?/p>
<data-sources>
聽聽聽聽<data-source聽key="org.apache.struts.action.DATA_SOURCE"聽type="org.apache.commons.dbcp.BasicDataSource">
聽聽聽聽聽聽<set-property聽property="driverClassName"聽value="com.mysql.jdbc.Driver"聽/>
聽聽聽聽聽聽<set-property聽property="url"聽value="jdbc:mysql://127.0.0.1:3306/JDSDB?useUnicode=true&characterEncoding=gb2312"聽/>
聽聽聽聽聽聽<set-property聽property="username"聽value="root"聽/>
聽聽聽聽聽聽<set-property聽property="password"聽value=""聽/>
聽聽聽聽聽聽<set-property聽property="maxActive"聽value="200"聽/>
聽聽聽聽聽聽<set-property聽property="maxIdel"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="maxWait"聽value="10000"聽/>
聽聽聽聽聽聽<set-property聽property="autoReconnect"聽value="true"聽/>
聽聽聽聽聽聽<set-property聽property="max-connections"聽value="10"聽/>
聽聽聽聽聽聽<set-property聽property="min-connections"聽value="2"聽/>
聽聽聽聽聽聽<set-property聽property="inactivity-timeout"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="wait-timeout"聽value="30"聽/>
聽聽聽聽聽聽<set-property聽property="eroDateTimeBehavior"聽value="convertToNull"聽/>
聽聽聽聽</data-source>
聽聽</data-sources>


聽

]]>