施用spring配置jndi数据源

使用spring配置jndi数据源如果resourceref属性为false,又想在容器中查找的话,可以在jndiName属性的值前加j

使用spring配置jndi数据源

如果resourceref属性为false,又想在容器中查找的话,可以在jndiName属性的值前加java:comp/env前缀,否则就会报Name test is not bound in this Context异常。