A total of directly connected, connecting the pool, JNDI binding three kinds
1, directly connected
com.mysql.jdbc.Driver value> property> jdbc: mysql: //127.0.0.1: 3306 / test value> property> admin value> property> < Property Name = "Password"> property> bean>
2, connect pool
JDBC: mysql: //127.0.0.1: 3306 / test value> property> admin Value> proty> property> bean>
3 JNDI, take Tomcat as an example
java: comp / env / jdbc / testdb value> property> bean >
Note that the JNDI write method of each container is different, so Java: Comp / Env / JDBC / TESTDB is full, but may be part of the JNDI, such as Tomcat Configuration JDBC / TestDB
Configuration error message javax.naming.namenotFoundException: name jdbc is not bound in this context exception