调试了一天,错误变成了这个

来源:1-11 通过Hibernate API编写访问数据库的代码

都业奇

2016-02-29 16:10

二月 29, 2016 4:03:02 下午 org.hibernate.annotations.common.Version <clinit>

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

二月 29, 2016 4:03:02 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.2.4.Final}

二月 29, 2016 4:03:02 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

二月 29, 2016 4:03:02 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

二月 29, 2016 4:03:02 下午 org.hibernate.cfg.Configuration configure

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

二月 29, 2016 4:03:02 下午 org.hibernate.cfg.Configuration getConfigurationInputStream

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

二月 29, 2016 4:03:03 下午 org.hibernate.cfg.Configuration addResource

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

二月 29, 2016 4:03:03 下午 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!

二月 29, 2016 4:03:03 下午 org.hibernate.cfg.Configuration doConfigure

INFO: HHH000041: Configured SessionFactory: null

二月 29, 2016 4:03:03 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

二月 29, 2016 4:03:03 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000115: Hibernate connection pool size: 20

二月 29, 2016 4:03:03 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

INFO: HHH000006: Autocommit mode: false

二月 29, 2016 4:03:03 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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

二月 29, 2016 4:03:03 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

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


写回答 关注

4回答

  • weenhall
    2016-03-22 16:57:26

    问题解决了吗,我的也是这样

  • 疯子_疯
    2016-03-13 15:40:47


    2016-3-13 15:36:49 org.hibernate.Version logVersion

    INFO: HHH000412: Hibernate Core {5.0.2.Final}

    2016-3-13 15:36:49 org.hibernate.cfg.Environment <clinit>

    INFO: HHH000206: hibernate.properties not found

    2016-3-13 15:36:49 org.hibernate.cfg.Environment buildBytecodeProvider

    INFO: HHH000021: Bytecode provider name : javassist

    求大神,问题出在哪里?

  • 梁XX
    2016-03-10 22:36:39

    没看到哪里错 ---请截图

  • XJ_倾注你的泪
    2016-02-29 17:35:06

    应该是配置文件出问题了,你看配置文件中注册实体对应的mapping文件

Hibernate初探之单表映射

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

74810 学习 · 793 问题

查看课程

相似问题