When deploying applications on was, some applications can choose the data source, some cannot,
The following figure shows that the data source can be selected,
The following image is not able to select the data source
If you want to be able to select the data source, you only need to add the following nodes in web.xml: <!--StartFragment -->
<resource-ref>
<res-ref-name>JNDI名称</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<res-ref-name>JNDI名称</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>