tomcate连接池配置


在server.xml中配置如下:

<Context path="" docBase="E:/proweb/cityhomedemo/CommunityWeb" crossContext="false" debug="0" reloadable="true">
<Resource name="jdbc/commweb" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@192.168.1.4:1521:commweb" username="commweb" password="commweb" maxActive="20" maxIdle="2" maxWait="-1"/>

</Context>

你可能感兴趣的:(xml)