baker_Uzi
2016-12-05 22:05
十二月 05, 2016 10:03:58 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {5.0.2.Final}
十二月 05, 2016 10:03:58 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000205: Loaded properties from resource hibernate.properties: {hibernate.max_fetch_depth=5, hibernate.cache.region_prefix=hibernate.search.test, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.show_sql=false, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.isolation=${jdbc.isolation}, hibernate.format_sql=false}
十二月 05, 2016 10:03:58 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
十二月 05, 2016 10:03:59 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {5.0.0.Final}
十二月 05, 2016 10:03:59 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
十二月 05, 2016 10:03:59 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF-8]
十二月 05, 2016 10:03:59 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {user=root, password=****}
十二月 05, 2016 10:03:59 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
十二月 05, 2016 10:03:59 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
1.表的property属性对应的实体类是否有大意写错的。2.看看hibernate.cfg.xml的url配置的是否有问题。3.jar包换成hibernate4的试试。
你的Hibernate 版本是5.0.2,(1)看看jar包是否重复;(2)查帮助文档,看看SchemaExport生成代码,不要照抄慕课网中的代码!
使用Struts2+Hibernate开发学生信息管理功能
80701 学习 · 754 问题
相似问题