配置Tomcat+MySql+Hibernate
我修改了Hibernate.properties设置使用PostgreSQLDialect
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class org.gjt.mm.mysql.Driver
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql:MyTest
hibernate.connection.username root
hibernate.connection.password root
修改hibernate.cfg.xml如下
/p>
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
MyTest
false
true
net.sf.hibernate.dialect.MySQLDialect
但是程序运行到InitialHibernate处出现以下错误
javax.naming.NameNotFoundException: Name gt3k is not bound in this Context
请指点