一:用连接池实现(配置一)
com.mysql.jdbc.Driver
jdbc:mysql://localhost/tfdbstruts
root
123
com/tfsoftware/tfww/model/Employee.hbm.xml
org.hibernate.dialect.MySQLDialect
二:用连接池实现(配置二) .properties 属性文件
ccmcms.properties
${hibernate.connection.driver_class}
${hibernate.connection.url}
${hibernate.connection.username}
${hibernate.connection.password}
D:\workspace\MyEclipse\test\WebRoot\WEB-INF\classes 包下
ccmcms.properties
# MySql数据库 配置文件
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost/humanResources
hibernate.connection.username=root
hibernate.connection.password=498164