这是错误信息:八月 11, 2016 6:38:55 下午 org.hibernate.annotations.common.Version <clinit>INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}八月 11, 2016 6:38:55 下午 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {4.1.12.Final}八月 11, 2016 6:38:55 下午 org.hibernate.cfg.Environment <clinit>INFO: HHH000206: hibernate.properties not found八月 11, 2016 6:38:55 下午 org.hibernate.cfg.Environment buildBytecodeProviderINFO: HHH000021: Bytecode provider name : javassist八月 11, 2016 6:38:55 下午 org.hibernate.cfg.Configuration configureINFO: HHH000043: Configuring from resource: /hibernate.cfg.xml八月 11, 2016 6:38:55 下午 org.hibernate.cfg.Configuration getConfigurationInputStreamINFO: HHH000040: Configuration resource: /hibernate.cfg.xml八月 11, 2016 6:38:56 下午 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntityWARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!八月 11, 2016 6:38:56 下午 org.hibernate.cfg.Configuration addResourceINFO: HHH000221: Reading mappings from resource: Students.hbn.xml这是配置文件里的基本配置信息: <property name="connection.username">root</property> <property name="conncetion.password">root</property> <!-- 指定数据库的驱动 --> <property name="conncetion.driver_class">com.mysql.jdbc.Driver</property> <!-- 访问数据库的地址 --> <property name="conncetion.url">jdbc:mysql://localhost:3306/hibernate?useUnicode=true&characterEncoding=UtF-8</property> <!-- MySQL的方言dialect,针对特殊的数据库进行优化 --> <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
添加回答
举报
0/150
提交
取消