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

junit 运行成功,数据库表无法创建

七月 10, 2017 4:41:13 下午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {5.1.0.Final}

七月 10, 2017 4:41:13 下午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

七月 10, 2017 4:41:13 下午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

七月 10, 2017 4:41:13 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager <clinit>

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

七月 10, 2017 4:41:13 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure

WARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)

七月 10, 2017 4:41:13 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

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

七月 10, 2017 4:41:13 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

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

七月 10, 2017 4:41:13 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator

INFO: HHH10001003: Autocommit mode: false

七月 10, 2017 4:41:13 下午 org.hibernate.engine.jdbc.connections.internal.PooledConnections <init>

INFO: HHH000115: Hibernate connection pool size: 20 (min=1)

Mon Jul 10 16:41:13 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

七月 10, 2017 4:41:13 下午 org.hibernate.dialect.Dialect <init>

INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect

七月 10, 2017 4:41:14 下午 org.hibernate.tool.hbm2ddl.SchemaExport execute

INFO: HHH000227: Running hbm2ddl schema export

七月 10, 2017 4:41:14 下午 org.hibernate.tool.schema.internal.SchemaCreatorImpl applyImportSources

INFO: HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@4c163e3'


正在回答

4 回答

同问啊,百度了好久都没解决...

0 回复 有任何疑惑可以回复我~
#1

幕布斯13241 提问者

你用hibernate 4就可以了
2017-07-10 回复 有任何疑惑可以回复我~
#2

zifengdanta 回复 幕布斯13241 提问者

非常感谢,换了4.3就可以了~
2017-07-11 回复 有任何疑惑可以回复我~

<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>

方言加一个5,解决。

1 回复 有任何疑惑可以回复我~
#1

慕神1094982

厉害了我的哥
2017-11-20 回复 有任何疑惑可以回复我~

org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

用了hibernate 5 就报了如上错误


0 回复 有任何疑惑可以回复我~

你用hibernate 4就可以了

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Hibernate注解
  • 参与学习       37182    人
  • 解答问题       87    个

轻松学习Hibernate常用注解,学完本课能够灵活应用

进入课程

junit 运行成功,数据库表无法创建

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信