美文网首页
Sharding-JDBC使用过程中遇到的问题

Sharding-JDBC使用过程中遇到的问题

作者: 无羡爱诗诗 | 来源:发表于2018-12-18 16:43 被阅读87次

第一、调试报错:

Caused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is com.dangdang.ddframe.rdb.sharding.exception.SQLParserException: Unsupported SQL statement: [CREATE TABLE hibernate_sequence (

next_val bigint

) ENGINE = MyISAM]

解决办法:ddl-auto: none

修改配置文件

第二、无法自动建表怎么办?

解决方案:

写schema.sql文件;

新建一个微服务,专门执行这个文件去完成建表;

相关文章

网友评论

      本文标题:Sharding-JDBC使用过程中遇到的问题

      本文链接:https://www.haomeiwen.com/subject/qmzkkqtx.html