为了账号安全,请及时绑定邮箱和手机立即绑定

hibernate报错

hibernate报错

程序猿也666 2017-04-26 14:41:29
四月 26, 2017 2:37:05 下午 org.hibernate.annotations.common.Version <clinit>INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}四月 26, 2017 2:37:05 下午 org.hibernate.Version logVersionINFO: HHH000412: Hibernate Core {4.2.4.Final}四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Environment <clinit>INFO: HHH000206: hibernate.properties not found四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Environment buildBytecodeProviderINFO: HHH000021: Bytecode provider name : javassist四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Configuration configureINFO: HHH000043: Configuring from resource: /hibernate.cfg.xml四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Configuration getConfigurationInputStreamINFO: HHH000040: Configuration resource: /hibernate.cfg.xml四月 26, 2017 2:37:05 下午 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!四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Configuration addResourceINFO: HHH000221: Reading mappings from resource: Students.hbm.xml四月 26, 2017 2:37:05 下午 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!四月 26, 2017 2:37:05 下午 org.hibernate.cfg.Configuration doConfigureINFO: HHH000041: Configured SessionFactory: null四月 26, 2017 2:37:05 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)四月 26, 2017 2:37:05 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000115: Hibernate connection pool size: 20四月 26, 2017 2:37:05 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000006: Autocommit mode: false四月 26, 2017 2:37:05 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql///hibernate?useUnicode=true&characterEncoding=UTF-8]四月 26, 2017 2:37:05 下午 org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureINFO: HHH000046: Connection properties: {user=root, password=****}
查看完整描述

1 回答

?
呦呦米

TA贡献90条经验 获得超59个赞

可以看下Students映射文件和数据库表中的字段名称、字段格式等属性是否一致

查看完整回答
反对 回复 2017-04-28
  • 1 回答
  • 0 关注
  • 1434 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信