Practice of personal learning project.
Current environment: Eclipse Struts Hibernate mysql.
Document address:
D: /tomcat/conf/catalina/localhost/testhibernate.xml
Document content:
XML Version = '1.0' encoding = 'UTF-8'?>
factory name>
org.apache.commons.dbcp.basicDataSourceFactory value>
parameter>
URL name>
jdbc: mysql: // localhost / mytest value>
parameter>
driverclassname name> org.gjt.mm.mysql.driver value>
parameter>
Username name>
value>
parameter>
Password name>
value>
parameter>
maxwait name>
3000 value>
parameter>
maxidle name>
100 value>
parameter>
maxactive name>
10 value>
parameter>
Resourceparams>
Context>