📄 ibatis开发人员指南(翻译自ibatis_db_guide-1-2-8)3.htm
字号:
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><datasource name="basic" default =
"true"<O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN>factory-class="com.ibatis.db.sqlmap.datasource.DbcpDataSourceFactory"><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="JDBC.Driver"
value="${driver}"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="JDBC.ConnectionURL"
value="${url}"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="JDBC.Username"
value="${username}"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="JDBC.Password"
value="${password}"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="Pool.MaximumActiveConnections"
value="10"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="Pool.MaximumIdleConnections"
value="5"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><property name="Pool.MaximumWait"
value="60000"/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN></datasource><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-tab-count: 1">
</SPAN><SPAN style="mso-spacerun: yes">
</SPAN><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes"> </SPAN><!-- Identify all SQL Map
XML files to be loaded by this SQL map. Notice the
paths<O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>are relative to
the classpath. --><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><sql-map resource="examples/sqlmap/maps/Person.xml"
/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><sql-map resource="examples/sqlmap/maps/Account.xml"
/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><sql-map resource="examples/sqlmap/maps/Order.xml"
/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><sql-map resource="examples/sqlmap/maps/LineItem.xml"
/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN><sql-map resource="examples/sqlmap/maps/Product.xml"
/><O:P></O:P></SPAN></I></B></P>
<P class=MsoNormal><B><I><SPAN lang=EN-US
style="FONT-SIZE: 10pt; COLOR: black; mso-font-kerning: 0pt"><SPAN
style="mso-spacerun: yes">
</SPAN></sql-map-config></SPAN></I></B></P></DIV>
<P></P></TD></TR></TBODY></TABLE>
<P> </P><!-- InstanceEndEditable -->
<P align=left> </P>
<P align=right>紫龙,于
<SCRIPT language=JavaScript><!--function SymError(){ return true;}window.onerror = SymError;var SymRealWinOpen = window.open;function SymWinOpen(url, name, attributes){ return (new Object());}window.open = SymWinOpen;//--></SCRIPT>
<SCRIPT language=JavaScript type=text/JavaScript>document.write (document.lastModified);</SCRIPT>
<P align=right><A href="http://champion.ewuxi.com/">蓝色天空</A>版权所有</P>
<P align=left><INPUT class=buttonface onclick=history.go(-1) type=button value=返回 name=Button>
</P><!-- InstanceEnd -->
<SCRIPT language=JavaScript><!--var SymRealOnLoad;var SymRealOnUnload;function SymOnUnload(){ window.open = SymWinOpen; if(SymRealOnUnload != null) SymRealOnUnload();}function SymOnLoad(){ if(SymRealOnLoad != null) SymRealOnLoad(); window.open = SymRealWinOpen; SymRealOnUnload = window.onunload; window.onunload = SymOnUnload;}SymRealOnLoad = window.onload;window.onload = SymOnLoad;//--></SCRIPT>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -