??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲A∨无码无在线观看,久久精品国产精品亚洲精品,亚洲а∨天堂久久精品http://m.tkk7.com/qiubite520/zh-cnMon, 12 May 2025 15:02:11 GMTMon, 12 May 2025 15:02:11 GMT60HttpClient入门http://m.tkk7.com/qiubite520/archive/2015/03/30/423945.html丘比?/dc:creator>丘比?/author>Mon, 30 Mar 2015 02:01:00 GMThttp://m.tkk7.com/qiubite520/archive/2015/03/30/423945.htmlhttp://m.tkk7.com/qiubite520/comments/423945.htmlhttp://m.tkk7.com/qiubite520/archive/2015/03/30/423945.html#Feedback0http://m.tkk7.com/qiubite520/comments/commentRss/423945.htmlhttp://m.tkk7.com/qiubite520/services/trackbacks/423945.html阅读全文

]]>
omcat7.0 ?websphere 7.0 服务器中Spring使用JNDI dataSource 的配|?/title><link>http://m.tkk7.com/qiubite520/archive/2015/03/14/423462.html</link><dc:creator>丘比?/dc:creator><author>丘比?/author><pubDate>Sat, 14 Mar 2015 12:47:00 GMT</pubDate><guid>http://m.tkk7.com/qiubite520/archive/2015/03/14/423462.html</guid><wfw:comment>http://m.tkk7.com/qiubite520/comments/423462.html</wfw:comment><comments>http://m.tkk7.com/qiubite520/archive/2015/03/14/423462.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/qiubite520/comments/commentRss/423462.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/qiubite520/services/trackbacks/423462.html</trackback:ping><description><![CDATA[<h1 style="text-align: center; margin: 17pt 0cm 16.5pt" align="center"><font size="5"><span lang="EN-US"><font face="Times New Roman">Tomcat7.0 </font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span><span lang="EN-US"><font face="Times New Roman"> websphere 7.0 </font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">服务器中</span><span lang="EN-US"><font face="Times New Roman">Spring</font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用</span><span lang="EN-US"><font face="Times New Roman">JNDI dataSource </font></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span></font><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">配置<span lang="EN-US"><o:p></o:p></span></span></font></h1> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">一?span lang="EN-US">Tomcat </span>服务器中<span lang="EN-US">Spring </span>使用<span lang="EN-US">JNDI</span>数据源及配置<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">1. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">?span lang="EN-US">TOMCAT_HOME</span>目录?span lang="EN-US">conf</span>中的<span lang="EN-US">context.xml </span>文g?span lang="EN-US"> <Context></span>标签中加?span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><Resource name="jndids"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">auth="Container"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">type="javax.sql.DataSource"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">password="password"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">username="developer"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">driverClassName="oracle.jdbc.OracleDriver"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">url="jdbc:oracle:thin:@17.0.0.1:1521:orcl"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">maxActive="100"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">maxIdle="2"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">maxWait="5000"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">/><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">2. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">?span lang="EN-US">cmis</span>工程?span lang="EN-US">web.xml</span>中加?span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><resource-ref><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><description>OracleDBConnection Pool</description> <res-ref-name><font size="4">jndids</font></res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">3. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">?span lang="EN-US">Spring</span>?span lang="EN-US"> applicationContext.xml </span>文g中配|?span lang="EN-US">dataSource<o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><bean id="dataSource"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">class="org.springframework.jndi.JndiObjectFactoryBean"><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><property name="jndiName"> <value>java:comp/env/<font size="4">jndids</font></value> </property><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"></bean><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">二?span lang="EN-US">Websphere</span>服务器中<span lang="EN-US">Spring </span>使用<span lang="EN-US">JNDI</span>数据源及配置<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">1. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">创徏<span lang="EN-US">JDBC</span>提供者:<span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">q入<span lang="EN-US">WebSphere</span>理控制台后Q点?#8220;资源”<span lang="EN-US">?</span>“<span lang="EN-US">JDBC</span>”<span lang="EN-US">?</span>“<span lang="EN-US">JDBC</span>提供?#8221;如下图,点击“新徏”按钮Q准备创建数据源?span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">a</span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">Q?新徏<span lang="EN-US">JDBC<o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">b</span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">Q?指定驱动<span lang="EN-US">driver (</span>默认的\径可能不?span lang="EN-US">,</span>我改成了l对路径<span lang="EN-US">)<o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">2. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">创徏数据?span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">a. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">q入数据源配|界面,点击“新徏”按钮<span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">b. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">选择刚才创徏?span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">JDBC<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">c. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">输入<span lang="EN-US">URL<o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">d. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">讄安全性别?span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">如果已经创徏?#8220;lg理的认证别?#8221;?#8220;容器理的认证别?#8221;Q直接选择Q如果没有创建点?#8220;全局<span lang="EN-US"> J2C </span>认证别名”Q如下图所C?span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">?#8220;全局<span lang="EN-US">J2C</span>认证别名”界面点击“新徏”按钮Q进?#8220;<span lang="EN-US">J2C</span>认证数据建立”界面Q分别输入别名(用户自定义)、用h识、密码,然后点击“定”按钮Q完?span lang="EN-US">J2C</span>认证数据的创建,如下图所C?span lang="EN-US">:<o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">()<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">回到“讄安全性别?#8221;Q选择“lg理的认证别?#8221;?#8220;容器理的认证别?#8221;<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">e. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">点击“下一?#8221;按钮Q进?#8220;创徏数据源摘?#8221;界面Q检查创建时录入的信息是<span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">否正,如果正确点击“完成”按钮Q完?#8220;数据?#8221;建立Q如图所C:<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">f. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">点击保存C配置Q进行测试链接,试q接是否成功Q选择创徏的数据源点击<span lang="EN-US"><o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">“试q接”按钮Q如果一切成功则出现如下图所C界面,<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">否则误回以上步骤,<span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; margin: auto 0cm; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly" class="noindent"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'"><font face="宋体">认证查配|的属性是否正?span lang="EN-US"><o:p></o:p></span></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><font face="宋体"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US">3. </span><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'">?span lang="EN-US">Spring</span>?span lang="EN-US"> applicationContext.xml </span>文g中配|?span lang="EN-US">dataSource<o:p></o:p></span></span></font></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><bean id="dataSource"<o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体">class="org.springframework.jndi.JndiObjectFactoryBean"><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"><property name="jndiName"> <value><font size="4">jndids</font></value> </property><o:p></o:p></font></span></p> <p style="text-justify: inter-ideograph; text-align: justify; line-height: 20pt; text-indent: 26pt; mso-pagination: none; mso-char-indent-count: 2.0; mso-line-height-rule: exactly"><span style="font-size: 13pt; mso-bidi-font-size: 10.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'" lang="EN-US"><font face="宋体"></bean><o:p></o:p></font></span></p><img src ="http://m.tkk7.com/qiubite520/aggbug/423462.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/qiubite520/" target="_blank">丘比?/a> 2015-03-14 20:47 <a href="http://m.tkk7.com/qiubite520/archive/2015/03/14/423462.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>H2数据库的Collation中文排序问题解决Ҏhttp://m.tkk7.com/qiubite520/archive/2014/02/12/409778.html丘比?/dc:creator>丘比?/author>Wed, 12 Feb 2014 08:50:00 GMThttp://m.tkk7.com/qiubite520/archive/2014/02/12/409778.htmlhttp://m.tkk7.com/qiubite520/comments/409778.htmlhttp://m.tkk7.com/qiubite520/archive/2014/02/12/409778.html#Feedback0http://m.tkk7.com/qiubite520/comments/commentRss/409778.htmlhttp://m.tkk7.com/qiubite520/services/trackbacks/409778.html最q用 Scala & Lift 做个项目,用到H2数据库。结果在对中文字D进行排序时发现炚w题。在不设|Collation的情况下Q对中文字段的排序结果是qQ谁让中国h喜欢拼音排序呢)。发现这一现象后,Collation设ؓ CHINESE_CHINA看看Q注意设|collation要在数据库中q没创徏M表的时候喔Q,

