落寞爲了誰
2015-08-23 00:34
老师我第一个单元测试的时候报错,我把sessionFaction注释掉后运行juint没有报错,但navicat里没有表生成,我想问是什么原因啊,控制台打印的代码如下
八月 23, 2015 12:09:29 上午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
八月 23, 2015 12:09:29 上午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
八月 23, 2015 12:09:29 上午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
八月 23, 2015 12:09:29 上午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
八月 23, 2015 12:09:29 上午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
八月 23, 2015 12:09:29 上午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
八月 23, 2015 12:09:29 上午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: entity/Students.hbm.xml
八月 23, 2015 12:09:30 上午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: entity/Users.hbm.xml
八月 23, 2015 12:09:30 上午 org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
八月 23, 2015 12:09:30 上午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
八月 23, 2015 12:09:30 上午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
八月 23, 2015 12:09:30 上午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: false
八月 23, 2015 12:09:30 上午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc://localhost:3306/test?useUnicode=true&characterEncoding=utf8]
八月 23, 2015 12:09:30 上午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user=root, password=****}
哪里出错了 我也是这样求教
我找到错误了,谢谢!
你没有给出错误信息,你贴出来的全是INFO类型的。无法分析原因。
使用Struts2+Hibernate开发学生信息管理功能
80701 学习 · 754 问题
相似问题