Max. Idle Connections: 是最大的空闲连接数
Max. Wait for Connection: 最大等待连接数
第二步:配置web.xml 打开webapps/ROOT/WEB-INF下web.xml,加入如下内容: <resource-ref> <description>SqlServer Datasource example</description> <res-ref-name>jdbc/SqlServerDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
第三步:配置tomcat(添加类)
首先要下载安装sqlserver-jdbc-驱动,然后将其lib下的三个jar文件放到
tomcat/common/lib下。
注意事项:
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
|