时间:2021-07-01 10:21:17 帮助过:2人阅读
hibernate.cfg.xml的内容
1 <property name="connection.username">root</property> 2 <property name="connection.password">0318</property>
junit的测试内容
1 ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().configure().build(); 2 3 MetadataImplementor metadataImplementor = (MetadataImplementor) 4 new MetadataSources(serviceRegistry).buildMetadata(); 5 6 SchemaExport export = new SchemaExport(serviceRegistry, metadataImplementor); 7 export.create(true, true);
hibernate4.2.2使用schemaExport生成数据表报错,junit提示:SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: NO))
标签: