Junit测试@Test报错

来源:-

慕妹9427890

2016-11-12 17:48

十一月 12, 2016 5:44:23 下午 org.hibernate.annotations.common.Version <clinit>

INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}

十一月 12, 2016 5:44:23 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.2.4.Final}

十一月 12, 2016 5:44:23 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

十一月 12, 2016 5:44:23 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

十一月 12, 2016 5:44:23 下午 org.hibernate.cfg.Configuration configure

INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

十一月 12, 2016 5:44:23 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

INFO: HHH000040: Configuration resource: /hibernate.cfg.xml


写回答 关注

1回答

  • 慕妹9427890
    2016-11-12 17:50:45

    最开始报下面的错误,后来我改了cfg.xml里面的url 

    十一月 12, 2016 5:30:38 下午 org.hibernate.annotations.common.Version <clinit>

    INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}

    十一月 12, 2016 5:30:38 下午 org.hibernate.Version logVersion

    INFO: HHH000412: Hibernate Core {4.2.4.Final}

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Environment <clinit>

    INFO: HHH000206: hibernate.properties not found

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Environment buildBytecodeProvider

    INFO: HHH000021: Bytecode provider name : javassist

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Configuration configure

    INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

    INFO: HHH000040: Configuration resource: /hibernate.cfg.xml

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Configuration addResource

    INFO: HHH000221: Reading mappings from resource: Students.hbm.xml

    十一月 12, 2016 5:30:38 下午 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity

    WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!

    十一月 12, 2016 5:30:38 下午 org.hibernate.cfg.Configuration doConfigure

    INFO: HHH000041: Configured SessionFactory: null

    十一月 12, 2016 5:30:38 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

    INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)

    十一月 12, 2016 5:30:38 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

    INFO: HHH000115: Hibernate connection pool size: 20

    十一月 12, 2016 5:30:38 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

    INFO: HHH000006: Autocommit mode: false

    十一月 12, 2016 5:30:38 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

    INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql///hibernate?useUnicode=true&charaterEncoding=UTF-8]

    十一月 12, 2016 5:30:38 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

    INFO: HHH000046: Connection properties: {user=root, password=****}


Hibernate初探之单表映射

Java持久化框架Hibernate入门教程,掌握Hibernate基本概念

74808 学习 · 793 问题

查看课程

相似问题