楼上说得没错!
别忘了在WEB-INF/web.xml中还要写些东西
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/yourDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
别忘了在WEB-INF/web.xml中还要写些东西
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/yourDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货