Tomcat数据源配置中的疑惑,谁帮忙解决一下!~~
Tomcat数据源配置中, 查资料都说要在WEB-INF/web.xml 加下面一段
……
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/TestDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
……
可是我发现不加也可以,到底加不加有什么区别???
看网上只说最好是加上,但是没说为什么,谁帮我解答一下啊