Apache Tomcat/
把jdbc包拷貝到%TOMCAT_HOME%/common/lib下面
server
connector的配置屬性添加 URIEncoding=
context的配置實例如下
<Context docBase=
<Logger className=
prefix=
timestamp=
<Resource name=
auth=
type=
reloadable=
<ResourceParams name=
<parameter>
<name>factory</name>
<value>mons
</parameter>
<parameter>
<name>maxActive</name>
<value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>
</parameter>
<parameter>
<name>maxWait</name>
<value>
</parameter>
<parameter>
<name>username</name>
<value>dev</value>
</parameter>
<parameter>
<name>password</name>
<value>dev</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>com
</parameter>
<parameter>
<name>url</name>
<value>jdbc:microsoft:sqlserver://
</parameter>
</ResourceParams>
</Context>
Apache Tomcat/
server
connector的配置屬性添加 URIEncoding=
context的配置實例如下
<Context docBase=
<Resource name=
maxActive=
username=
url=
</Context>
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28548.html