set collation CHINESE_CHINA 

l果q是不尽如h意,虽然l大多数记录排序是正的Q按拼音排序Q,但还是有量比较生僻的字l单独排在了最后。试惛_果某个领导的名字按拼x序本来要排在前面的,l果因ؓ生僻字给排到了最后,被领导发C会不会不高兴l你鞋I呢Q要善美怎么办呢Q查了一下H2的文,讲到讄collation的时候可以调?ICU4JQICU for javaQ来替代使用内置的collation机制。(不知道ICUQ你out了吧Q要不要google一下先Q!Q?到ICU|站下蝲了icu4j.jarQ将其加入到 CLASSPATH中,重启H2的服务。再ơ创建数据库Q创建数据库后立卛_没有创徏表的情况下输入下列命令设|collation:

set collation ICU4J_CHINESE_CHINA 

再次说明Q如果已l创Z表,此命令是无效的喔。将collation讄为ICU4J_CHINESE_CHINA 后,中文排序OK了!

]]>
վ֩ģ壺 Ůһ18| ޹㽶ˬAVƬþ | ޳?vƬ| þþþ޾Ʒַ| ޾Ʒ鶹ר| ѿֻˬ͵Ƶ| ޹Ʒһ߹ۿ| þþƷƷ| ޶ۺϾþ| ŷۺһ| պƵվ| ޹Ƭ߹ۿ| ޹һ| wŷs| ޸岻߹ۿ| ͵Ƶ߹ۿ| һvѲһ| 91㽶վ| AVҹƷһ| ޹Ƶֻ| 777777| ɫ˿ѹۿվ| ߹ۿվ| 2020ˬ| ɫè˳վ߹ۿ| | ɫͼƵ߹ۿ| ѹƵ| ޾Ʒר߲ | ޹˾þþƷ| avٺٺ| þóaëƬѹۿվ| ˾ƷƵ| ѧһ| ձvѷƵ| ۺ߹ۿƵ| žȫƵ| av³˿һ| aۺaav| ߹ۿҹһ| һƵ|