server.xml文件代码
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/dossm">
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource
name="jdbc/dossm"
auth="Container"
type="javax.sql.DataSource"
maxActive="200"
maxIdle="50"
maxWait="3000"
username="root"
password="root"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/db_dossm">
</Resource>
</Context>
web.xml代码
<resource-ref>
<res-ref-name>jdbc/dossm</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
&l
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/dossm">
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource
name="jdbc/dossm"
auth="Container"
type="javax.sql.DataSource"
maxActive="200"
maxIdle="50"
maxWait="3000"
username="root"
password="root"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/db_dossm">
</Resource>
</Context>
web.xml代码
<resource-ref>
<res-ref-name>jdbc/dossm</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
&l