Tomcat配置SQLServer连接池(4)

2008-02-23 09:45:50来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

driverClassName=" com.microsoft.jdbc.sqlserver.SQLServerDriver "

url=" jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=KB_Rate""/>

</Context>

配置完成后,DBTest目录下添加一个Test文件,如下:

<%@ page contentType="text/html;charset=gb2312"%>

<%@ page import="java.sql.*"%>

<%@ page import="javax.sql.*"%>

<%@ page import="javax.naming.*"%>

<%

Connection conn = null;

Context initCtx = new InitialContext();

if (initCtx == null)

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:tomcat4.1.24 Mysql连接池配法

下一篇:The Essence of OOP using Java: Static Members